<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.16.3">
</HEAD>
<BODY>
The $avp(s:lrn) is not null, it's set to a 10 digit number it's just nothing is getting added to the $ru.<BR>
<BR>
Ill run a ngrep soon and see if I see it anywhere else in the signaling but when I looked before I did not see it.<BR>
<BR>
I find very is strange that just the order seems to break it!<BR>
<BR>
On Sat, 2010-05-01 at 18:17 -0500, Brett Nemeroff wrote:<BR>
<BLOCKQUOTE TYPE=CITE>
    <FONT COLOR="#000000">How about adding:</FONT>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <FONT COLOR="#000000">if (!is_avp_set(&quot;$avp(s:lrn)&quot;)) {</FONT>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <FONT COLOR="#000000">&nbsp;&nbsp; &nbsp; $avp(s:lrn)=&quot;&quot;;</FONT>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <FONT COLOR="#000000">}</FONT>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <FONT COLOR="#000000">To prevent the null value from causing problems...</FONT>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <FONT COLOR="#000000">On Sat, May 1, 2010 at 5:27 PM, Laszlo &lt;<A HREF="mailto:laszlo@voipfreak.net">laszlo@voipfreak.net</A>&gt; wrote:</FONT><BR>
    <BLOCKQUOTE>
        <BR>
        <BR>
    </BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BLOCKQUOTE>
        <FONT COLOR="#000000">2010/4/30 Brad Bendy &lt;<A HREF="mailto:brad.bendy@benganetworks.com">brad.bendy@benganetworks.com</A>&gt;</FONT>
    </BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BLOCKQUOTE>
        <BR>
    </BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BLOCKQUOTE>
        <BLOCKQUOTE>
            <FONT COLOR="#000000">Hi,</FONT><BR>
            <BR>
            <FONT COLOR="#000000">Im bringing this back up again.</FONT><BR>
            <BR>
            <FONT COLOR="#000000">Ive had to switch our INVITE format as some upstreams parse the INVITE differently, I just need to change the order of variables around.</FONT><BR>
            <BR>
            <FONT COLOR="#000000">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.</FONT><BR>
            <BR>
            <FONT COLOR="#000000">I was using:</FONT>
        </BLOCKQUOTE>
    </BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BLOCKQUOTE>
        <BLOCKQUOTE>
            <BR>
            <FONT COLOR="#000000">$ru='sip:' + $rU + '@' + $rd + ';npdi=yes' + ';rn=' + $avp(s:lrn);</FONT><BR>
            <BR>
            <BR>
        </BLOCKQUOTE>
    </BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BLOCKQUOTE>
        <BLOCKQUOTE>
            <FONT COLOR="#000000">now</FONT><BR>
            <FONT COLOR="#000000">$ru='sip:' + $rU + ';npdi=yes' + ';rn=+1' + $avp(s:lrn) + '@' + $rd;</FONT><BR>
            <BR>
            <BR>
        </BLOCKQUOTE>
    </BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BLOCKQUOTE>
        <BR>
        <FONT COLOR="#000000">maybe </FONT><BR>
        <FONT COLOR="#000000">that should go out if $avp(s:lrn) is not null(otherwise you should see errors in the syslog/messages).</FONT><BR>
        <FONT COLOR="#000000">can you post the output of</FONT><BR>
        <FONT COLOR="#000000">ngrep '11235559999'&nbsp; port 5060 -Wbyline -q -dany -t</FONT><BR>
        <BR>
        <FONT COLOR="#000000">?</FONT><BR>
        <FONT COLOR="#000000">Is there any other place where you manipulate $ru? (failure_route or somewhere else)</FONT><BR>
        <BR>
        <FONT COLOR="#888888">-Laszlo</FONT><BR>
        <BR>
        <BR>
        <BR>
        <BR>
        <BR>
        <BR>
        <FONT COLOR="#888888">&nbsp;</FONT>
    </BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BLOCKQUOTE>
        <BLOCKQUOTE>
            <FONT COLOR="#000000">Before the INVITE would look like:</FONT><BR>
            <BR>
            <FONT COLOR="#000000">INVITE sip:+11235559999</FONT><FONT COLOR="#000000"><B>@<A HREF="http://1.1.1.1">1.1.1.1</A></B></FONT><FONT COLOR="#000000">;npdi=yes;rn=+11235559999 SIP/2.0</FONT><BR>
            <BR>
            <FONT COLOR="#000000">but now it should look like INVITE sip:+11235559999;npdi=yes;rn=+11235559999</FONT><FONT COLOR="#000000"><B>@<A HREF="http://1.1.1.1">1.1.1.1</A></B></FONT><FONT COLOR="#000000"> SIP/2.0</FONT><BR>
            <BR>
            <FONT COLOR="#000000">it currently looks like INVITE sip:+11235559999@</FONT><FONT COLOR="#000000"><B>1.1.1.1</B></FONT><FONT COLOR="#000000"> SIP/2.0.</FONT><BR>
            <BR>
            <FONT COLOR="#000000">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.</FONT><BR>
            <BR>
            <BR>
        </BLOCKQUOTE>
    </BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BLOCKQUOTE>
        <BR>
    </BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BLOCKQUOTE>
        <BR>
    </BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BLOCKQUOTE>
        <BR>
        <FONT COLOR="#000000">_______________________________________________</FONT><BR>
        <FONT COLOR="#000000">Users mailing list</FONT><BR>
        <FONT COLOR="#000000"><A HREF="mailto:Users@lists.opensips.org">Users@lists.opensips.org</A></FONT><BR>
        <FONT COLOR="#000000"><A HREF="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</A></FONT><BR>
        <BR>
    </BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<PRE>
<FONT COLOR="#000000">_______________________________________________</FONT>
<FONT COLOR="#000000">Users mailing list</FONT>
<FONT COLOR="#000000"><A HREF="mailto:Users@lists.opensips.org">Users@lists.opensips.org</A></FONT>
<FONT COLOR="#000000"><A HREF="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</A></FONT>
</PRE>
</BLOCKQUOTE>
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
-- <BR>
Brad Bendy<BR>
Chief Technical Officer<BR>
<A HREF="mailto:brad.bendy@benganetworks.com">brad.bendy@benganetworks.com</A><BR>
<BR>
Benga Networks, LLC.<BR>
10115 E. Bell Rd, Ste. 107-451<BR>
Scottsdale, AZ 85260-2189<BR>
<BR>
Toll Free: &nbsp;&nbsp; 877-44-BENGA<BR>
Local:&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 480-970-5200<BR>
Cell:&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 602-550-4004<BR>
Fax:&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 866-852-4468
</TD>
</TR>
</TABLE>
</BODY>
</HTML>