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

Function w_pv_printf

core_cmds.c:1032–1052  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1030}
1031
1032static 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
1054static int w_revert_uri(struct sip_msg *msg)
1055{

Callers

nothing calls this directly

Calls 1

pv_set_valueFunction · 0.85

Tested by

no test coverage detected