| 1030 | } |
| 1031 | |
| 1032 | static int w_pv_printf(struct sip_msg *msg, pv_spec_t *var, str *fmt_str) |
| 1033 | { |
| 1034 | pv_value_t val; |
| 1035 | |
| 1036 | if(!pv_is_w(var)) |
| 1037 | { |
| 1038 | LM_ERR("read only PV in first parameter of pv_printf\n"); |
| 1039 | return -1; |
| 1040 | } |
| 1041 | |
| 1042 | val.flags = PV_VAL_STR; |
| 1043 | val.rs = *fmt_str; |
| 1044 | |
| 1045 | if(pv_set_value(msg, var, EQ_T, &val)<0) |
| 1046 | { |
| 1047 | LM_ERR("setting PV failed\n"); |
| 1048 | return -1; |
| 1049 | } |
| 1050 | |
| 1051 | return 1; |
| 1052 | } |
| 1053 | |
| 1054 | static int w_revert_uri(struct sip_msg *msg) |
| 1055 | { |
nothing calls this directly
no test coverage detected