<div dir="ltr">Thank you Jon. It worked.<br></div><br><div class="gmail_quote"><div dir="ltr">On Tue, Dec 11, 2018 at 5:42 PM Jon Abrams <<a href="mailto:ffshoh@gmail.com">ffshoh@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>I do something like this to pull the rn field from the response:</div><div><br></div><div>
if(t_check_status("302")) {
</div><div> $var(contact) = $(<reply>hdr(Contact)); <br></div><div> $avp(lrn_called) = $(var(contact){nameaddr.uri}{param.value,rn});</div><div>}<br></div></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Tue, Dec 11, 2018 at 5:24 AM Vishal Pai <<a href="mailto:vishalmpai@gmail.com" target="_blank">vishalmpai@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Hello All</div><div><br></div><div>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 <br></div><div><br></div><div>Invite</div><div><br></div><div>SIP/2.0 302 Moved Temporarily<br>Via: SIP/2.0/UDP XXX.XX.XX.XXX:5060;branch=z9hG4bK1cc7.f7<br>From: "31XXXXXX00" <sip:
31XXXXXX00@XX.XXX.XX.X:5060>;tag=<br>To: <sip:131XXXXXX01@
XX.XXX.XX.X
>;tag=6b20a7d3<br>Call-ID: <a href="http://03b3850628d1d60d2341cc2c39ae15b7@192.168.1.100:5" target="_blank">03b3850628d1d60d2341cc2c39ae15b7@192.168.1.100:5</a><br>CSeq: 102 INVITE<br><b>Contact: <sip:131XXXXXX01;rn=131XXXXXX05;npdi@
XX.XXX.XX.X:5060></b><br>Location-Info: N<br>Content-Length: 0<br></div><div><br></div><div> if(t_check_status("302")) {<br> $var(lrn_rpl) = $(<reply>ct.fields(uri){param.value,rn});<br> xlog("SCRIPT:LRN Received :
$var(lrn_rpl)
\n");<br> }</div><div><br></div><div>Here i am getting NULL value in
$var(lrn_rpl) variable.</div><div><br></div><div>Can anyone let me know what i am doing wrong here.<br></div><div><br></div><div><br></div></div></div></div>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div>