[arm-allstar] Reverse Autopatch

David McAnally david.mcanally at gmail.com
Sat Jun 27 00:31:43 EDT 2020


This might help.  It's kind of what I use for an incoming IAX2 voip
connection. The voip details are in iax.conf. As noted below, the context
in the iax.conf stanza points to this entry in extensions.conf. I used VOX
for a while, but have gone back to PTT via DTMF (*99=PTT and #=unkey).  For
VOX, change "|P|" to "|Pv|" in the rpt function.

; custom/extensions.conf
> [12345]  ; change 12345 to match context= value in your custom/iax.conf
> voip stanza
> exten => _s!,1,Ringing
> exten => _s!,n,Wait(3)
> exten => _s!,n,NoOp(${CALLERID(number)})
> exten => _s!,n,Set(CALLSIGN=${CALLERID(number)}) ; use to identify
> connection below
> exten => _s!,n,GotoIf($[${ISNULL(${CALLSIGN})} = 1]?hangit)
> exten => _s!,n,Answer()
> exten => _s!,n,Wait(2)
> exten => _s!,n,Playback(connecting)
> exten => _s!,n,rpt(12345|P|${CALLSIGN}-P)  ; change 12345 to your node
> number
> ; exten => _s!,n,rpt(12345|P|GUEST-P}) ; static GUEST-P identifer instead
> of number
> exten => _s!,n(hangit),Answer
> exten => _s!,n,Playback(connection-failed)
> exten => _s!,n,Wait(1)
> exten => _s!,n,Hangup
> ; I guess you can append your outbound exten statements here.
>
David M.
WD5M


More information about the ARM-allstar mailing list