<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)"><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:Tahoma;
        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:12.0pt;
        font-family:"Times New Roman","serif";}
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;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
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 lang=EN-GB link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Jeff,<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><br>Thanks for the suggestion. I had not considered the possibility of using the MI. It&#8217;s a good idea and should work. It should be possible to handle the re-INVITE, send an event to an external app which can then use the MI to end the call.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>John<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal style='margin-left:36.0pt'><b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Jeff Pyle [mailto:jpyle@fidelityvoice.com] <br><b>Sent:</b> 05 July 2013 16:06<br><b>To:</b> john.quick@smartvox.co.uk; OpenSIPS users mailling list<br><b>Subject:</b> Re: [OpenSIPS-Users] Force call to end<o:p></o:p></span></p><p class=MsoNormal style='margin-left:36.0pt'><o:p>&nbsp;</o:p></p><p class=MsoNormal style='margin-left:36.0pt'>John,<o:p></o:p></p><div><p class=MsoNormal style='margin-left:36.0pt'><o:p>&nbsp;</o:p></p></div><div><p class=MsoNormal style='margin-left:36.0pt'>Is there some way you could detect the condition, then trigger an event that would force the dialog closed, as with the dlg_end_dlg MI function?<o:p></o:p></p></div><div><p class=MsoNormal style='margin-left:36.0pt'><o:p>&nbsp;</o:p></p></div><div><p class=MsoNormal style='margin-left:36.0pt'>You would likely have to allow the reinvite transaction to first complete or risk a 491 from the provider when you sent the BYE. &nbsp;Or, perhaps there's a more heavy handed approach lurking in a custom B2BUA scenario where the customer wouldn't have to see the reinvite at all.<o:p></o:p></p></div><div><p class=MsoNormal style='margin-left:36.0pt'><o:p>&nbsp;</o:p></p></div><div><p class=MsoNormal style='margin-left:36.0pt'><o:p>&nbsp;</o:p></p></div><div><p class=MsoNormal style='margin-left:36.0pt'>- Jeff<o:p></o:p></p></div><div><p class=MsoNormal style='margin-left:36.0pt'><o:p>&nbsp;</o:p></p><div><p class=MsoNormal style='margin-left:36.0pt'><o:p>&nbsp;</o:p></p><div><p class=MsoNormal style='margin-left:36.0pt'>On Fri, Jul 5, 2013 at 9:14 AM, John Quick &lt;<a href="mailto:john.quick@smartvox.co.uk" target="_blank">john.quick@smartvox.co.uk</a>&gt; wrote:<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>Hi,<br>On outbound calls, when the remote callee hangs up, the carrier is sending a<br>re-INVITE (SDP a=sendonly) not a BYE.<br>I can easily detect this re-INVITE in OpenSIPS, but am not sure how best to<br>make it then end the call.<br>$rm is a read-only variable and I suspect it would be bad practice to strip<br>off the SDP and replace &quot;INVITE&quot; with &quot;BYE&quot;.<br>Ideally, I would want OpenSIPS to send BYE's both upstream and down, as<br>happens when the timeout is reached in the Dialog module.<br>Any suggestions?<br><br>John Quick<br>Smartvox Limited<br>Web: <a href="http://www.smartvox.co.uk" target="_blank">www.smartvox.co.uk</a><br><br><br><br><br>_______________________________________________<br>Users mailing list<br><a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br><a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><o:p></o:p></p></div><p class=MsoNormal style='margin-left:36.0pt'><br><br clear=all><o:p></o:p></p><div><p class=MsoNormal style='margin-left:36.0pt'><o:p>&nbsp;</o:p></p></div><p class=MsoNormal style='margin-left:36.0pt'>-- <o:p></o:p></p><div><div><p class=MsoNormal style='mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:12.0pt;margin-left:36.0pt'>Jeff Pyle &lt;<a href="mailto:jpyle@fidelityvoice.com" target="_blank">jpyle@fidelityvoice.com</a>&gt;<br>Director, Voice Engineering<br>Fidelity Voice and Data<br>216-245-4106<br><a href="http://www.fidelityvoice.com" target="_blank">www.fidelityvoice.com</a><o:p></o:p></p></div></div></div></div></div></body></html>