[Freeswitch-users] How do you determine if DTMFs received are in-band or out-of-band?

Mark Melling mark.melling at savageminds.com
Fri Jul 7 18:42:44 UTC 2017


Thanks for that, that is useful info.

I posted a separate, but related question that you might have some
suggestions about.

Namely I'm assuming that for RFC-2833 DTMFs Freeswitch is generating a
corresponding tone for the received DTMF (I don't know if this is actually
true or not).  If this is the case whether it is possible to disable this
tone so that basically a user pressing a key (that generates a DTMF)
doesn't hear anything.

Thanks


On Fri, 7 Jul 2017 at 19:22 Guillermo Ruiz Camauer <grcamauer at gmail.com>
wrote:

> RFC-2833 sends the DTMF as a special packet within the RTP stream.
> SIP-INFO sends it in the SIP dialog.
> INBAND DTMF come as a series of packets within the RTP stream that must be
> analyzed to find the frequencies corresponding to the different DTMF.  I
> believe spandsp takes cares of this.
>
> Guillermo
>
> On Fri, Jul 7, 2017 at 1:14 PM, Mark Melling <mark.melling at savageminds.com
> > wrote:
>
>> Thanks Brian.
>>
>>
>> On Fri, 7 Jul 2017 at 16:51 Brian : <brians at iptel.co> wrote:
>>
>>> I believe thats 2833
>>>
>>> From the source:
>>>
>>> switch(dtmf->source) {
>>>
>>>                         case SWITCH_DTMF_INBAND_AUDIO:  /* From audio */
>>>
>>>                                 dtmf_source_str = "INBAND_AUDIO";
>>>
>>>                                 break;
>>>
>>>                         case SWITCH_DTMF_RTP:                   /*
>>> From RTP as a telephone event */
>>>
>>>                                 dtmf_source_str = "RTP";
>>>
>>>                                 break;
>>>
>>>                         case SWITCH_DTMF_ENDPOINT:              /*
>>> From endpoint signaling */
>>>
>>>                                 dtmf_source_str = "ENDPOINT";
>>>
>>>                                 break;
>>>
>>>                         case SWITCH_DTMF_APP:                   /*
>>> Injected by application */
>>>
>>>                                 dtmf_source_str = "APP";
>>>
>>>                                 break;
>>>
>>>                         case SWITCH_DTMF_UNKNOWN:               /*
>>> Unknown source */
>>>
>>>                         default:
>>>
>>>                                 dtmf_source_str = "UNKNOWN";
>>>
>>>                                 break;
>>>
>>> On Fri, Jul 7, 2017 at 4:28 PM, Mark Melling
>>> <mark.melling at savageminds.com> wrote:
>>> > Thanks Brian,
>>> >
>>> > Having done that it says
>>> >
>>> > DTMF-Source: RTP
>>> >
>>> > So I assume that means that the DTMF is in-band, is that right?
>>> >
>>> >
>>> >
>>> > On Fri, 7 Jul 2017 at 16:19 Brian : <brians at iptel.co> wrote:
>>> >>
>>> >> Hi Mark
>>> >>
>>> >> From fs_cli
>>> >>
>>> >> /event plain dtmf
>>> >>
>>> >> This will give you console logging of every DTMF event that FS handles
>>> >> and I'm pretty sure will give you the DTMF source.
>>> >>
>>> >>
>>> >>
>>> >> On Fri, Jul 7, 2017 at 10:44 AM, Mark Melling
>>> >> <mark.melling at savageminds.com> wrote:
>>> >> > Hi,
>>> >> >
>>> >> > How can you determine if Freeswitch is receiving DTMFs in-band or
>>> >> > out-of-band?
>>> >> >
>>> >> > I'm not entirely clear on terminology here, but is out-of-band the
>>> same
>>> >> > as
>>> >> > rfc 2833?
>>> >> >
>>> >> > Thanks
>>> >> >
>>> >> > Mark
>>> >> >
>>> >> >
>>> >> >
>>> >> >
>>> _________________________________________________________________________
>>> >> > Professional FreeSWITCH Consulting Services:
>>> >> > consulting at freeswitch.org
>>> >> > http://www.freeswitchsolutions.com
>>> >> >
>>> >> > Official FreeSWITCH Sites
>>> >> > http://www.freeswitch.org
>>> >> > http://confluence.freeswitch.org
>>> >> > http://www.cluecon.com
>>> >> >
>>> >> > FreeSWITCH-users mailing list
>>> >> > FreeSWITCH-users at lists.freeswitch.org
>>> >> > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>>> >> > UNSUBSCRIBE:
>>> http://lists.freeswitch.org/mailman/options/freeswitch-users
>>> >> > http://www.freeswitch.org
>>> >>
>>> >>
>>> _________________________________________________________________________
>>> >> Professional FreeSWITCH Consulting Services:
>>> >> consulting at freeswitch.org
>>> >> http://www.freeswitchsolutions.com
>>> >>
>>> >> Official FreeSWITCH Sites
>>> >> http://www.freeswitch.org
>>> >> http://confluence.freeswitch.org
>>> >> http://www.cluecon.com
>>> >>
>>> >> FreeSWITCH-users mailing list
>>> >> FreeSWITCH-users at lists.freeswitch.org
>>> >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>>> >> UNSUBSCRIBE:
>>> http://lists.freeswitch.org/mailman/options/freeswitch-users
>>> >> http://www.freeswitch.org
>>> >
>>> >
>>> >
>>> _________________________________________________________________________
>>> > Professional FreeSWITCH Consulting Services:
>>> > consulting at freeswitch.org
>>> > http://www.freeswitchsolutions.com
>>> >
>>> > Official FreeSWITCH Sites
>>> > http://www.freeswitch.org
>>> > http://confluence.freeswitch.org
>>> > http://www.cluecon.com
>>> >
>>> > FreeSWITCH-users mailing list
>>> > FreeSWITCH-users at lists.freeswitch.org
>>> > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>>> > UNSUBSCRIBE:
>>> http://lists.freeswitch.org/mailman/options/freeswitch-users
>>> > http://www.freeswitch.org
>>>
>>> _________________________________________________________________________
>>> Professional FreeSWITCH Consulting Services:
>>> consulting at freeswitch.org
>>> http://www.freeswitchsolutions.com
>>>
>>> Official FreeSWITCH Sites
>>> http://www.freeswitch.org
>>> http://confluence.freeswitch.org
>>> http://www.cluecon.com
>>>
>>> FreeSWITCH-users mailing list
>>> FreeSWITCH-users at lists.freeswitch.org
>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>>> http://www.freeswitch.org
>>
>>
>> _________________________________________________________________________
>> Professional FreeSWITCH Consulting Services:
>> consulting at freeswitch.org
>> http://www.freeswitchsolutions.com
>>
>> Official FreeSWITCH Sites
>> http://www.freeswitch.org
>> http://confluence.freeswitch.org
>> http://www.cluecon.com
>>
>> FreeSWITCH-users mailing list
>> FreeSWITCH-users at lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> http://www.freeswitch.org
>>
>
>
>
> --
> Guillermo Ruiz Camauer
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://confluence.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20170707/fcd4e19e/attachment.html>


More information about the FreeSWITCH-users mailing list