Re: Простой вопрос
насчет того что в доке этого нет ты неправ
вот цитата из этой самой доки, наверное тут эта цитат будет смотреть кривовато из плохого форматирования но думаю ты разюерешься.
The valid flags that may be used with the Dial( ) application are:
d Allows the user to dial a one-digit extension while waiting for a call to be answered.
The call will then exit to that extension (either in the current context, if it exists, or in
the context specified by ${EXITCONTEXT}).
t Permits the called party to transfer a call by pressing the # key. Please note that if this
option is used, reinvites are disabled, as Asterisk needs to monitor the call to detect
when the called party presses the # key.
T Permits the caller to transfer a connected call by pressing the # key. Again, note that if
this option is used, reinvites are disabled, as Asterisk needs to monitor the call to
detect when the caller presses the # key.
w Permits the called user to start and stop recording the call audio to disk by pressing the
automon sequence (as configured in features.conf). If the variable TOUCH_MONITOR is set,
its value will be passed as the arguments to the Monitor( ) application when recording
is started. If it is not set, the default values of WAV||m are passed to Monitor( ).
W Permits the calling user to record the call audio to disk by pressing the automon
sequence (as configured in features.conf).
f Forces the Caller ID to be set as the extension of the line making or redirecting the
outgoing call. This is done because some PSTN providers will not allow the Caller ID
to be set to anything other than that which is assigned to you. For example, if you had a PRI, you would use the f flag to override any Caller ID set locally on a SIP phone.
o Uses the Caller ID received on the inbound leg of the call for the Caller ID on the
outbound leg of the call. This is useful if you are accepting a call and then forwarding
it to another destination, but you wish to pass the Caller ID from the inbound leg of
the call instead of overwriting it with the local Caller ID settings. This is the default
behavior on Asterisk versions prior to 1.2.
r Indicates ringing to the calling party, without passing any audio until the call is
answered. This flag is not normally required to indicate ringing, as Asterisk will signal
ringing if a channel is actually being called.
m[class]
Provides music to the calling party until the call is answered. You may also optionally
indicate the Music on Hold class.
M(x[^arg])
Executes the macro x upon the connection of a call, optionally passing arguments
delimited by ^. The macro can also set the MACRO_RESULT channel variable to one of the
following:
ABORT
Hangs up both legs of the call
CONGESTION
Acts as if the line encountered congestion
BUSY
Acts as if the line was busy (goes to n+101, where n is the current priority)
CONTINUE
Hangs up the called party and continues on in the dialplan
GOTO:<context>^<extension>^<priority>
Transfers the call to the specified destination
h Allows the called user to hang up the channel by pressing *.
H Allows the calling user to hang up the channel by pressing *.
C Resets the Call Detail Record for the call. Since the CDR time is set to when you
Answer( ) the call, you may wish to reset the CDR so the end user is not billed for the
time prior to the Dial( ) application being invoked.
P[(x)]
Sets the privacy mode, optionally specifying x as the family/key value in the local
AstDB. Useful for accepting calls based on a blacklist (explicitly denying calls from
listed numbers) or whitelist (explicitly accepting calls from listed numbers). See also
LookupBlacklist( ).
g Goes on in the context if the destination channel hangs up.
G(context^extension^priority)
Transfers both parties to the specified destination, if the call is answered.
A(x)
Plays an announcement to the called party; x is the filename of the sound file to play as
the announcement.
D([called][:calling])
Sends DTMF digits after the call has been answered, but before the call is bridged. The
called parameter is passed to the called party, and the calling parameter is passed to
the calling party. Either parameter may be used individually.
L(x[:y][:z])
Limits the call to x milliseconds, warning when y milliseconds are left and repeating
every z milliseconds until the limit is reached. The x parameter is required; the y and z
parameters are optional. The following special variables may also be set to provide
additional control:
LIMIT_PLAYAUDIO_CALLER=yes|no
Specifies whether to play sounds to the caller
LIMIT_PLAYAUDIO_CALLEE=yes|no
Specifies whether to play sounds to the callee
LIMIT_TIMEOUT_FILE=filename
Specifies which file to play when time is up
LIMIT_CONNECT_FILE=filename
Specifies which file to play when call begins
LIMIT_WARNING_FILE=filename
Specifies the file to play if the argument y is defined
n Prevents jumping to priority n+101 (where n is the number of the current priority) if all
channels are deemed busy.
|