* convert str-int to pv_value_t (type is str) */
| 215 | * convert str-int to pv_value_t (type is str) |
| 216 | */ |
| 217 | static int pv_get_strintval(struct sip_msg *msg, pv_param_t *param, |
| 218 | pv_value_t *res, str *sval, int ival) |
| 219 | { |
| 220 | if(res==NULL) |
| 221 | return -1; |
| 222 | |
| 223 | res->rs = *sval; |
| 224 | res->ri = ival; |
| 225 | res->flags = PV_VAL_STR|PV_VAL_INT; |
| 226 | return 0; |
| 227 | } |
| 228 | |
| 229 | /** |
| 230 | * convert int-str to pv_value_t (type is int) |
no outgoing calls
no test coverage detected