Author Topic: DTMF problem  (Read 252 times)

K.

  • Newbie
  • *
  • Posts: 11
    • View Profile
DTMF problem
« on: August 01, 2017, 07:09:42 AM »
Hello !

I have the problem with the DTMF tone. When I make a call between 2 cell phones, I press the number in one phone, but the other phone cannot hear any dtmf tone at all. But from the log file I have attached here, it seem like the base station can detect the dtmf tone. Any way to fix this problem?

Thank you  :)
Khem

marian

  • Sr. Member
  • ****
  • Posts: 383
    • View Profile
Re: DTMF problem
« Reply #1 on: August 02, 2017, 12:42:22 AM »
DTMF forward to MS is not implemented.

K.

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: DTMF problem
« Reply #2 on: August 02, 2017, 05:41:27 AM »
Hello marian,

Thank you for your answer. I still don't know how to get this work. I have tried to configure the regexroute.conf : .*tonedetect_out=yes, but still cannot get the dtmf work.
Can you guide me a bit?

Regards
Khem

marian

  • Sr. Member
  • ****
  • Posts: 383
    • View Profile
Re: DTMF problem
« Reply #3 on: August 02, 2017, 08:25:26 AM »
You may try to generate inband dtmf:
Catch chan.dtmf message, and attach a tonegen source to indicated peerid.
See:
http://docs.yate.ro/wiki/Chan.masquerade
http://docs.yate.ro/wiki/Tonegen#Override_data_source (override=tone/dtmf/handled_digit_in_chan_dtmf)
http://docs.yate.ro/wiki/Chan.attach

Bottom line
Send a chan.masquerade with message 'chan.attach' to peerid taken from handled chan.dtmf to attach a tone generator for received DTMF.

K.

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: DTMF problem
« Reply #4 on: August 04, 2017, 08:10:25 AM »
Hi marian,

Sorry for my ignorance, but I don't know how to generate the dtmf tone using Tonegen module. From reading the yate documents, do I need to use regex to generate the tone, or I need to do the configuration in tonegen.conf? Can you give me some example? I don't quit understand that.

Khem


marian

  • Sr. Member
  • ****
  • Posts: 383
    • View Profile
Re: DTMF problem
« Reply #5 on: August 04, 2017, 08:27:31 AM »
You may try to following (not tested):

regexroute.conf:

[extra]
chan.dtmf=

[chan.dtmf]
${peerid}^ybts/=enqueue chan.masquerade;id=${peerid};message=chan.attach;override=tone/dtmfstr/${text}

K.

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: DTMF problem
« Reply #6 on: August 07, 2017, 02:37:38 AM »
Hello marian !

Thank you for your responding. Your code is working like magic!! I've been trying so hard to figure this out.
I will keep working on my yatebts. And will get back here soon if I have any question.

Cheers !
Khem