Page 425 - Asterisk™: The Future of Telephony
P. 425
exten => 123,1,Answer()
exten => 123,2,ForkCDR(v)
exten => 123,3,Playback(tt-monkeys)
exten => 123,4,Hangup()
See Also
CDR function, NoCDR(), ResetCDR()
GetCPEID() Gets the CPE ID from an ADSI-capable telephone
GetCPEID()
Obtains the CPE ID and other information and displays it on the Asterisk console. This
information is often needed in order to properly set up zapata.conf for on-hook oper-
ations with ADSI-capable telephones.
Returns -1 on hangup only.
; use this extension to get the necessary information to set up ADSI
; telephones
exten => 123,1,GetCPEID()
See Also
ADSIProg(), adsi.conf, zapata.conf
Gosub() Branches to a new location, saving the return address
Gosub(context,extension,priority)
Gosub(extension,priority)
Gosub(priority)
Branches to the location specified, similar to Goto(), except that Gosub() saves the return
location, to be returned to later by invoking Return().
See Also
GosubIf(), Macro(), Goto(), Return(), StackPop()
GosubIf() Conditionally branches to a new location, saving the return address
GosubIf(condition?labeliftrue:labeliffalse)
Based upon the evaluation of condition, Gosub will branch execution either to label-
iftrue() or labeliffalse. You may return to this same place in the dialplan by later
calling Return.
GetCPEID() | 397