<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></head><body ><div>That's a typo - I ment failure route :) .</div><div><br></div><div><br></div><div><div style="font-size:9px;color:#575757">Sent from Samsung Mobile</div></div><br><br>-------- Original message --------<br>From: Mike Claudi Pedersen <mike.pedersen@ipnordic.dk> <br>Date:08/04/2014 08:10 (GMT+01:00) <br>To: Bogdan-Andrei Iancu <bogdan@opensips.org> <br>Subject: Re: [OpenSIPS-Users] Diversion information <br><br><div dir="ltr">what exactly do you mean with fsilutr ? i cant seem to find that route and the could you given an exact example of the syntax of the $di variable when i need to call it, im not sure what you mean by $(<reply>di) what could be where <reply> is?. sorry for the trouble i'm relatively new to this, and trying to do a school project on openSIPS</div>
<div class="gmail_extra"><br><br><div class="gmail_quote">2014-04-07 13:08 GMT+02:00 Bogdan-Andrei Iancu <span dir="ltr"><<a 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><div>Once again, if you get the Diversion header in the 300 reply, you can access it from fsilutr route via $(<reply>di) variable.</div><div><br></div><div>Regards,</div><div>Bogdan</div><div><br></div><div><br>
</div><div><div style="font-size:9px;color:#575757">Sent from Samsung Mobile</div></div><div><div class="h5"><br><br>-------- Original message --------<br>From: Mike Claudi Pedersen <u></u> <br>Date:07/04/2014 13:37 (GMT+02:00) <br>
To: Bogdan-Andrei Iancu <u></u> <br>Subject: Re: [OpenSIPS-Users] Diversion information <br><br><div dir="ltr">i have tried to call the variable $di from various routes now, they are all returning NULL? im not usre if it is my test setup that is failing but i have 2 test numbers 1000 and 1001.. on 1001 i have a permanent forward to 1000 and i then call 1001 from 1000, and get redirected to 1000.. shouldnt this generate a diversion header. when i trace it, it sure looks like its being generated, but i simply cant call this value from anywhere i only wanna use it for the purpose of showing the original caller in case of redirected calls.<div>
<br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-04-07 11:25 GMT+02:00 Mike Claudi Pedersen <span dir="ltr"><<a href="mailto:mike.pedersen@ipnordic.dk" target="_blank">mike.pedersen@ipnordic.dk</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">first time i encounter any diversion info is when i get the 302 moved temporarily, and the next sip message is an invite? so i would assume that it is a request ? </div>
<div class="gmail_extra"><br><br><div class="gmail_quote">
2014-04-07 11:16 GMT+02:00 Bogdan-Andrei Iancu <span dir="ltr"><<a href="mailto:bogdan@opensips.org" target="_blank">bogdan@opensips.org</a>></span>:<div><div><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello Mike,<br>
<br>
Once again, it depends in what kind of SIP messages you get the "diversion info" - if you get it into a requests, you can handle it in the main route; but if you get in replies, you need to to do it in failure route or reply route.<div>
<br>
<br>
Regards,<br>
<br>
Bogdan-Andrei Iancu<br>
OpenSIPS Founder and Developer<br>
<a href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.<u></u>com</a><br>
<br></div><div><div>
On 07.04.2014 10:53, kostenftw wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
okay.. if i want to make an exception that only handles calls with diversion<br>
info i should do it in one of those routes ? right now i'm handling all of<br>
my calls in the same route<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://opensips-open-sip-server.1449251.n2.nabble.com/Diversion-information-tp7590569p7590604.html" target="_blank">http://opensips-open-sip-<u></u>server.1449251.n2.nabble.com/<u></u>Diversion-information-<u></u>tp7590569p7590604.html</a><br>
Sent from the OpenSIPS - Users mailing list archive at Nabble.com.<br>
<br>
______________________________<u></u>_________________<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" target="_blank">http://lists.opensips.org/cgi-<u></u>bin/mailman/listinfo/users</a><br>
<br>
<br>
</blockquote>
<br>
</div></div></blockquote></div></div></div><br><br clear="all"><div><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 href="http://www.ipnordic.dk/" style="color:rgb(17,85,204)" target="_blank">www.ipnordic.dk</a></div></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 href="http://www.ipnordic.dk/" style="color:rgb(17,85,204)" target="_blank">www.ipnordic.dk</a></div></div>
</div>
</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 href="http://www.ipnordic.dk/" style="color:rgb(17,85,204)" target="_blank">www.ipnordic.dk</a></div></div>
</div>
</body>