Upgrade 3CX to v18 and get it hosted free!

Asterisk manager Example: Transfer

Author image

Asterisk Manager Example: Transfer

Transfer a call to another extension

Let’s see what channels we actually have first:
SEND:

ACTION: Command
command: show channels

RECEIVE:

Response: Follows
Channel (Context Extension Pri ) State Appl. Data
SIP/x7065558529-8f54 (pms-x7065558529 1 ) Up Bridged Call SIP/127.180.254.109-44d00f80
SIP/127.180.254.109-44d00f80 (macro-dial_agi_ver.1.0.0 dial_command 1 ) Up Dial SIP/x7062618529
2 active channel(s)
–END COMMAND–

Okay, we’ll transfer the first one.
SEND:

ACTION: Redirect
Channel: SIP/x7065558529-8f54
Context: default
Exten: 5558530
Priority: 1

RECEIVE:

Event: Newchannel
Channel: AsyncGoto/SIP/x7065558529-8f54
State: Up
CallerID:
Uniqueid: 1124983982.19260

Event: Rename
Oldname: SIP/x7065558529-8f54
Newname: SIP/x7065558529-8f54
Uniqueid: 1124983885.19259

Event: Rename
Oldname: AsyncGoto/SIP/x7065558529-8f54
Newname: SIP/x7065558529-8f54
Uniqueid: 1124983982.19260

Event: Rename
Oldname: SIP/x7065558529-8f54
Newname: AsyncGoto/SIP/x7065558529-8f54
Uniqueid: 1124983885.19259

Event: Newexten
Channel: SIP/x7065558529-8f54
Context: default
Extension: 5558530
Priority: 1
Application: SetVar
AppData: extension=5558530
Uniqueid: 1124983982.19260

Response: Success
Message: Redirect successful

Replace the Channel value with the channel to transfer, and the Exten value with the number to dial. Of course, you can also do this with ZAP or whatever you like.

Back

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.