| 1822 | } |
| 1823 | |
| 1824 | int 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 | |
| 1848 | int pv_set_dlg_timeout(struct sip_msg *msg, pv_param_t *param, |
| 1849 | int op, pv_value_t *val) |
nothing calls this directly
no test coverage detected