[OpenSIPS-Users] Manage LRN response for invite

Vishal Pai vishalmpai at gmail.com
Thu Dec 13 04:18:14 EST 2018


Thank you Jon. It worked.

On Tue, Dec 11, 2018 at 5:42 PM Jon Abrams <ffshoh at gmail.com> wrote:

> I do something like this to pull the rn field from the response:
>
> if(t_check_status("302")) {
>     $var(contact) = $(<reply>hdr(Contact));
>     $avp(lrn_called) = $(var(contact){nameaddr.uri}{param.value,rn});
> }
>
> On Tue, Dec 11, 2018 at 5:24 AM Vishal Pai <vishalmpai at gmail.com> wrote:
>
>> Hello All
>>
>> I am implementing LRN using sip invite how i can get the rn value of
>> response received for the request in a variable. What i did is
>>
>> Invite
>>
>> SIP/2.0 302 Moved Temporarily
>> Via: SIP/2.0/UDP XXX.XX.XX.XXX:5060;branch=z9hG4bK1cc7.f7
>> From: "31XXXXXX00" <sip: 31XXXXXX00 at XX.XXX.XX.X:5060>;tag=
>> To: <sip:131XXXXXX01@ XX.XXX.XX.X >;tag=6b20a7d3
>> Call-ID: 03b3850628d1d60d2341cc2c39ae15b7 at 192.168.1.100:5
>> CSeq: 102 INVITE
>> *Contact: <sip:131XXXXXX01;rn=131XXXXXX05;npdi@ XX.XXX.XX.X:5060>*
>> Location-Info: N
>> Content-Length: 0
>>
>>  if(t_check_status("302")) {
>>         $var(lrn_rpl) = $(<reply>ct.fields(uri){param.value,rn});
>>         xlog("SCRIPT:LRN Received : $var(lrn_rpl) \n");
>>  }
>>
>> Here i am getting NULL value in $var(lrn_rpl) variable.
>>
>> Can anyone let me know what i am doing wrong here.
>>
>>
>> _______________________________________________
>> Users mailing list
>> 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/20181213/c83c4648/attachment.html>


More information about the Users mailing list