Hi,
can anyony tell me when will i get the following error : "substr out of range". i saw it has something to do with the pv_trans.c file and i saw it there. but, is it related to "shvset" or to "substr" command
BR, Uri
Hello,
this is printed when you try to get the sub-string starting at a position which is higher than the length of the value on which the substr is applied.
For example:
$var(x) = "abc";
$(var(x){s.substr,9,9}) - tries to get substring starting with 10th character, but the value has only 3 characters.
Cheers, Daniel
On 5/28/13 10:08 AM, Uri Shacked wrote:
Hi, can anyony tell me when will i get the following error : "substr out of range". i saw it has something to do with the pv_trans.c file and i saw it there. but, is it related to "shvset" or to "substr" command BR, Uri
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Hi,
got it :-) when using {s.substr,4,0} for example, and the variable length is shorter then 4... this error pop up.
Uri
On Tue, May 28, 2013 at 11:08 AM, Uri Shacked ushacked@gmail.com wrote:
Hi,
can anyony tell me when will i get the following error : "substr out of range". i saw it has something to do with the pv_trans.c file and i saw it there. but, is it related to "shvset" or to "substr" command
BR, Uri