How do I create a short code?

Discussion on the ACID distribution package
Posts: 1
Joined: Sat Sep 28, 2013 3:32 am

How do I create a short code?

Postby g3sna » Sat Sep 28, 2013 10:35 am


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)

Posts: 49
Joined: Wed Nov 10, 2010 10:58 pm

Re: How do I create a short code?

Postby kb3ors » Mon Nov 11, 2013 8:45 pm

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.

KB3ORS - Brian

Return to “ACID Distribution”

Who is online

Users browsing this forum: No registered users and 1 guest