...
Code Block |
---|
title | Example: Dial with 30 second timeout |
---|
linenumbers | true |
---|
|
same => n,Dial(PJSIP/alice,30)
|
Code Block |
---|
title | Example: Parallel dial with 45 second timeout |
---|
linenumbers | true |
---|
|
same => n,Dial(PJSIP/alice&PJIP/bob,45)
|
Code Block |
---|
title | Example: Dial with 'g' continuation option |
---|
linenumbers | true |
---|
|
same => n,Dial(PJSIP/alice,,g)
same => n,Log(NOTICE, Alice call result: ${DIALSTATUS})
|
Code Block |
---|
title | Example: Dial with transfer/recording features for calling party |
---|
linenumbers | true |
---|
|
same => n,Dial(PJSIP/alice,,TX)
|
Code Block |
---|
title | Example: Dial with call length limit |
---|
linenumbers | true |
---|
|
same => n,Dial(PJSIP/alice,,L(60000:30000:10000))
|
Code Block |
---|
title | Example: Dial alice and bob and send NO_ANSWER to bob instead of ANSWERED_ELSEWHERE when alice answers |
---|
linenumbers | true |
---|
|
same => n,Dial(PJSIP/alice&PJSIP/bob,,Q(NO_ANSWER))
|
Code Block |
---|
title | Example: Dial with pre-dial subroutines |
---|
linenumbers | true |
---|
|
[default]
exten => callee_channel,1,NoOp(ARG1=${ARG1} ARG2=${ARG2})
same => n,Log(NOTICE, I'm called on channel ${CHANNEL} prior to it starting the dial attempt)
same => n,Return()
exten => called_channel,1,NoOp(ARG1=${ARG1} ARG2=${ARG2})
same => n,Log(NOTICE, I'm called on outbound channel ${CHANNEL} prior to it being used to dial someone)
same => n,Return()
exten => _X.,1,NoOp()
same => n,Dial(PJSIP/alice,,b(default^called_channel^1(my_gosub_arg1^my_gosub_arg2))B(default^callee_channel^1(my_gosub_arg1^my_gosub_arg2)))
same => n,Hangup()
|
Code Block |
---|
title | Example: Dial with post-answer subroutine executed on outbound channel |
---|
linenumbers | true |
---|
|
[my_gosub_routine]
exten => s,1,NoOp(ARG1=${ARG1} ARG2=${ARG2})
same => n,Playback(hello)
same => n,Return()
[default]
exten => _X.,1,NoOp()
same => n,Dial(PJSIP/alice,,U(my_gosub_routine^my_gosub_arg1^my_gosub_arg2))
same => n,Hangup()
|
Code Block |
---|
title | Example: Dial into ConfBridge using 'G' option |
---|
linenumbers | true |
---|
|
same => n,Dial(PJSIP/alice,,G(jump_to_here))
same => n(jump_to_here),Goto(confbridge)
same => n,Goto(confbridge)
same => n(confbridge),ConfBridge(${EXTEN})
|
This application sets the following channel variables:
...
This documentation was imported from Asterisk Version GIT-13-13.15.0-rc1-25452556-gaa84bc3gfa700ac