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(channelcontextextensionpriority)

This is used to Sends the specified channel to the specified extension priority.

for example:

exten => 100, 1, ChannelRedirect(SIP/satya-00212ibcalls1)

 

Related Posts

  • 42
    Dialplan Introduction:  
    Tags: dialplan, asterisk
  • 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…
    Tags: context, dialplan, asterisk
  • 38
    Action: 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…
    Tags: transfer, redirect, context, priority, channel, asterisk, exten, extension
  • 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…
    Tags: channel, asterisk, exten, example, extension, context
  • 36
    Action: Originate Channel: SIP/2003 Context: test Exten: s Priority: 1 Variable: __SIPADDHEADER51=Call-Info: <sip:192.168.0.19>\;answer-after=0 Callerid: MyTestCall Timeout: 15000 ActionID: 200 Where 192.168.0.19 is the IP of Asterisk Server
    Tags: sip, asterisk, exten, context, channel, priority

Leave a Reply

Your email address will not be published. Required fields are marked *

%d bloggers like this: