Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] Force Inband DTMF Reception (SOLVED)


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
adrian.worutowicz at e...
Guest





PostPosted: Thu Dec 03, 2020 7:02 am    Post subject: [Freeswitch-users] Force Inband DTMF Reception (SOLVED) Reply with quote

Just for the records :

In order to receive DTMS in-band for incoming calls, FS must not send in SDP :

a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16

This is achieved by :

In vars.xml :
<X-PRE-PROCESS cmd="set" data="rtp_liberal_dtmf=false"/>

In sip_profiles\internal.xml and/or external.xml (Settings):

Add line :
<param name="dtmf-type" value="none"/>

Remove line (if exists) :
<param name="rfc2833-pt" value="101"/>

Big thanks to @seven1240 !


De : FreeSWITCH-users <freeswitch-users-bounces@lists.freeswitch.org> De la part de Piotr Gregor
Envoyé : lundi 30 novembre 2020 16:58
À : FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org>
Objet : Re: [Freeswitch-users] Force Inband DTMF Reception


Cześć Adrian,


Tak, to ma sens. Spróbuj może ustawić flagę dtmf_type=none



<action application="set" data="dtmf_type=none"/>



To powinno sprawić, że w SDP ANSWER nie będzie a=rtpmap:101 telephone-event/8000, tylko nie jestem pewien czy detekcja in-band DTMF będzie włączona.



pozdrawiam,

Piotr





On Mon, 30 Nov 2020 at 15:34, Adrian Worutowicz <adrian.worutowicz@esifrance.net (adrian.worutowicz@esifrance.net)> wrote:
Quote:

Witaj Piotrze,

Co za niespodzianka! 😊

Otóż faktycznie INVITE zawiera:
v=0
o=BroadWorks 210259115 1 IN IP4 xxx.xxx.xxx.xxx
s=-
c=IN IP4 xxx.xxx.xxx.xxx
t=0 0
m=audio 62810 RTP/AVP 8 18 101
a=fmtp:18 annexb=no
a=rtpmap:18 G729/8000
a=rtpmap:101 telephone-event/8000
a=ptime:20


Zaś SIP/2.0 200 OK zawiera:
v=0
o=FreeSWITCH 1606729402 1606729403 IN IP4 xxx.xxx.xxx.xxx
s=FreeSWITCH
c=IN IP4 xxx.xxx.xxx.xxx
t=0 0
m=audio 20616 RTP/AVP 8 101
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20

Gateway to ORANGE, także mam tu niewielkie pole manewru.
Powiedzieli mi jednak, że jeśli usunę a=rtpmap:101 telephone-event/8000, to będzie inband – co jest możliwe, bo w tym połączeniu proponują kodek G729 a ja im na to PCMA no i transmisja jest w PCMA (G711A).

Także pozostaje pytanie, jak usunąć tę linię z sekcji SDP wysyłanej przez FS w 200 OK.

Serdecznie pozdrawiam,
Adrian.



De : FreeSWITCH-users <freeswitch-users-bounces@lists.freeswitch.org (freeswitch-users-bounces@lists.freeswitch.org)> De la part de Piotr Gregor
Envoyé : lundi 30 novembre 2020 11:58
À : FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org (freeswitch-users@lists.freeswitch.org)>
Objet : Re: [Freeswitch-users] Force Inband DTMF Reception


Cześć Adrian,


Tryb w którym FS będzie używał DTMF zależy od trybu który jest oferowany w SDP INVITE.

Zazwyczaj klient jest konfigurowalny, np. w Bria: Preferences -> Calls -> DTMF: Send in-band.

Tak więc upewnij się, że to nie klient żąda RFC 2833.



pozdrawiam serdecznie,

Piotr

[img]https://drive.google.com/a/dataandsignal.com/uc?id=1lUdzdLjEycxXcGhDz-bKqDX8-AIlZuCq&export=download[/img]



Piotr Gregor

Software Engineer



M: (+44) 07483 866 525 L: (+44) 01256 597 470 www: dataandsignal.com




















On Thu, Nov 26, 2020 at 6:03 PM Adrian Worutowicz <adrian.worutowicz@esifrance.net (adrian.worutowicz@esifrance.net)> wrote:
Quote:

I tried in the SIP profile: <param name="dtmf-type" value="none"/>

And in dialplan default.xml / <extension name I put <action application="set" data="dtmf_type=none"/>
and also I tried <action application="bridge" data="{dtmf_type=none} …

None of those worked.



