Page 1 of 1

How do I create a short code?

Posted: Sat Sep 28, 2013 10:35 am
by g3sna

I want to create a macro driven short code to get me into command mode on one of my nodes from another node on the server. I believe that I do this with a suitable entry in rpt.conf but I have not been able to work out how to to it.
I have included an entry macro=macro in the node info for the node receiving DTMF from my HT and made an entry of 51=macro,1 in the function stanza with another entry in the macro stanza of 1=*4xxxxxx where xxxxxxx is the other node.

I can manually send the DTMF string of *4xxxxxx from the HT and the other node will switch into command mode. I want to be able to just send DTMF *51 and have the same thing happen.

What am I doing that is wrong?

Thanks es 73 de Stuart G3SNA
(ACID disty)

Re: How do I create a short code?

Posted: Mon Nov 11, 2013 8:45 pm
by kb3ors
I Stuart,

Your close.

default is 5 for macro's, however can be assigned to any number you wish.

In the [functions] stanza add


leave the ,1 off

If its not created, create your macro stanza in the rpt.conf file
below is an example of a macro stanza


10 = *4xxxxx*32135*32140# ; remotes to xxxxx connects to 2135 and 2140 and closes remote command.
11 = *4xxxxx*12135*12140# ; remotes to xxxxx disconnects from 2135 and 2140 and closes remote command.
12 = *4xxxxx*49# ; remotes to xxxxx disables echolink.

etc clear to 99

move to cli

asterisk -vvvr

enter rpt reload. This will reload the rpt confurations.

To run the macro key up and enter the desired macro you wish to run.

ex: *510 would run macro 10.