Name

ChannelRedirect() — Redirects a channel to a new location in the dialplan

Synopsis

ChannelRedirect(channel,[[context,]extension,]priority)

This application redirects the specified channel to a new priority in the dialplan. If extension is not specified, the current extension is assumed. If context is not specified, the current context will be assumed:

; Transfer SIP/Bob to hold music when extension 123 is dialed
exten => 123,1,ChannelRedirect(SIP/Bob,124,1)

exten => 124,1,Answer()
exten => 124,2,MusicOnHold()

See Also

Transfer()

Get Asterisk: The Future of Telephony, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.