<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=Windows-1252">
<meta name="Generator" content="Microsoft Word 15 (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:Helvetica;
        panose-1:0 0 0 0 0 0 0 0 0 0;}
@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:"Times New Roman \(Body CS\)";
        panose-1:2 11 6 4 2 2 2 2 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;
        font-size:10.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        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";}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;}
span.EmailStyle21
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.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 lang="EN-US" link="#0563C1" vlink="#954F72" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt">Yes, there is that one, I hadn’t thought of that. But you will not be able to control the response code sent back upstream from there. You still need to do that in the failure_route.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<div>
<div>
<p class="MsoNormal" style="line-height:105%"><span style="font-size:12.0pt;line-height:105%;color:#FF4F1F">Ben Newlin</span><span style="font-size:11.0pt;line-height:105%"><o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:105%"><span style="color:#959699">Lead Voice Network Engineer</span><span style="font-size:11.0pt;line-height:105%"><o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:105%"><span style="color:#959699">Genesys Cloud Voice</span><span style="font-size:11.0pt;line-height:105%"><o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:105%"><span style="color:#959699"> </span><span style="font-size:11.0pt;line-height:105%"><o:p></o:p></span></p>
<p class="MsoNormal"><a href="http://www.genesys.com/" target="_blank"><span style="font-size:11.0pt;color:black;text-decoration:none"><img border="0" width="191" height="71" style="width:1.9895in;height:.7395in" id="Picture_x0020_8" src="cid:image001.png@01D88304.B0FF7870" alt="X+8ADXwmpWwAAAABJRU5ErkJggg=="></span></a><span style="font-size:11.0pt"><o:p></o:p></span></p>
<p class="MsoNormal"><a href="https://twitter.com/Genesys" target="_blank"><span style="font-size:11.0pt;color:black;text-decoration:none"><img border="0" width="32" height="31" style="width:.3333in;height:.3229in" id="Picture_x0020_7" src="cid:image002.png@01D88304.B0FF7870" alt="eJAO5L8CpOPwG+vPB9q3Mq3SAAAAAElFTkSuQmCC"></span></a><a href="http://www.linkedin.com/company/601919?trk=tyah" target="_blank"><span style="font-size:11.0pt;color:black;text-decoration:none"><img border="0" width="32" height="31" style="width:.3333in;height:.3229in" id="Picture_x0020_6" src="cid:image003.png@01D88304.B0FF7870" alt="NZOfBSD5zhNaRvrLBVF2igAAAABJRU5ErkJggg=="></span></a><a href="https://www.instagram.com/genesyscx" target="_blank"><span style="font-size:11.0pt;color:black;text-decoration:none"><img border="0" width="31" height="31" style="width:.3229in;height:.3229in" id="Picture_x0020_5" src="cid:image004.png@01D88304.B0FF7870" alt="xf4wOBtofx3lYAAAAAElFTkSuQmCC"></span></a><a href="https://www.facebook.com/Genesys" target="_blank"><span style="font-size:11.0pt;color:black;text-decoration:none"><img border="0" width="32" height="31" style="width:.3333in;height:.3229in" id="Picture_x0020_4" src="cid:image005.png@01D88304.B0FF7870" alt="L5hfZJ73LJyNk7AAAAABJRU5ErkJggg=="></span></a><a href="https://www.youtube.com/Genesys" target="_blank"><span style="font-size:11.0pt;color:black;text-decoration:none"><img border="0" width="32" height="31" style="width:.3333in;height:.3229in" id="Picture_x0020_3" src="cid:image006.png@01D88304.B0FF7870" alt="aX4aUWQAAAABJRU5ErkJggg=="></span></a><a href="http://blog.genesys.com/" target="_blank"><span style="font-size:11.0pt;color:black;text-decoration:none"><img border="0" width="31" height="31" style="width:.3229in;height:.3229in" id="Picture_x0020_2" src="cid:image007.png@01D88304.B0FF7870" alt="wFxOBHaJBbmQQAAAABJRU5ErkJggg=="></span></a><span style="font-size:11.0pt"><o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal" style="margin-bottom:12.0pt"><b><span style="font-size:12.0pt;color:black">From:
</span></b><span style="font-size:12.0pt;color:black">Users <users-bounces@lists.opensips.org> on behalf of Mehdi Shirazi <m.shirazi@gmail.com><br>
<b>Date: </b>Saturday, June 18, 2022 at 1:44 AM<br>
<b>To: </b>OpenSIPS users mailling list <users@lists.opensips.org><br>
<b>Subject: </b>Re: [OpenSIPS-Users] Drop the call from onreply_route with cause code<o:p></o:p></span></p>
</div>
<div>
<div>
<div>
<div>
<table class="MsoNormalTable" border="1" cellspacing="0" cellpadding="0" style="border-collapse:collapse;border:none">
<tbody>
<tr>
<td style="border:solid #B60000 1.0pt;background:white;padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal"><b><span style="font-size:12.0pt;color:#B60000"> EXTERNAL EMAIL - Please use caution with links and attachments <o:p></o:p></span></b></p>
</td>
</tr>
</tbody>
</table>
</div>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Helvetica;color:black"><o:p> </o:p></span></p>
<div class="MsoNormal" align="center" style="text-align:center"><span style="font-size:11.0pt">
<hr size="0" width="100%" align="center">
</span></div>
</div>
<p class="MsoNormal"><span style="font-size:11.0pt">Thanks Ben for your reply.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt">It seems there is one way to cancel initiated call from reply_route:<o:p></o:p></span></p>
</div>
<div>
<pre>onreply_route[3] {<o:p></o:p></pre>
<pre>...<o:p></o:p></pre>
<pre>        if ($hdr(User-Agent)=~"Snom") {<o:p></o:p></pre>
<pre>               # drop calls involving snom UA<o:p></o:p></pre>
<pre>               t_cancel_branch();<o:p></o:p></pre>
<pre>        }<o:p></o:p></pre>
<pre>...<o:p></o:p></pre>
<pre>}<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>Regards<br>M.Shirazi<o:p></o:p></pre>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
</div>
</div>
</div>
</body>
</html>