[OpenSIPS-Users] Modify Invite
Brad Bendy
brad.bendy at benganetworks.com
Mon Feb 22 21:21:05 CET 2010
I just did:
$ru='sip:' + $rU + '@' + $rd + ';npdi=yes' + ';rn=' + $avp(s:lrn);
That works like a champ, thanks for help on this, rewriting the ru
direct took care of it!
Thanks again
On Mon, 2010-02-22 at 18:24 +0200, Bogdan-Andrei Iancu wrote:
> Brad,
>
> the function does not support variables as parameters :(.
>
> But a simple workaround, if you want to add a parameter to the RURI is:
> $ru = $ru + ";rn=" + $avp(s:foo) ;
>
> Regards,
> Bogdan
>
> Brad Bendy wrote:
> > Hi Bogdan,
> >
> > I just tried the add_uri_param() but when a avp since I need to pass a
> > dynamic value to it, and it errors out with a syntax error. If I try
> > with double quotes around the avp it then literally displays
> > "$avp(s:foo)" when it adds to the URI.
> >
> > Something im missing?
> >
> > Thanks
> >
> > On Mon, 2010-02-22 at 10:45 +0200, Bogdan-Andrei Iancu wrote:
> >> Hi Brad,
> >>
> >> Maybe http://www.opensips.org/html/docs/modules/1.6.x/uri.html#id270649 ?
> >>
> >> Regards,
> >> Bogdan
> >>
> >> Brad Bendy wrote:
> >> > Hi list,
> >> >
> >> > I need to add npdi=yes;rn=xxxxxxxxxx when I send a INVITE out. Ive
> >> > looked and don't really see any way to do this exactly. Is their a
> >> > module im missing to do this, or some sort of method? I thought this
> >> > would be in textops maybe but I do not see it in that module either.
> >> >
> >> > Any help or pointers would be great.
> >> >
> >> > Thanks!
> >> > ------------------------------------------------------------------------
> >> >
> >> > _______________________________________________
> >> > Users mailing list
> >> > Users at lists.opensips.org <mailto:Users at lists.opensips.org>
> >> > http://lists.opensips.org/cgi-bin/mailman/listinfo/users
> >> >
> >>
> >>
> >>
> >
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > Users mailing list
> > Users at lists.opensips.org
> > http://lists.opensips.org/cgi-bin/mailman/listinfo/users
> >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.opensips.org/pipermail/users/attachments/20100222/17f63506/attachment-0001.htm
More information about the Users
mailing list