[OpenSIPS-Users] Manage LRN response for invite

Vishal Pai vishalmpai at gmail.com
Tue Dec 11 06:21:46 EST 2018


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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20181211/e8cb92eb/attachment.html>


More information about the Users mailing list