De : FreeSWITCH-users <freeswitch-users-bounces@lists.freeswitch.org (freeswitch-users-bounces@lists.freeswitch.org)> De la part de Dragos Oancea
Envoyé : jeudi 26 novembre 2020 18:10
À : FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org (freeswitch-users@lists.freeswitch.org)>
Objet : Re: [Freeswitch-users] Force Inband DTMF Reception


How about if you set channel variable "dtmf_type" to value "none" ?


On Thu, Nov 26, 2020 at 5:59 PM Adrian Worutowicz <adrian.worutowicz@esifrance.net (adrian.worutowicz@esifrance.net)> wrote:
Quote:

Hello,

For incoming calls, I want to receive DTMF inband.

FS receives INVITE and at certain stage sends 200 OK with a SDP section, which always contains :

a=rtpmap:101 telephone-event/8000 (what means ‘DTMF in RTP metadata’). Indeed the DTMFs come via RTP.

I tried various FS configuration options to remove that line, without success.

How to do it? How to tell a gateway to send DTMFs inband ?

In advance thank you very, very much,
Adrian.






_________________________________________________________________________

The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
Build your next product on our scalable cloud platform.

Join our online community to chat in real time https://signalwire.community

Professional FreeSWITCH Services
sales@freeswitch.com (sales@freeswitch.com)
https://freeswitch.com

Official FreeSWITCH Sites
https://freeswitch.com/oss
https://freeswitch.org/confluence
https://cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
https://freeswitch.com




_________________________________________________________________________

The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
Build your next product on our scalable cloud platform.

Join our online community to chat in real time https://signalwire.community

Professional FreeSWITCH Services
sales@freeswitch.com (sales@freeswitch.com)
https://freeswitch.com

Official FreeSWITCH Sites
https://freeswitch.com/oss
https://freeswitch.org/confluence
https://cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
https://freeswitch.com




_________________________________________________________________________

The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
Build your next product on our scalable cloud platform.

Join our online community to chat in real time https://signalwire.community

Professional FreeSWITCH Services
sales@freeswitch.com (sales@freeswitch.com)
https://freeswitch.com

Official FreeSWITCH Sites
https://freeswitch.com/oss
https://freeswitch.org/confluence
https://cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
https://freeswitch.com
Back to top
mike at freeswitch.org
Guest





PostPosted: Thu Dec 03, 2020 6:48 pm    Post subject: [Freeswitch-users] Force Inband DTMF Reception (SOLVED) Reply with quote

If a device is capable of doing rfc2833 dtmf. You should never want to fall back to inland, it WILL be less reliable
Quote:
On Dec 3, 2020, at 4:32 AM, Adrian Worutowicz <adrian.worutowicz@esifrance.net (adrian.worutowicz@esifrance.net)> wrote:
Just for the records :

In order to receive DTMS in-band for incoming calls, FS must not send in SDP :

a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16

This is achieved by :

In vars.xml :
<X-PRE-PROCESS cmd="set" data="rtp_liberal_dtmf=false"/>

In sip_profiles\internal.xml and/or external.xml (Settings):

Add line :
<param name="dtmf-type" value="none"/>

Remove line (if exists) :
<param name="rfc2833-pt" value="101"/>

Big thanks to @seven1240 !


De : FreeSWITCH-users <freeswitch-users-bounces@lists.freeswitch.org (freeswitch-users-bounces@lists.freeswitch.org)> De la part de Piotr GregorEnvoyé : lundi 30 novembre 2020 16:58À : FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org (freeswitch-users@lists.freeswitch.org)>Objet : Re: [Freeswitch-users] Force Inband DTMF Reception


Cześć Adrian,


Tak, to ma sens. Spróbuj może ustawić flagę dtmf_type=none



<action application="set" data="dtmf_type=none"/>



To powinno sprawić, że w SDP ANSWER nie będzie a=rtpmap:101 telephone-event/8000, tylko nie jestem pewien czy detekcja in-band DTMF będzie włączona.



pozdrawiam,

Piotr





On Mon, 30 Nov 2020 at 15:34, Adrian Worutowicz <adrian.worutowicz@esifrance.net (adrian.worutowicz@esifrance.net)> wrote:

Quote:
Witaj Piotrze,

Co za niespodzianka! 😊

Otóż faktycznie INVITE zawiera:
v=0
o=BroadWorks 210259115 1 IN IP4 xxx.xxx.xxx.xxx
s=-
c=IN IP4 xxx.xxx.xxx.xxx
t=0 0
m=audio 62810 RTP/AVP 8 18 101
a=fmtp:18 annexb=no
a=rtpmap:18 G729/8000
a=rtpmap:101 telephone-event/8000
a=ptime:20


