How about adding:<div>if (!is_avp_set("$avp(s:lrn)")) {</div><div> $avp(s:lrn)="";</div><div>}</div><div><br></div><div>To prevent the null value from causing problems...</div><div><br><br><div class="gmail_quote">
On Sat, May 1, 2010 at 5:27 PM, Laszlo <span dir="ltr"><<a href="mailto:laszlo@voipfreak.net">laszlo@voipfreak.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br><br><div class="gmail_quote">2010/4/30 Brad Bendy <span dir="ltr"><<a href="mailto:brad.bendy@benganetworks.com" target="_blank">brad.bendy@benganetworks.com</a>></span><div class="im"><br><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">
<div>
Hi,<br>
<br>
Im bringing this back up again.<br>
<br>
Ive had to switch our INVITE format as some upstreams parse the INVITE differently, I just need to change the order of variables around.<br>
<br>
Now the weird thing is, I set the $ru and then when I check to see what $ru is set to, it's been set correct, the order and all variables are correct, but then openSIPs sends the INVITE out it fails to modify it at all.<br>
<br>
I was using:<div><br>
<font color="#000000">$ru='sip:' + $rU + '@' + $rd + ';npdi=yes' + ';rn=' + $avp(s:lrn);</font><br>
<br></div>
now<br>
$ru='sip:' + $rU + ';npdi=yes' + ';rn=+1' + $avp(s:lrn) + '@' + $rd;<br>
<br></div></blockquote></div><div><br>maybe <br>that should go out if $avp(s:lrn) is not null(otherwise you should see errors in the syslog/messages).<br>can you post the output of<br>ngrep '11235559999' port 5060 -Wbyline -q -dany -t<br>
<br>?<br>Is there any other place where you manipulate $ru? (failure_route or somewhere else)<br><font color="#888888"><br>-Laszlo<br><br><br><br><br><br><br> </font></div><div class="im"><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">
<div>
Before the INVITE would look like:<br>
<br>
INVITE sip:+11235559999<b>@<a href="http://1.1.1.1" target="_blank">1.1.1.1</a></b>;npdi=yes;rn=+11235559999 SIP/2.0<br>
<br>
but now it should look like INVITE sip:+11235559999;npdi=yes;rn=+11235559999<b>@<a href="http://1.1.1.1" target="_blank">1.1.1.1</a></b> SIP/2.0<br>
<br>
it currently looks like INVITE sip:+11235559999@<b>1.1.1.1</b> SIP/2.0.<br>
<br>
Any ideals why just the positions of the AVPs and the other text would matter? I think it's weird when I use xlog() to print what $ru is set to it shows the correct value just OpenSIPs does not modify the INVITE. Not sure if anyone else has ran into this on the list or not.<br>
<br></div></blockquote></div></div><br><div style="display:inline"></div>
<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br></div>