[arm-allstar] scripting - last dtmf digit received in client display

Doug Crompton doug at crompton.com
Tue Dec 8 13:46:44 EST 2015


Neil,

 OK here is a way to do this at least here are the clues to do it. I have not done it completely for you but what I show here does work.

First in rpt.conf find the phone patch function - 61

change the context=  to context=command_radio

then in extensions.conf add the following context at the end -

[command_radio]
exten => _1xxxxx,1,Playback(please-enter-the)
exten => _1xxxxx,n,Playback(frequency)
exten => _1xxxxx,n,SayDigits(${EXTEN})
exten => _1xxxxx,n,Wait(2)
exten => _1xxxxx,n,Hangup()

You need to understand asterisk dial plans in order to understand this but basically the way this is setup if you enter at the radio  *611xxxxx  the last 5 digits will be passed as the EXTEN variable in Asterisk. At that point you could do whatever you wanted with it - like pass to a script that sent it to hamlib for execution. Of course the number of digits could be changed and other functions could be added.

When changing either file you need to either reload then in the client or restart Allstar.

The Asterisk diaplan is very powerful but you need to hone up on the commands and syntax!!!

This is the (more) right way to do this rather than adding stuff to Allstar.

73 Doug
WA3DSP
http://www.crompton.com/hamradio


 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.hamvoip.org/pipermail/arm-allstar/attachments/20151208/a3c9059c/attachment.html>


More information about the arm-allstar mailing list