<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        color:black;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;}
tt
        {mso-style-priority:99;
        font-family:"Courier New";}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";
        color:black;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;
        color:black;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
span.EmailStyle22
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle23
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle24
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle25
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body bgcolor=white lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='color:#1F497D'>Hi Bogdan,<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Sure the caller will not reply to the 487 since the transaction does not exist on his system and the call been canceled from his side,.<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>What I want is to hang-up the call from my side too directly and do not wait the mediaproxy timeout , since my opensips consider the call still active and you can find in the dialog module &nbsp;the call with reason connected with no ACK &nbsp;.<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Regards<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Khaled Chehab<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext'> Bogdan-Andrei Iancu [mailto:bogdan@opensips.org] <br><b>Sent:</b> Wednesday, December 12, 2012 1:26 PM<br><b>To:</b> M.Khaled W Chehab<br><b>Cc:</b> 'OpenSIPS users mailling list'; Muhammad Shahzad; Muhammad Shahzad<br><b>Subject:</b> Re: [OpenSIPS-Users] Send 487 request terminbated while a cancel recieved from UAC<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal><tt><span style='font-size:10.0pt'>Hi Khaled,</span></tt><span style='font-size:10.0pt;font-family:"Courier New"'><br><br><tt>You mean why the 487 reply from callee (frame 21) is not forwarded to the caller ?</tt><br><br><tt>Do you have opensips logs (in debug 4) for the entire call ? </tt><br><br><tt>Regards,</tt><br><br></span><o:p></o:p></p><pre>Bogdan-Andrei Iancu<o:p></o:p></pre><pre>OpenSIPS Founder and Developer<o:p></o:p></pre><pre><a href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a><o:p></o:p></pre><p class=MsoNormal><br>On 12/11/2012 06:08 PM, M.Khaled W Chehab wrote: <o:p></o:p></p><p class=MsoNormal><span style='color:windowtext'>Dear Bogdan ,</span><o:p></o:p></p><p class=MsoNormal><span style='color:windowtext'>&nbsp;</span><o:p></o:p></p><p class=MsoNormal><span style='color:windowtext'>I am not trying to do something against RFC, but I have a problem you can see it clear &nbsp;in the attached capture file,</span><o:p></o:p></p><p class=MsoNormal><span style='color:windowtext'>On wire shark time line (30.877027) &nbsp;the Client with IP ( 74.114.101.170) sends &nbsp;a cancel ,and the opensips version 1.8.2 &nbsp;server with IP 89.207.133.144 &nbsp;&nbsp;send the client 200 canceling and &nbsp;in its terms forward the cancel to the trunk provider with IP 74.114.101.190 ,but at wire shark 31.015333 time line you can see &nbsp;that the trunk sends a 200 OK &nbsp;,then 487 request terminated &nbsp;and the billing stops from the trunk provider &nbsp;&nbsp;.</span><o:p></o:p></p><p class=MsoNormal><span style='color:windowtext'>The problem is opensips didn&#8217;t hang-up the call and go for the mediaproxy timeout &nbsp;&nbsp;stream_timeout = 40.</span><o:p></o:p></p><p class=MsoNormal><span style='color:windowtext'>-how to let opensips cancel the call immediately &nbsp;and stop it with no billing .</span><o:p></o:p></p><p class=MsoNormal><span style='color:windowtext'>&nbsp;</span><o:p></o:p></p><p class=MsoNormal><span style='color:windowtext'>&nbsp;</span><o:p></o:p></p><p class=MsoNormal><span style='color:windowtext'>Regards</span><o:p></o:p></p><p class=MsoNormal><span style='color:windowtext'>Khaled</span><o:p></o:p></p><p class=MsoNormal><span style='color:#1F497D'>&nbsp;</span><o:p></o:p></p><p class=MsoNormal><span style='color:#1F497D'>&nbsp;</span><o:p></o:p></p><div><div style='border:none;border-top:solid windowtext 1.0pt;padding:3.0pt 0in 0in 0in;border-color:-moz-use-text-color -moz-use-text-color'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext'> Bogdan-Andrei Iancu [<a href="mailto:bogdan@opensips.org">mailto:bogdan@opensips.org</a>] <br><b>Sent:</b> Friday, December 07, 2012 7:31 PM<br><b>To:</b> OpenSIPS users mailling list<br><b>Cc:</b> M.Khaled W Chehab<br><b>Subject:</b> Re: [OpenSIPS-Users] Send 487 request terminbated while a cancel recieved from UAC</span><o:p></o:p></p></div></div><p class=MsoNormal>&nbsp;<o:p></o:p></p><p class=MsoNormal><tt><span style='font-size:10.0pt'>Hi Khaled,</span></tt><span style='font-size:10.0pt;font-family:"Courier New"'><br><br><tt>That is a bit against RFC - a proxy must not process the CANCEL (like terminating the INVITE), but to send it to the callee party and let the callee decide if the call should be canceled or not. So what you try to do is against RFC.</tt><br><br><tt>Regards,</tt><br><br><br></span><o:p></o:p></p><pre>Bogdan-Andrei Iancu<o:p></o:p></pre><pre>OpenSIPS Founder and Developer<o:p></o:p></pre><pre><a href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a><o:p></o:p></pre><p class=MsoNormal><br>On 12/06/2012 04:03 PM, M.Khaled W Chehab wrote: <o:p></o:p></p><p class=MsoNormal><span style='color:#1F497D'>Hi,</span><o:p></o:p></p><p class=MsoNormal><span style='color:#1F497D'>Any idea guys ?</span><o:p></o:p></p><p class=MsoNormal><span style='color:#1F497D'>&nbsp;</span><o:p></o:p></p><p class=MsoNormal><span style='color:#1F497D'>Regards</span><o:p></o:p></p><p class=MsoNormal><span style='color:#1F497D'>&nbsp;</span><o:p></o:p></p><p class=MsoNormal><span style='color:#1F497D'>&nbsp;</span><o:p></o:p></p><div><div style='border:none;border-top:solid windowtext 1.0pt;padding:3.0pt 0in 0in 0in;border-color:-moz-use-text-color'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> <a href="mailto:users-bounces@lists.opensips.org">users-bounces@lists.opensips.org</a> [<a href="mailto:users-bounces@lists.opensips.org">mailto:users-bounces@lists.opensips.org</a>] <b>On Behalf Of </b>M.Khaled W Chehab<br><b>Sent:</b> Wednesday, December 05, 2012 4:18 PM<br><b>To:</b> <a href="mailto:users@lists.opensips.org">users@lists.opensips.org</a><br><b>Subject:</b> [OpenSIPS-Users] Send 487 request terminbated while a cancel recieved from UAC<br><b>Importance:</b> High</span><o:p></o:p></p></div></div><p class=MsoNormal>&nbsp;<o:p></o:p></p><p class=MsoNormal>Dears ,<o:p></o:p></p><p class=MsoNormal>&nbsp;<o:p></o:p></p><p class=MsoNormal>How to send a&nbsp; 487 request terminated &nbsp;&nbsp;and drop the call directly &nbsp;if the UA send a cancel ,since now I am sending 200 &nbsp;canceling to UA and send a cancel for the Trunk and wait for his &nbsp;reply &nbsp;.<o:p></o:p></p><p class=MsoNormal>&nbsp;<o:p></o:p></p><p class=MsoNormal>Regards<o:p></o:p></p><p class=MsoNormal>Khaled Chehab<o:p></o:p></p><p class=MsoNormal>Senior NGN Engineer<o:p></o:p></p><p class=MsoNormal><img border=0 width=117 height=75 id="Picture_x0020_1" src="cid:image001.png@01CDD92B.4530F570" alt="Description: icucall"><o:p></o:p></p><p class=MsoNormal>Operations Office - Lebanon<o:p></o:p></p><p class=MsoNormal>Office&nbsp;&nbsp;&nbsp; : +961 1 515155 ext 300<o:p></o:p></p><p class=MsoNormal>Mobile&nbsp; : +961 3 045212<o:p></o:p></p><p class=MsoNormal>E-mail&nbsp;&nbsp;&nbsp; : <a href="mailto:kchehab@icucall.com">kchehab@icucall.com</a><o:p></o:p></p><p class=MsoNormal>MSN ID :khalidchehab@hotmail.com <o:p></o:p></p><p class=MsoNormal>Skype&nbsp;&nbsp;&nbsp; : k_chehab <o:p></o:p></p><p class=MsoNormal>Web Site: <a href="http://www.icucall.com">http://www.icucall.com</a><o:p></o:p></p><p class=MsoNormal>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="http://www.allohi.com">http://www.allohi.com</a><o:p></o:p></p><p class=MsoNormal>&nbsp;<o:p></o:p></p><pre>&nbsp;<o:p></o:p></pre><pre>&nbsp;<o:p></o:p></pre><pre>_______________________________________________<o:p></o:p></pre><pre>Users mailing list<o:p></o:p></pre><pre><a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><o:p></o:p></pre><pre><a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><o:p></o:p></pre></div></body></html>