Zaś SIP/2.0 200 OK zawiera:
v=0
o=FreeSWITCH 1606729402 1606729403 IN IP4 xxx.xxx.xxx.xxx
s=FreeSWITCH
c=IN IP4 xxx.xxx.xxx.xxx
t=0 0
m=audio 20616 RTP/AVP 8 101
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20

Gateway to ORANGE, także mam tu niewielkie pole manewru.
Powiedzieli mi jednak, że jeśli usunę a=rtpmap:101 telephone-event/8000, to będzie inband – co jest możliwe, bo w tym połączeniu proponują kodek G729 a ja im na to PCMA no i transmisja jest w PCMA (G711A).

Także pozostaje pytanie, jak usunąć tę linię z sekcji SDP wysyłanej przez FS w 200 OK.

Serdecznie pozdrawiam,
Adrian.



De : FreeSWITCH-users <freeswitch-users-bounces@lists.freeswitch.org (freeswitch-users-bounces@lists.freeswitch.org)> De la part de Piotr GregorEnvoyé : lundi 30 novembre 2020 11:58À : FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org (freeswitch-users@lists.freeswitch.org)>Objet : Re: [Freeswitch-users] Force Inband DTMF Reception


Cześć Adrian,


Tryb w którym FS będzie używał DTMF zależy od trybu który jest oferowany w SDP INVITE.

Zazwyczaj klient jest konfigurowalny, np. w Bria: Preferences -> Calls -> DTMF: Send in-band.

Tak więc upewnij się, że to nie klient żąda RFC 2833.



pozdrawiam serdecznie,

Piotr

[img]https://drive.google.com/a/dataandsignal.com/uc?id=1lUdzdLjEycxXcGhDz-bKqDX8-AIlZuCq&export=download[/img]



Piotr Gregor

Software Engineer



M: (+44) 07483 866 525 L: (+44) 01256 597 470 www: dataandsignal.com




















On Thu, Nov 26, 2020 at 6:03 PM Adrian Worutowicz <adrian.worutowicz@esifrance.net (adrian.worutowicz@esifrance.net)> wrote:

Quote:
I tried in the SIP profile: <param name="dtmf-type" value="none"/>

And in dialplan default.xml / <extension name I put <action application="set" data="dtmf_type=none"/>
and also I tried <action application="bridge" data="{dtmf_type=none} …

None of those worked.



De : FreeSWITCH-users <freeswitch-users-bounces@lists.freeswitch.org (freeswitch-users-bounces@lists.freeswitch.org)> De la part de Dragos OanceaEnvoyé : jeudi 26 novembre 2020 18:10À : FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org (freeswitch-users@lists.freeswitch.org)>Objet : Re: [Freeswitch-users] Force Inband DTMF Reception


How about if you set channel variable "dtmf_type" to value "none" ?


On Thu, Nov 26, 2020 at 5:59 PM Adrian Worutowicz <adrian.worutowicz@esifrance.net (adrian.worutowicz@esifrance.net)> wrote:

Quote:
Hello,

For incoming calls, I want to receive DTMF inband.

FS receives INVITE and at certain stage sends 200 OK with a SDP section, which always contains :

a=rtpmap:101 telephone-event/8000 (what means ‘DTMF in RTP metadata’). Indeed the DTMFs come via RTP.

I tried various FS configuration options to remove that line, without success.

How to do it? How to tell a gateway to send DTMFs inband ?

In advance thank you very, very much,
Adrian.






_________________________________________________________________________The FreeSWITCH project is sponsored by SignalWire sales@freeswitch.com (sales@freeswitch.com)FreeSWITCH-users@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)http://lists.freeswitch.org/mailman/listinfo/freeswitch-usersUNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttps://freeswitch.com



_________________________________________________________________________The FreeSWITCH project is sponsored by SignalWire sales@freeswitch.com (sales@freeswitch.com)FreeSWITCH-users@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)http://lists.freeswitch.org/mailman/listinfo/freeswitch-usersUNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttps://freeswitch.com



_________________________________________________________________________The FreeSWITCH project is sponsored by SignalWire sales@freeswitch.com (sales@freeswitch.com)FreeSWITCH-users@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)http://lists.freeswitch.org/mailman/listinfo/freeswitch-usersUNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttps://freeswitch.com


_________________________________________________________________________The FreeSWITCH project is sponsored by SignalWire sales@freeswitch.com (sales@freeswitch.com)FreeSWITCH-users@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)http://lists.freeswitch.org/mailman/listinfo/freeswitch-usersUNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttps://freeswitch.com
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services