I need to put a caller to queue. And at this moment it is a basics - Queue command, but i have to check if this caller have permission to call an agent at this moment. I have running in background AMI script which setting up permissions.
So, is it possible to return a caller to queue if he dont have permission to make a call to agent ?
You can use AMI command Redirect. You have to know caller channel but with AMI you probably track calls and their channels already (via Events).
pbx*CLI> manager show command Redirect
[Syntax]
Action: Redirect
[ActionID:] <value>
Channel: <value>
[ExtraChannel:] <value>
Exten: <value>
[ExtraExten:] <value>
Context: <value>
[ExtraContext:] <value>
Priority: <value>
[ExtraPriority:] <value>
[Synopsis]
Redirect (transfer) a call.
[Description]
Redirect (transfer) a call.
[Arguments]
ActionID
ActionID for this transaction. Will be returned.
Channel
Channel to redirect.
ExtraChannel
Second call leg to transfer (optional).
Exten
Extension to transfer to.
ExtraExten
Extension to transfer extrachannel to (optional).
Context
Context to transfer to.
ExtraContext
Context to transfer extrachannel to (optional).
Priority
Priority to transfer to.
ExtraPriority
Priority to transfer extrachannel to (optional).
[See Also]
Not available
[Privilege]
call,all
[List Responses]
None
[Final Response]
None
You need to specify Channel
of the caller you want to redirect and destination for redirection with Context
, Exten
, Priority
. Now you can redirect any caller to any other extension in dialplan.
We were using it like that for years until we switched to AGI approach.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.