Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Updated to GIT-13-13.15.0-rc1-2556-gfa700ac

...

Code Block
titleExample: Dial with 30 second timeout
linenumberstrue
			 same => n,Dial(PJSIP/alice,30)
			
Code Block
titleExample: Parallel dial with 45 second timeout
linenumberstrue
			 same => n,Dial(PJSIP/alice&PJIP/bob,45)
			
Code Block
titleExample: Dial with 'g' continuation option
linenumberstrue
			 same => n,Dial(PJSIP/alice,,g)
			 same => n,Log(NOTICE, Alice call result: ${DIALSTATUS})
			
Code Block
titleExample: Dial with transfer/recording features for calling party
linenumberstrue
			 same => n,Dial(PJSIP/alice,,TX)
			
Code Block
titleExample: Dial with call length limit
linenumberstrue
			 same => n,Dial(PJSIP/alice,,L(60000:30000:10000))
			
Code Block
titleExample: Dial alice and bob and send NO_ANSWER to bob instead of ANSWERED_ELSEWHERE when alice answers
linenumberstrue
			 same => n,Dial(PJSIP/alice&PJSIP/bob,,Q(NO_ANSWER))
			
Code Block
titleExample: Dial with pre-dial subroutines
linenumberstrue
			[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
titleExample: Dial with post-answer subroutine executed on outbound channel
linenumberstrue
			[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
titleExample: Dial into ConfBridge using 'G' option
linenumberstrue
			 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