Upgrade 3CX to v18 and get it hosted free!

Asterisk manager Example: Originate

Author image

Originate – Place a call from a device to an extension.

If the device (SIP/12345) is a phone, it will ring and when picked up the user will be connected to the extension (Context, Exten, Priority) dialed. If you fail to specify timeout it defaults to 30 seconds.

SEND:

ACTION: Originate
Channel: SIP/12345
Exten: 1234
Priority: 1
Timeout: 60000
Context: default

RECEIVE:

Event: Newexten
Channel: OutgoingSpoolFailed
Context: default
Extension: failed
Priority: 1
Application: SetVar
AppData: extension=failed
Uniqueid: 1124981514.58775

Event: Hangup
Channel: OutgoingSpoolFailed
Uniqueid: 1124981514.58775
Cause: 0

Response: Error
Message: Originate failed

Or, hopefully:

Event: Newchannel
Channel: SIP/12345-ed8f
State: Down
CallerID:
Uniqueid: 1124982019.19157

Event: Newchannel
Channel: SIP/12345-ed8f
State: Ringing
CallerID:
Uniqueid: 1124982019.19157

Event: Newstate
Channel: SIP/12345-ed8f
State: Up
CallerID:
Uniqueid: 1124982019.19157

Event: Newexten
Channel: SIP/12345-ed8f
Context: default
Extension: 1234
Priority: 1
Application: SetVar
AppData: extension=1234
Uniqueid: 1124982019.19157

Response: Success
Message: Originate successfully queued

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.