[OpenSIPS-Users] Modify Invite

Bogdan-Andrei Iancu bogdan at voice-system.ro
Mon Feb 22 17:24:31 CET 2010


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
>   


-- 
Bogdan-Andrei Iancu
www.voice-system.ro




More information about the Users mailing list