Custom Dialplan For Gate Opener

As a note, ou812’s point regarding [from-internal] works as well:

exten => *81,1,System(/var/lib/asterisk/
exten => *81,n,Answer
exten => *81,n,Playtones(!425/350,!300/200,!550/300)
exten => *81,n,Wait(1)
exten => *81,n,Hangup

This has the advantage of not needing any Misc Application or Custom Destination setup like in my config. In my setup the extension number is configured in Misc Application and is echoed in Feature Codes. I guess this has the advantage of greater documentation for the future. There’s a comment section where I can note where I put the script. But it it certainly more opaque to setup than the [from-internal] version that just works.

1 Like