I am struggling with new version and have been reading the manual but have many questions. 1 question is why macros are not working. I have placed some macros in rpt.conf under functions macros but am getting macro not found. here is where I placed.
after saving and restarting asterisk, I only get macro not found. Is this not where they go? I also tried saving as 510 512 and so on but still says macro not found. If anyone could send a copy of rpt.conf with working macros it would be very helpful.
;;;;; Macro Commands ;;;;;
5 = macro
10=*329106# ; KC9WKE HUB 29106
11=*327915# ; KC9WKE TRANSMITTER YNG 27915
12=*354196# ; KC9WKE CLOUD 54196 ANALOG REFLECTOR
13=*343189# ; KC9MTF TRANSMITTER SWANSEA 144.910 (el KC9MTF-L)
14=*328785# ; KC9WKE TEST/SPARE 28785
Here’s a page that has some information on ASL macros : Macro_use_and_format
With your configuration changes, you were adding your macro definitions to the [functions] stanza and not the [macro] stanza.
A nice improvement would be to organize the cfgs in a way that brought related things together more. Confusing to have functions then way down macro etc. Not intuitive.
Thank you found the stanza. Yet to try because having other issues.
maybe having an editable file in the asl-menu would be nice
Go to 6 Expert Configuration Menu for a list of editiable file.
Thank you there’s not a editable choice for macros that I can see. you have to go into edit rpt.conf and find the macro stanza (i was using the first area I saw to place them in) that was incorrect as i was directed to go further down the list to find the macro stanza. they all work now. I thought maybe a way to have an edit macros as a choice directly. My error as I was placing in function under macro where it defines the 5 as starting dtmf. My bad
I too can’t get a simple macro to run from my radio.I have tried *1, *2, *51, *52.
This is the log (rpt below):
[2024-10-20 10:16:34.049] DTMF[3155376]: channel.c:4008 __ast_read: DTMF begin ‘’ received on SimpleUSB/62499
[2024-10-20 10:16:34.049] DTMF[3155376]: channel.c:4019 __ast_read: DTMF begin passthrough '’ on SimpleUSB/62499
[2024-10-20 10:16:34.327] DTMF[3155376]: channel.c:3894 __ast_read: DTMF end ‘’ received on SimpleUSB/62499, duration 278 ms
[2024-10-20 10:16:34.327] DTMF[3155376]: channel.c:3945 __ast_read: DTMF end accepted with begin '’ on SimpleUSB/62499
[2024-10-20 10:16:34.327] DTMF[3155376]: channel.c:3983 __ast_read: DTMF end passthrough ‘’ on SimpleUSB/62499
– Event on node 62499 doing rpt command cop,62,GPIO4:0 for condition c|f|RPT_RXKEYED
– <DAHDI/pseudo-1263017595> Playing ‘/usr/local/bin/SkywarnPlus/SOUNDS/TONES/ct1.ulaw’ (language ‘en’)
– Hungup ‘DAHDI/pseudo-1263017595’
– Event on node 62499 doing rpt command cop,62,GPIO4:1 for condition c|t|RPT_RXKEYED
[2024-10-20 10:16:49.090] DTMF[3155376]: channel.c:4008 __ast_read: DTMF begin '’ received on SimpleUSB/62499
[2024-10-20 10:16:49.090] DTMF[3155376]: channel.c:4019 __ast_read: DTMF begin passthrough ‘’ on SimpleUSB/62499
[2024-10-20 10:16:49.432] DTMF[3155376]: channel.c:3894 __ast_read: DTMF end '’ received on SimpleUSB/62499, duration 342 ms
[2024-10-20 10:16:49.432] DTMF[3155376]: channel.c:3945 __ast_read: DTMF end accepted with begin ‘’ on SimpleUSB/62499
[2024-10-20 10:16:49.432] DTMF[3155376]: channel.c:3983 __ast_read: DTMF end passthrough '’ on SimpleUSB/62499
– Event on node 62499 doing rpt command cop,62,GPIO4:0 for condition c|f|RPT_RXKEYED
– <DAHDI/pseudo-410611283> Playing ‘/usr/local/bin/SkywarnPlus/SOUNDS/TONES/ct1.ulaw’ (language ‘en’)
– Hungup ‘DAHDI/pseudo-410611283’
In rpt.conf (only what I believe is pertinent based on your link):
[nodes]
...
[nodes-main](!)
...
[62499](node-main)
macro=macro62499
functions = functions
[macro62499]
1 = *81*80# ; play time, morse call
2 = *81 *80#
[functions]
5 = macro
70 = ilink,5 ; System status
99 = cop,6 ; PTT (phone mode only)
69 = ilink,13
80 = cmd,asterisk -rx “rpt cmd xxxxxx status 1 xxx”
81 = cmd,asterisk -rx “rpt cmd xxxxxx status 12 xxx”
There are no other 80xxx function items, there are 81x, 83x enabled.
Any ideas?
Thanks
Exactly what command are you issuing via dtmf ?
I would also note that I don’t think the old built in command for time is present.
But I too am having uses with user commands.
Try making macro 1 a connection.
1 = *3xxxx#
and test again
Since there are 3 digits starting with a 81,
Nothing other than your time command will run when you try to run a 3 digit starting with 81
So, I tested your entries.
Here is what worked for me.
819 = cmd,asterisk -rx "rpt cmd 48234 status 12 48234"
[macro]
;;;;; Macro commands ;;;;;
1=*819# ; Play Time
Funny the built-in is not working
712 = status,12 ; Give Time of Day (local only)
Perhaps comment it out and just below it put your command in
;712 = status,12 ; Give Time of Day (local only)
712 = cmd,asterisk -rx “rpt cmd 48234 status 12 48234”