[SR-Users] pv_trans:312 - substr out of range

Daniel-Constantin Mierla miconda at gmail.com
Tue May 28 11:19:53 CEST 2013


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 at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

-- 
Daniel-Constantin Mierla - http://www.asipto.com
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Kamailio Advanced Training, San Francisco, USA - June 24-27, 2013
   * http://asipto.com/u/katu *

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20130528/033c1d43/attachment.html>


More information about the sr-users mailing list