<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Hi All,<br><br>Is there a way to detect the dtmf mode on a leg of a call?<br><br>At the moment we have a carrier who sometimes sends inband and sometimes sends 2833, sometimes proposes 2833 but only sends inband, etc...<br><br>I've set dtmf-type on the profile in use with this carrier as none so whenever we send 183 or 200 freeswitch doesn't have any telephone-event in the SDP and the carrier sends inband. Its the only way I could guarantee consistent DTMF mode with this carrier.<br><br>I have most cases worked out but I have an edge case where a customer is using a REALLY old PBX and needs inband and not 2833<br><br>When we send a call to this customer we offer 2833 in the proposal and the PBX sends back that it doesn't want any DTMF signalling which is correct.<br><br>Unfortunately because I'm calling spandsp_start_dtmf even though there is no proposal from PBX freeswitch sends DTMF from carrier INBAND but also generates SIP info messages. This gives the dreaded double digit issue.<br><br>If I comment spandsp_start_dtmf everything works great but I need spandsp_start_dtmf .<br><br>Is there someway to detect that the dtmf-type is none on a channel and in that case don't call spandsp_start_dtmf or detect 2833 and do call it?<br><br>I've been looking for variables I could check but can't find one..<br><br>I could drop these messages on our proxy but would prefer if there was a more elegant solution.<br><br>Many Thanks for any assistance.<br><br>Regards<br>Brian<br><br>                                               </div></body>
</html>