<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hello,<br>
<br>
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.<br>
<br>
For example:<br>
<br>
$var(x) = "abc";<br>
<br>
$(var(x){s.substr,9,9}) - tries to get substring starting with 10th
character, but the value has only 3 characters.<br>
<br>
Cheers,<br>
Daniel<br>
<br>
<div class="moz-cite-prefix">On 5/28/13 10:08 AM, Uri Shacked wrote:<br>
</div>
<blockquote
cite="mid:CAMMbDhQ3ZotvD5_zezbVX-Pu5exKoaVU4ivvAeEPwt+TaZV3xA@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>Hi,</div>
<div> </div>
<div>can anyony tell me when will i get the following error :
"substr out of range".</div>
<div>i saw it has something to do with the pv_trans.c file and i
saw it there.</div>
<div>but, is it related to "shvset" or to "substr" command</div>
<div> </div>
<div>BR,</div>
<div>Uri</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla - <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a>
Kamailio Advanced Training, San Francisco, USA - June 24-27, 2013
* <a class="moz-txt-link-freetext" href="http://asipto.com/u/katu">http://asipto.com/u/katu</a> *</pre>
</body>
</html>