<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix"><tt>Hello Mike,</tt><br>
<br>
Please post the SIP request you receive (make an ngrep capture),
so we can check it.<br>
<br>
BTW, try to run in full debug mode (debug=4) and check for the
logs when the INVITE is handled - maybe you get some hints on why
you get the vars NULL.<br>
<br>
Regards,<br>
Bogdan<br>
<pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
On 04.04.2014 10:58, Mike Claudi Pedersen wrote:<br>
</div>
<blockquote
cite="mid:CADats6H4rpSEGeE8GEa3Cx_w_xWvshB5manpCvi-fh3O1ip=MA@mail.gmail.com"
type="cite">
<div dir="ltr">When calls are forwarded they have a diversion
header, containing information about the forwarded route. why
cant i get this information i keep getting 0 or NULL values my
code is something like this to display the diversion header.
<div dir="ltr">
</div>
<div><br>
</div>
<div>
<div> </div>
<div> $var(RDNIS)=$di;</div>
<div> $var(PRIV)=$dip;</div>
<div><br>
</div>
<div> if (method=="INVITE")</div>
<div> {</div>
<div> xlog("L_DBG","\n RDNIS = $var(RDNIS)
\n");</div>
<div> xlog("L_DBG","\n PRIVACY = $var(PRIV)
n");</div>
<div><br>
</div>
<div> if (lookup("location"))</div>
<div> {</div>
<div> t_relay();</div>
<div> exit;</div>
<div> };</div>
</div>
<div><br>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</body>
</html>