DTMF code not working

Setup Information

Use sudo asl-show-version to obtain this information from the console or SSH

Asterisk Version: 22..x.y+asl3-3.n.m
ASL3 Version: 3.x.y

Inquiry

Hi there -

I’m having an issue getting a DTMF combination to change modes in DVSwitch working right.

First - here’s what I have the the RPT.CONF File:

090 = autopatchdn
091 = autopatchup,context = tgtune,dialtime = 15000,farenddisconnect = 1,noct = 1,quiet = 1 ; Group Change
092 = autopatchup,context = ysf,dialtime = 15000,farenddisconnect = 1,noct = 1,quiet = 1 ; YSF Reflector
093 = autopatchup,context = fcs,dialtime = 15000,farenddisconnect = 1,noct = 1,quiet = 1 ; FCS Room
094 = autopatchup,context = dstar,dialtime = 15000,farenddisconnect = 1,noct = 1,quiet = 1 ; DSTAR
098 = autopatchup,context = tgif,dialtime = 15000,farenddisconnect = 1,noct = 1,quiet = 1 ; DMR TGIF Talk Group
099 = autopatchup,context = bm,dialtime = 15000,farenddisconnect = 1,noct = 1,quiet = 1 ; DMR Brandmeister Talk Group

081 = cmd,/opt/MMDVM_Bridge/dvswitch.sh tune disconnect ; disconnect
082 = cmd,/opt/MMDVM_Bridge/dvswitch.sh mode DMR ; change mode to DMR
083 = cmd,/opt/MMDVM_Bridge/dvswitch.sh mode NXDN ; change mode to NXDN
084 = cmd,/opt/MMDVM_Bridge/dvswitch.sh mode P25 ; change mode to P25
085 = cmd,/opt/MMDVM_Bridge/dvswitch.sh mode DSTAR ; change mode to DSTAR

086 = cmd,/opt/MMDVM_Bridge/dvswitch.sh mode YSF ; change mode to YSF

And the following into the EXTENSIONS.CONF file (Only a small sample of a couple of settings)

[fcs]
exten => _X.,1,Wait(1) ; this gives you a chance (1 second) to cancel by hitting the '#' key if incorrect.
exten => _X.,2,SayAlpha(FCS) ; Crude message to user
exten => _X.,3,System(/opt/MMDVM_Bridge/dvswitch.sh mode YSF)
exten => _X.,4,Hangup ; Done, return to normal operation

[dstar]
exten => _X.,1,Wait(1) ; this gives you a chance (1 second) to cancel by hitting the '#' key if incorrect.
exten => _X.,2,SayAlpha(DSTAR) ; Crude message to user
exten => _X.,3,System(/opt/MMDVM_Bridge/dvswitch.sh mode DSTAR)
exten => _X.,4,Hangup ; Done, return to normal operation

If I enter *085 - the DVSwitch changes mode to DSTAR, just like it should

However, if I enter *094, nothing happens.

I see activity on asterisk -rvvv, but nothing else.

Any ideas?

Thanks

You should look through your dialplan for a conflick, likely starting with 09 i your file.

Asterisk executes ‘first match’, so one has to be careful when adding commands that the first digits do not have a shorter equivalent.

But you might watch asterisk in the foreground when you command it to see what it may be doing.