<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=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:Consolas;
        panose-1:2 11 6 9 2 2 4 3 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:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;
        mso-fareast-language:EN-AU;}
span.m6862043662272355760apple-converted-space
        {mso-style-name:m_6862043662272355760apple-converted-space;}
span.EmailStyle21
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.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-AU" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">Steven & Mike,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">Much appreciated.  I will give this a try.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">Andrew<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span lang="EN-US">From:</span></b><span lang="EN-US"> FreeSWITCH-users <freeswitch-users-bounces@lists.freeswitch.org>
<b>On Behalf Of </b>Steven Ayre<br>
<b>Sent:</b> Saturday, 13 October 2018 11:50 PM<br>
<b>To:</b> FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org><br>
<b>Subject:</b> Re: [Freeswitch-users] Re- DTMF 2833 issue<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">Try something like this:<o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<pre><span style="color:black">  <extension name="inband-dtmf" continue="true"><o:p></o:p></span></pre>
<pre><span style="color:black">    <condition field="${switch_r_sdp}" expression="a=rtpmap:\d+<o:p></o:p></span></pre>
<pre><span style="color:black">telephone-event\/\d+"><o:p></o:p></span></pre>
<pre><span style="color:black">      <action application="start_dtmf"/><o:p></o:p></span></pre>
<pre><span style="color:black">    </condition><o:p></o:p></span></pre>
<pre><span style="color:black">  </extension><o:p></o:p></span></pre>
<pre><span style="color:black"><o:p> </o:p></span></pre>
</div>
<div>
<p class="MsoNormal">I think the wiki used to have an example, but I don't see it on confluence.<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal">On Sat, 13 Oct 2018 at 00:15, Michael Jerris <<a href="mailto:mike@jerris.com">mike@jerris.com</a>> wrote:<o:p></o:p></p>
</div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm">
<div>
<p class="MsoNormal">There are vars with the full SDP, you can do a regex condition.  Check the info app to see all the vars you have at your disposal.  There may be a var for the te as well to show the pt.<o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Mike<o:p></o:p></p>
<div>
<p class="MsoNormal"><br>
<br>
<o:p></o:p></p>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<p class="MsoNormal">On Oct 10, 2018, at 6:53 PM, Andrew Keil <<a href="mailto:andrew.keil@visytel.com" target="_blank">andrew.keil@visytel.com</a>> wrote:<o:p></o:p></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<div>
<p class="MsoNormal">To FreeSWITCH Users,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">I have just noticed when making calls internationally to the UK from Australia that the following SDP sometimes happens when the call lands on FreeSWITCH:<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">d5f14e47-2156-4236-be16-4eef1b7e9d3d 2018-10-04 06:59:28.819816 [DEBUG] sofia.c:7301 Remote SDP:<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">d5f14e47-2156-4236-be16-4eef1b7e9d3d v=0<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">d5f14e47-2156-4236-be16-4eef1b7e9d3d o=sbc-uk-mr-dh05a 451499 139728 IN IP4 XXX.XXX.XXX.XXX<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">d5f14e47-2156-4236-be16-4eef1b7e9d3d s=sip call<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">d5f14e47-2156-4236-be16-4eef1b7e9d3d c=IN IP4 XXX.XXX.XXX.XXX<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">d5f14e47-2156-4236-be16-4eef1b7e9d3d t=0 0<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">d5f14e47-2156-4236-be16-4eef1b7e9d3d m=audio 62754 RTP/AVP 8<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">d5f14e47-2156-4236-be16-4eef1b7e9d3d a=rtpmap:8 PCMA/8000<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">d5f14e47-2156-4236-be16-4eef1b7e9d3d a=ptime:20<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">This then creates the following message around call answer:<span class="m6862043662272355760apple-converted-space"> </span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">d5f14e47-2156-4236-be16-4eef1b7e9d3d 2018-10-04 06:59:28.839799 [DEBUG] switch_core_media.c:5766<span class="m6862043662272355760apple-converted-space"> </span><b>No 2833 in SDP. Liberal DTMF mode adding 101 as telephone-event.</b><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">From this point on DTMF is NOT detected by the FreeSWITCH IVR service.  I assume I would then need to use mod_dptools: start_dtmf to detect the DTMF tones within the channel.  Which I am yet to test.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">However my main question is whether there is a channel variable that would enable me to check whether 2833 support is not inside the SDP?<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Regards,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Andrew Keil<span class="m6862043662272355760apple-converted-space"> </span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
</div>
</div>
</blockquote>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
<p class="MsoNormal">_________________________________________________________________________<br>
Professional FreeSWITCH Services<br>
<a href="mailto:sales@freeswitch.com" target="_blank">sales@freeswitch.com</a><br>
<a href="https://freeswitch.com" target="_blank">https://freeswitch.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="https://freeswitch.com/oss" target="_blank">https://freeswitch.com/oss</a><br>
<a href="https://freeswitch.org/confluence" target="_blank">https://freeswitch.org/confluence</a><br>
<a href="https://cluecon.com" target="_blank">https://cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="https://freeswitch.com" target="_blank">https://freeswitch.com</a><o:p></o:p></p>
</blockquote>
</div>
</div>
</body>
</html>