Asterisk – ChannelRedirect
ChannelRedirect : This is used to redirect the given channel to target dialplan. For example if you want to redirect the channel SIP/1222-09992 to wrap context at 2 priority. You can use this function/command to do so.
This has been added in Asterisk 1.4 version.
For Asterisk 1.4 version
ChannelRedirect(channel|[[context|]extension|]priority)
For Asterisk 1.8 and above version
ChannelRedirect(channel, context, extension, priority)
This is used to Sends the specified channel to the specified extension priority.
for example:
exten => 100, 1, ChannelRedirect(SIP/satya-00212, ibcall, s, 1)
Related Posts
- 40
Contexts Dialplans are broken into sections called contexts. Contexts are named groups of extensions, which serve several purposes. 1. Contexts keep different parts of the dialplan from interacting with one another. 2. An extension that is defined in one context is completely isolated from extensions in any other context, unless interaction is specifically…
- 38Action: Redirect Synopsis: Redirect (transfer) a call Privilege: call,all Description: Redirect (transfer) a call. Variables: (Names marked with * are required) Channel: Channel to redirect ExtraChannel: Second call leg to transfer (optional) Exten: Extension to transfer to Context: Context to transfer to Priority: Priority to transfer to ActionID: Optional Action…
- 36
Dial() is perhaps the most important application in Asterisk. Dial() accepts every valid channel type (e.g. SIP, IAX2, H.323, MGCP, Local, Zap, Dahdi), The allowable parameters are channel-specific; i.e., what parameters a channel requires or will accept depends on the nature of the channel technology. For example, a SIP channel will require an IP address…
- 36