[OpenSIPS-Users] a comma ending a parameter list string?
Kingsley Tart
kingsley at dns99.co.uk
Tue Apr 27 12:42:04 EST 2021
Hi,
firstly apologies if this is a dumb question; I'm still pretty new to
OpenSIPS and some aspects of SIP itself.
Is a comma supposed to mark the end of a parameter list?
Eg, if I do this, the param transformation is treating the first comma
as the end of the string:
$var(paramstr) = "h=BT1;dir=in;dprulesRX=1,2,3;dprulesTX=4,100";
xlog("PARAMSTR='$var(paramstr)'\n");
xlog("PARAMCOUNT='$(var(paramstr){param.count})'\n");
xlog("h='$(var(paramstr){param.value,h})'\n");
xlog("dir='$(var(paramstr){param.value,dir})'\n");
xlog("dprulesRX='$(var(paramstr){param.value,dprulesRX})'\n");
xlog("dprulesTX='$(var(paramstr){param.value,dprulesTX})'\n");
then this is what gets logged:
PARAMSTR='h=BT1;dir=in;dprulesRX=1,2,3;dprulesTX=4,100'
PARAMCOUNT='3'
h='BT1'
dir='in'
dprulesRX='1'
dprulesTX='<null>'
Is this deliberate behaviour? OpenSIPS 3.1, FWIW.
--
Cheers,
Kingsley.
More information about the Users
mailing list