Upgrade 3CX to v18 and get it hosted free!

Asterisk Manager API Action Redirect

Author image

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 id for message matching.

Example

Transferring existing 2 party call to a meetme room:

Action: Redirect
Channel: Zap/73-1
ExtraChannel: SIP/199testphone-1f3c
Exten: 8600029
Context: default
Priority: 1

where 8600029 is the extension in the ‘default’ context which goes to a meetme room.

 

Example for Asterisk 1.8.7.1

The above example did NOT work me on Asterisk 1.8.7.1. It would appear that the “Extra” fields are required even if both parties are going to the same context, extension and priority.
To transfer an existing 2 party call to a meetme room (or any extension):

Action: Redirect
Channel: Zap/73-1
ExtraChannel: SIP/199testphone-1f3c
Context: default
Exten: 8600029
Priority: 1
ExtraContext: default
ExtraExten: 8600029
ExtraPriority: 1

where 8600029 is the extension in the ‘default’ context which goes to a meetme room.

Don’t use variables

If you are tryng to use asterisk variables in redirect via manager (ex: Context: artic_feat_${featgroupid}) the input will not be parsed, so you will be redirected tu a ‘null’ extensions in this case.

See also

Related Posts:

Get 3CX - Absolutely Free!
Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.