MCPcopy Create free account
hub / github.com/OpenSIPS/opensips / pv_set_dlg_flags

Function pv_set_dlg_flags

modules/dialog/dialog.c:1824–1846  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1822}
1823
1824int pv_set_dlg_flags(struct sip_msg *msg, pv_param_t *param,
1825 int op, pv_value_t *val)
1826{
1827 struct dlg_cell *dlg;
1828
1829 if ( (dlg=get_current_dialog())==NULL )
1830 return -1;
1831
1832 if (val==NULL || val->flags & PV_VAL_NULL) {
1833 dlg->user_flags = 0;
1834 return 0;
1835 }
1836
1837 if (!(val->flags&PV_VAL_STR)){
1838 LM_ERR("assigning non-string value to dialog flags\n");
1839 return -1;
1840 }
1841
1842 dlg->user_flags = flag_list_to_bitmask(str2const(&val->rs),
1843 FLAG_TYPE_DIALOG, FLAG_DELIM, 0);
1844
1845 return 0;
1846}
1847
1848int pv_set_dlg_timeout(struct sip_msg *msg, pv_param_t *param,
1849 int op, pv_value_t *val)

Callers

nothing calls this directly

Calls 2

get_current_dialogFunction · 0.85
flag_list_to_bitmaskFunction · 0.85

Tested by

no test coverage detected