<html 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=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style></head><body lang=EN-GB link=blue vlink="#954F72"><div class=WordSection1><p class=MsoNormal>I agree with Ben Newlin. </p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Pradee – are you trying to simulate a ‘broken call’? Eg one that stops working, as opposed to a BYE indicating that it has ended ‘cleanly’?</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Ben Cropley</p><p class=MsoNormal>Sent from my Windows 10 phone</p><p class=MsoNormal><o:p> </o:p></p><div style='mso-element:para-border-div;border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal style='border:none;padding:0cm'><b>From: </b><a href="mailto:Ben.Newlin@inin.com">Newlin, Ben</a><br><b>Sent: </b>21 April 2017 12:50<br><b>To: </b><a href="mailto:users@lists.opensips.org">OpenSIPS users mailling list</a><br><b>Subject: </b>Re: [OpenSIPS-Users] How to convert BYE to CANCEL( status code 480)</p></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span lang=EN-US>What you are asking to do breaks the protocol rules of SIP. Neither Opensips nor any other SIP proxy will do it.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>I am not sure which you actually wanted as the result as CANCEL and 480 are not the same thing, but you cannot convert a BYE into either one.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>A CANCEL has to refer to an in-progress INVITE transaction, which does not exist in your case as you said the call has been answered already.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>A 480 is a response, not a request. You cannot convert a request into a response, nor can you send a response to the mobile device without it having sent a new request first.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><div><p class=MsoNormal style='margin-bottom:12.0pt'><b><span lang=EN-US style='font-size:10.5pt;color:black'>Ben Newlin </span></b><u><span lang=EN-US style='font-size:10.5pt;color:black'><o:p></o:p></span></u></p></div><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span lang=EN-US style='color:black'>From: </span></b><span lang=EN-US style='color:black'>Users <users-bounces@lists.opensips.org> on behalf of Pradeepa Gurusinghe <pradee@gmail.com><br><b>Reply-To: </b>OpenSIPS users mailling list <users@lists.opensips.org><br><b>Date: </b>Friday, April 21, 2017 at 7:15 AM<br><b>To: </b>"users@lists.opensips.org" <users@lists.opensips.org><br><b>Subject: </b>[OpenSIPS-Users] How to convert BYE to CANCEL( status code 480)<o:p></o:p></span></p></div><div><p class=MsoNormal><span lang=EN-US style='font-family:"Times New Roman",serif'><o:p> </o:p></span></p></div><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Verdana",sans-serif;color:black'>Hi, <br><br>I'm using opensip as a load balancer in front of Freeswitch nodes. <br><br>Opensips Version 1.11 is used for a reason and can't change the version. <br><br>When an INVITE comes from mobile to Freeswitch through Opensips, call will be answered. Then at the end of call, Freeswitch sends BYE to Opensips. <br><br>I want Opensip to convert BYE to Cancel - 480 Temporary not available and forward. <br><br>Please let me know how to do it with Opensips. <br><br><br>Thanks, <br>Pradee</span><span lang=EN-US style='font-family:"Times New Roman",serif'><o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Times New Roman",serif'><o:p> </o:p></span></p></div></body></html>