diff --git a/apps/app_dial.c b/apps/app_dial.c
index 6c6547d180..e4689e1108 100644
--- a/apps/app_dial.c
+++ b/apps/app_dial.c
@@ -142,11 +142,9 @@
a call to be answered. Exit to that extension if it exists in the
current context, or the context defined in the EXITCONTEXT variable,
if it exists.
-
- Many SIP and ISDN phones cannot send DTMF digits until the call is
- connected. If you wish to use this option with these phones, you
- can use the Answer application before dialing.
-
+ NOTE: Many SIP and ISDN phones cannot send DTMF digits until the call is
+ connected. If you wish to use this option with these phones, you
+ can use the Answer application before dialing.
@@ -392,10 +376,8 @@
to send no cause. See the causes.h file for the
full list of valid causes and names.
-
- chan_sip does not support setting the cause on a CANCEL to anything
- other than ANSWERED_ELSEWHERE.
-
+ NOTE: chan_sip does not support setting the cause on a CANCEL to anything
+ other than ANSWERED_ELSEWHERE.
Default: Indicate ringing to the calling party, even if the called party isn't actually ringing. Pass no audio to the calling
@@ -430,7 +412,8 @@
- Name of the subroutine to execute via Gosub
+ Name of the subroutine context to execute via Gosub.
+ The subroutine execution starts in the named context at the s exten and priority 1.Arguments for the Gosub routine
@@ -459,11 +442,9 @@
-
- You cannot use any additional action post answer options in conjunction
- with this option. Also, pbx services are run on the peer (called) channel,
- so you will not be able to set timeouts via the TIMEOUT() function in this routine.
-
+ NOTE: You cannot use any additional action post answer options in conjunction
+ with this option. Also, pbx services are run on the called channel,
+ so you will not be able to set timeouts via the TIMEOUT() function in this routine.
@@ -548,27 +529,29 @@
[default]
- exten => callee_channel,1,NoOp()
+ 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()
+ 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)B(default^callee_channel^1))
+ 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()
- [default]
+ [my_gosub_routine]
- exten => called_channel,1,NoOp()
+ 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(default^called_channel^1))
+ same => n,Dial(PJSIP/alice,,U(my_gosub_routine^my_gosub_arg1^my_gosub_arg2))
same => n,Hangup()
diff --git a/apps/app_queue.c b/apps/app_queue.c
index 3dc735a5d5..1ddf79f707 100644
--- a/apps/app_queue.c
+++ b/apps/app_queue.c
@@ -169,21 +169,15 @@
When the caller hangs up, transfer the called member
to the specified destination and start execution at that location.
-
- Any channel variables you want the called channel to inherit from the caller channel must be
- prefixed with one or two underbars ('_').
-
+ NOTE: Any channel variables you want the called channel to inherit from the caller channel must be
+ prefixed with one or two underbars ('_').
When the caller hangs up, transfer the called member to the next priority of
the current extension and start execution at that location.
-
- Any channel variables you want the called channel to inherit from the caller channel must be
- prefixed with one or two underbars ('_').
-
-
- Using this option from a Macro() or GoSub() might not make sense as there would be no return points.
-
+ NOTE: Any channel variables you want the called channel to inherit from the caller channel must be
+ prefixed with one or two underbars ('_').
+ NOTE: Using this option from a Macro() or GoSub() might not make sense as there would be no return points.
Allow callee to hang up by pressing *.
@@ -256,12 +250,12 @@
Will run a macro on the called party's channel (the queue member) once the parties are connected.
-
- Macros are deprecated, GoSub should be used instead.
-
+ NOTE: Macros are deprecated, GoSub should be used instead.
- Will run a gosub on the called party's channel (the queue member) once the parties are connected.
+ Will run a gosub on the called party's channel (the queue member)
+ once the parties are connected. The subroutine execution starts in the
+ named context at the s exten and priority 1.Will cause the queue's defaultrule to be overridden by the rule specified.