<!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>
I just did: <BR>
$ru='sip:' + $rU + '@' + $rd + ';npdi=yes' + ';rn=' + $avp(s:lrn);<BR>
<BR>
That works like a champ, thanks for help on this, rewriting the ru direct took care of it!<BR>
<BR>
Thanks again<BR>
<BR>
On Mon, 2010-02-22 at 18:24 +0200, Bogdan-Andrei Iancu wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
<FONT COLOR="#000000">Brad,</FONT>
<FONT COLOR="#000000">the function does not support variables as parameters :(.</FONT>
<FONT COLOR="#000000">But a simple workaround, if you want to add a parameter to the RURI is:</FONT>
<FONT COLOR="#000000"> $ru = $ru + ";rn=" + $avp(s:foo) ;</FONT>
<FONT COLOR="#000000">Regards,</FONT>
<FONT COLOR="#000000">Bogdan</FONT>
<FONT COLOR="#000000">Brad Bendy wrote:</FONT>
<FONT COLOR="#000000">> Hi Bogdan,</FONT>
<FONT COLOR="#000000">></FONT>
<FONT COLOR="#000000">> I just tried the add_uri_param() but when a avp since I need to pass a </FONT>
<FONT COLOR="#000000">> dynamic value to it, and it errors out with a syntax error. If I try </FONT>
<FONT COLOR="#000000">> with double quotes around the avp it then literally displays </FONT>
<FONT COLOR="#000000">> "$avp(s:foo)" when it adds to the URI.</FONT>
<FONT COLOR="#000000">></FONT>
<FONT COLOR="#000000">> Something im missing?</FONT>
<FONT COLOR="#000000">></FONT>
<FONT COLOR="#000000">> Thanks</FONT>
<FONT COLOR="#000000">></FONT>
<FONT COLOR="#000000">> On Mon, 2010-02-22 at 10:45 +0200, Bogdan-Andrei Iancu wrote:</FONT>
<FONT COLOR="#000000">>> Hi Brad,</FONT>
<FONT COLOR="#000000">>></FONT>
<FONT COLOR="#000000">>> Maybe <A HREF="http://www.opensips.org/html/docs/modules/1.6.x/uri.html#id270649">http://www.opensips.org/html/docs/modules/1.6.x/uri.html#id270649</A> ?</FONT>
<FONT COLOR="#000000">>></FONT>
<FONT COLOR="#000000">>> Regards,</FONT>
<FONT COLOR="#000000">>> Bogdan</FONT>
<FONT COLOR="#000000">>></FONT>
<FONT COLOR="#000000">>> Brad Bendy wrote:</FONT>
<FONT COLOR="#000000">>> > Hi list,</FONT>
<FONT COLOR="#000000">>> ></FONT>
<FONT COLOR="#000000">>> > I need to add npdi=yes;rn=xxxxxxxxxx when I send a INVITE out. Ive </FONT>
<FONT COLOR="#000000">>> > looked and don't really see any way to do this exactly. Is their a </FONT>
<FONT COLOR="#000000">>> > module im missing to do this, or some sort of method? I thought this </FONT>
<FONT COLOR="#000000">>> > would be in textops maybe but I do not see it in that module either.</FONT>
<FONT COLOR="#000000">>> ></FONT>
<FONT COLOR="#000000">>> > Any help or pointers would be great.</FONT>
<FONT COLOR="#000000">>> ></FONT>
<FONT COLOR="#000000">>> > Thanks!</FONT>
<FONT COLOR="#000000">>> > ------------------------------------------------------------------------</FONT>
<FONT COLOR="#000000">>> ></FONT>
<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> <<A HREF="mailto:Users@lists.opensips.org">mailto: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>
<FONT COLOR="#000000">>> > </FONT>
<FONT COLOR="#000000">>></FONT>
<FONT COLOR="#000000">>></FONT>
<FONT COLOR="#000000">>> </FONT>
<FONT COLOR="#000000">></FONT>
<FONT COLOR="#000000">> ------------------------------------------------------------------------</FONT>
<FONT COLOR="#000000">></FONT>
<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>
<FONT COLOR="#000000">> </FONT>
</PRE>
</BLOCKQUOTE>
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
<BR>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>