Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I know it's possible to use the Originate action through the manager API to initiate a call between an external channel and an internal SIP extension. How would one initiate a call between two external channels?

By having this functionality one can help reduce the cost of calls from cellular or off-site phone systems by using a VoIP solution to bridge the call.

share|improve this question
Did you try making both Channel and Exten external numbers? Action: Originate Channel: Zap/g2/8135551213 Context: default Exten: 8135551212 Priority: 1 Callerid: 3125551212 – Steven Jun 4 '09 at 3:02

The secret of understanding the Originate action is to grasp that it's connecting a device to a context/extension/priority combination in the dialplan.

Typically, you'll see something like this:

Action: Originate
Channel: SIP/Alice
Context: testing
Exten: 200
Priority: 1

This would call Alice's SIP phone, and when she answers, connect her to extension 200 in the [testing] context.

Now, to connect two external numbers, all you need is an extension in your dialplan that knows how to dial an external number. Assuming we set up something like this:


exten => _NXXNXXXXXX,1,Dial(SIP/some_provider/${EXTEN})

then we could send calls to the [external] context in order to have them dial out to the outside. (I used North American numbering and a SIP trunk to connect to the outside world... your dialplan will obviously be a bit different, but I hope you get the idea.)

Once you have that in place, you can do this via AMI:

Action: Originate
Channel: SIP/some_provider/8005551212
Context: external
Exten: 8885554321
Priority: 1

This will call out to 8005551212, and when that line is answered, start dialing 8885554321.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.