In the functions stanza you define the lead in digit. (423 in this case).
In the macro stanza the trailing digits (1 in this case) for each individual macro.
Executing macro 1 would be *4231.
Exccuting macro 2 would be *4232.
Your line :
4231 = macro,2
Should be removed.
If your dial plan allows, I would use a single digit lead in (4). Then three digit trailing digits (i.e. 200-299).
So something like this:
[functions]
; Macro Commands
4 = macro,1 ; Call a macro
[macro]
; connect to NETDA Hub 28741
231 = *328741# ; Connect
232 = *128741# ; Disconnect
Robert A. Poff
Loganville, Pa
Ahh.... ok... that makes sense now, wasn't so obvious to me lol... I'll give it a shot... thanks!
On Tue, Jul 26, 2016 at 4:37 PM, Steve Agee <n5zua@earthlink.net> wrote:
No, it wont, because once it reads 423 it can execute it, and so it does and stops reading in digits. So, it will never reach 4231. What would work is if you changed 423 to 4230 or 4232.
N5ZUA
On 7/26/2016 3:27 PM, Stephen - K1LNX wrote:
Will macros take more than two digits? I am starting to play around with them (and admittedly not a ton of experience), but I can't get the following to work for whatever reason:
[2376]macro = macro
[functions]; Macro Commands423 = macro,14231 = macro,2
[macro]; connect to NETDA Hub 287411 = *328741#2 = *128741#
Does this look right and should it work? I did restart Asterisk/did an rpt reload etc, but no change. If I dial (or send from the CLI) *423, I expect it to connect to my hub nobe, *4231 to disconnect, but it does not work.
73StephenK1LNX
_______________________________________________ App_rpt-users mailing list App_rpt-users@ohnosec.org http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users To unsubscribe from this list please visit http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users and scroll down to the bottom of the page. Enter your email address and press the "Unsubscribe or edit options button" You do not need a password to unsubscribe, you can do it via email confirmation. If you have trouble unsubscribing, please send a message to the list detailing the problem.
_______________________________________________
App_rpt-users mailing list
App_rpt-users@ohnosec.org
http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users
To unsubscribe from this list please visit http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users and scroll down to the bottom of the page. Enter your email address and press the "Unsubscribe or edit options button"
You do not need a password to unsubscribe, you can do it via email confirmation. If you have trouble unsubscribing, please send a message to the list detailing the problem.
App_rpt-users mailing list
App_rpt-users@ohnosec.org
http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users
To unsubscribe from this list please visit http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users and scroll down to the bottom of the page. Enter your email address and press the "Unsubscribe or edit options button"
You do not need a password to unsubscribe, you can do it via email confirmation. If you have trouble unsubscribing, please send a message to the list detailing the problem.