<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>As the Diversion hdr is in a
negative reply, it will be visible only in onreply_route (as
$di) or in failure route (as $(<reply>di)<br>
<br>
To better understand this, please read about routing blocks:<br>
<a class="moz-txt-link-freetext" href="http://www.opensips.org/Documentation/Script-Routes-1-10">http://www.opensips.org/Documentation/Script-Routes-1-10</a><br>
and about variables:<br>
<a class="moz-txt-link-freetext" href="http://www.opensips.org/Documentation/Script-CoreVar-1-10">http://www.opensips.org/Documentation/Script-CoreVar-1-10</a><br>
<br>
Regards<br>
</tt>
<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 13:53, Mike Claudi Pedersen wrote:<br>
</div>
<blockquote
cite="mid:CADats6F9=-uwQThthcymjhXSNF4pJf6Z2CGCX9bgNKUXe2Qo5w@mail.gmail.com"
type="cite">
<div dir="ltr">I actually don't know. but where would i be able to
see $di.. in which route from the default cfg</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">2014-04-04 12:43 GMT+02:00
Bogdan-Andrei Iancu <span dir="ltr"><<a
moz-do-not-send="true" href="mailto:bogdan@opensips.org"
target="_blank">bogdan@opensips.org</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<div><tt>I see the </tt><tt>Diversion hdr is present in a
3xx reply -> are you using the $di in failure route
or so ?</tt><tt><br>
</tt><tt><br>
</tt><tt>Regards,</tt>
<div class=""><br>
<pre cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a moz-do-not-send="true" href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a></pre>
</div>
<div>
<div class="h5"> On 04.04.2014 12:59, Mike Claudi
Pedersen wrote:<br>
</div>
</div>
</div>
<div>
<div class="h5">
<blockquote type="cite">
<div dir="ltr">i cant seem to see why. even in debug
mode...
<div>i have the siptrace attached</div>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">2014-04-04 11:54
GMT+02:00 Bogdan-Andrei Iancu <span dir="ltr"><<a
moz-do-not-send="true"
href="mailto:bogdan@opensips.org"
target="_blank">bogdan@opensips.org</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0
0 0 .8ex;border-left:1px #ccc
solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<div><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 cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a moz-do-not-send="true" href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a></pre>
<div>
<div> On 04.04.2014 10:58, Mike Claudi
Pedersen wrote:<br>
</div>
</div>
</div>
<blockquote type="cite">
<div>
<div>
<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></fieldset>
<br>
</div>
</div>
<pre>_______________________________________________
Users mailing list
<a moz-do-not-send="true" href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a moz-do-not-send="true" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</div>
</blockquote>
</div>
<br>
<br clear="all">
<div><br>
</div>
-- <br>
<div dir="ltr">Med venlig hilsen<br>
ipnordic A/S<br>
<div><br>
</div>
<div>Mike Claudi Pedersen</div>
<div>Tekniker</div>
<div>
<div><br>
</div>
Telefon: <span
style="color:rgb(61,58,54);font-family:aller_lightregular,Arial,Helvetica,sans-serif">79301033</span><br>
<a moz-do-not-send="true"
href="http://www.ipnordic.dk/"
style="color:rgb(17,85,204)" target="_blank">www.ipnordic.dk</a></div>
</div>
</div>
</blockquote>
<br>
</div>
</div>
</div>
</blockquote>
</div>
<br>
<br clear="all">
<div><br>
</div>
-- <br>
<div dir="ltr">Med venlig hilsen<br>
ipnordic A/S<br>
<div><br>
</div>
<div>Mike Claudi Pedersen</div>
<div>Tekniker</div>
<div>
<div><br>
</div>
Telefon: <span
style="color:rgb(61,58,54);font-family:aller_lightregular,Arial,Helvetica,sans-serif">79301033</span><br>
<a moz-do-not-send="true" href="http://www.ipnordic.dk/"
style="color:rgb(17,85,204)" target="_blank">www.ipnordic.dk</a></div>
</div>
</div>
</blockquote>
<br>
</body>
</html>