<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix"><tt>Hi Hamid,<br>
<br>
When there is an internal timeout, what happens is:<br>
1) Opensips sends CANCEL to callee<br>
2) OpenSIPS generates and internal 408 reply for that branch,
reply that you can see in failure route<br>
3) the received 487 from callee is absorbed by OpenSIPS (as a
408 was already generated).<br>
<br>
So, if you do not do anything in failure route (like creating a
new branch or sending your own reply back to callee), the 408
will be sent to caller. <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 12.02.2015 08:30, Hamid Hashmi wrote:<br>
</div>
<blockquote cite="mid:BLU170-W132B9D7F41B5DA9AA16D864E0220@phx.gbl"
type="cite">
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style>
<div dir="ltr"><span style="color: rgb(68, 68, 68); font-size:
15px; line-height: 21.2999992370605px; background-color:
rgb(255, 255, 255);">Its my mistake :p </span>
<div style="line-height: 21.2999992370605px; color: rgb(68, 68,
68); font-size: 15px; background-color: rgb(255, 255, 255);"><br
style="line-height: 21.2999992370605px;">
</div>
<div style="line-height: 21.2999992370605px; color: rgb(68, 68,
68); font-size: 15px; background-color: rgb(255, 255, 255);">fr_inv_timer
timeout sends CANCEL to Callee <b style="line-height:
21.2999992370605px;">NOT</b> to Caller. But my call
terminated due to response 487 came from Callee. I just droped
the response 487 in onreply_route and its working for me. Is
it a good practice ?
<div style="line-height: 21.2999992370605px;"><br
style="line-height: 21.2999992370605px;">
</div>
<div style="line-height: 21.2999992370605px;">Regards</div>
<div style="line-height: 21.2999992370605px;">Hamid R. Hashmi</div>
</div>
<br>
<div>
<hr id="stopSpelling">Date: Wed, 11 Feb 2015 22:19:21 +0200<br>
From: <a class="moz-txt-link-abbreviated" href="mailto:bogdan@opensips.org">bogdan@opensips.org</a><br>
To: <a class="moz-txt-link-abbreviated" href="mailto:users@lists.opensips.org">users@lists.opensips.org</a>; <a class="moz-txt-link-abbreviated" href="mailto:hamid2kviii@hotmail.com">hamid2kviii@hotmail.com</a><br>
Subject: Re: [OpenSIPS-Users] How to customize response on
fr_inv_timer<br>
<br>
<div class="ecxmoz-cite-prefix">Hi Hamid,<br>
<br>
If you catch the 408 reply in failure route and create a new
branch (to divert to another GW), there will be nothing sent
back to UAC (caller) to inform about this timeout event.<br>
<br>
Regards,<br>
<pre class="ecxmoz-signature">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a moz-do-not-send="true" class="ecxmoz-txt-link-freetext" href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a></pre>
On 10.02.2015 10:17, Hamid Hashmi wrote:<br>
</div>
<blockquote
cite="mid:BLU170-W121B9A30A1845F888CDF742E0240@phx.gbl">
<style><!--
.ExternalClass .ecxhmmessage P {
padding:0px;
}
.ExternalClass body.ecxhmmessage {
font-size:12pt;
font-family:Calibri;
}
--></style>
<div dir="ltr">Hello,
<div><br>
</div>
<div>On fr_ivr_timer timeout opensips1.11 sends CANCEL to
Caller and I handle the timout in failure route by 408
sip response. May I change method CANCEL to some other
response that can indicate a caller (UAC) that call is
now diverting to another gateway so that Caller can wait
more. </div>
<div><br>
</div>
<div><br>
</div>
<div>failure_route[1]{</div>
<div>.</div>
<div>.</div>
<div>.</div>
<div><br>
</div>
<div>
<div> if (t_check_status("408")) {</div>
<div>.</div>
<div>.</div>
<div>.</div>
<div><span style="font-size:12pt;"> if (
t_local_replied("last") ) {</span></div>
<div> # timeout with replies
received -> fr_inv_timer</div>
<div> xlog("L_NOTICE",
"[$pr:$fU@$si:$sp]: Timeout on RING timer for '$rm'
from '$fu' to '$ru' after '$avp(5)' seconds \n");</div>
<div> <span
style="font-size:12pt;">route(failover);</span></div>
<div> } </div>
<div> </div>
</div>
<div> }</div>
<div>.</div>
<div>.</div>
<div>.</div>
<div>}</div>
<div><br>
</div>
<div>Call failoverd to route[failover] but CANCELED due to
fr_ivr_timer timout because it send CANCEL to Caller. </div>
<div><br>
</div>
<div>Any solution ?</div>
<div><br>
</div>
<div><br>
</div>
<div>Regards</div>
<div>Hamid R. Hashmi</div>
</div>
<br>
<fieldset class="ecxmimeAttachmentHeader"></fieldset>
<br>
<pre>_______________________________________________
Users mailing list
<a moz-do-not-send="true" class="ecxmoz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a moz-do-not-send="true" class="ecxmoz-txt-link-freetext" 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>
</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>