Add a "pinless dialing" toggle to extensions, so that pinset protected routes may be dialed directly.
This can be used for vips or operators who shouldn't need to use pins
The macro pinsets can be changed this way:
[macro-pinsets]
exten => s,1,AGI(pinless.agi)
exten => s,n,GotoIf(${PINLESS} = 1?100) ; Should change this with a better way out of the macro
exten => s,n,GotoIf(${ARG2} = 1?cdr,1)
exten => s,n,Authenticate(/etc/asterisk/pinset_${ARG1},)
exten => cdr,1,Authenticate(/etc/asterisk/pinset_${ARG1},a)
The only purpose of pinless.agi is to set variable PINLESS to 1 if there's a database family DEVICE and key ${CIDNUM}/pinless with value 1. Otherwise, it sets variable PINLESS to 0
I have pinless.agi already. It is very simple, and perhaps everything can be done with the dial plan only. I haven't tackled the freepbx side. Should be easy to do, I think