>>> Gosub(check-number-forwarding,Dial(SIP/718xxxxxxxxxxpstn-5665,20,U(atb-sub))
>>> Is ARG1 = atb-sub ?
No.
My complete line
exten => _45XX,1,Set(_ARG1=${EXTEN}
same => n,Gosub(check-number-forwarding,s,1(${ARG1}))
So, if someone were to dial a 4 digit number starting with 45 (i.e. 4522), it
would jump to the sub-routine called check-number-forwarding and supply the
variable of 4522 to that sub-routine.
It could have been just as easily written as
same => n,Gosub(check-number-forwarding,s,1(4522))
Your sub-routine will need to pass what dialing options you are wanting to use.
A good source of information
https://wiki.asterisk.org/wiki/display/AST/Gosub
Doug
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
Check out the new Asterisk community forum at: https://community.asterisk.org/
New to Asterisk? Start here:
https://wiki.asterisk.org/wiki/display/AST/Getting+Started
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users