Bridging two outgoing calls from file

is there an easy way to do it?

if i dial out using a file and my dial plan dials another number, will the two calls be automatically bridged? i cant seem to hear anything using the following dialplan:

[myplan]
exten => 3,1,Dial(IAX2/NAME:PASS@usgw.ast.diamondcard.us/693209319999)
exten => 3,2,Dial(IAX2/NAME:PASS@usgw.ast.diamondcard.us/639194549999)

no, as set up it will make one call, and then make the second if the first call fails. you’ll probably need to use a .call file…

On the other hand, you should post your call file.

If your call file is something like:

Channel: IAX2/NAME:PASS@usgw.ast.diamondcard.us/693209319999 Context: myplan Extension: 3 Priority: 2

And assume your dialplan is the same (with priority 2 dialing the second number), you would bridge the two.

Ok, ive done some modifications. the first dial command in my first post wasnt necessary. :smile:

Heres my call file:

Channel: IAX2/diamondcard/639209319999
MaxRetries: 0
RetryTime: 3
WaitTime: 30
Context: diamondcardterm3
Extension: 4
Priority: 1

And heres my dial plan:

[diamondcardterm3]
exten => 4,1,Noop()
exten => 4,2,Dial(IAX2/diamondcard2/639209009999)

Once i execute the call file, the first phone will ring and after accepting the call, the second phone will ring. However, once i have accepted the second call, i dont hear any voice from both ends. Am i missing something? Do i have to use meetme() or transfer() for this simple app?

Here’s asterisk’s log:
– Attempting call on IAX2/diamondcard/639209319999 for

4@diamondcardterm3:1 (Retry 1)
– Call accepted by 64.124.128.5 (format gsm)
– Format for call is gsm

   > Channel IAX2/diamondcard-1 was answered.

-- Executing [4@diamondcardterm3:1] NoOp("IAX2/diamondcard-1", "")

in new stack
– Executing [4@diamondcardterm3:2] Dial(“IAX2/diamondcard-1”,
“IAX2/diamondcard2/639209009999”) in new stack
– Called diamondcard2/639209009999
– Call accepted by 64.124.128.5 (format gsm)
– Format for call is gsm
– IAX2/diamondcard2-2 is making progress passing it to
IAX2/diamondcard-1
– IAX2/diamondcard2-2 answered IAX2/diamondcard-1
– Channel ‘IAX2/diamondcard2-2’ ready to transfer
– Channel ‘IAX2/diamondcard-1’ ready to transfer
– Releasing IAX2/diamondcard-1 and IAX2/diamondcard2-2
– Hungup ‘IAX2/diamondcard2-2’
== Spawn extension (diamondcardterm3, 4, 2) exited non-zero on
’IAX2/diamondcard-1’
– Hungup ‘IAX2/diamondcard-1’
[Mar 5 19:51:46] NOTICE[16145]: pbx_spool.c:351 attempt_thread: Call
completed to IAX2/diamondcard/639209319999

Not sure what could be wrong. The same config (but with SIP) worked in my test. I got one more line before the “exited non-zero”.

-- Attempting native bridge of SIP/XXX1-081a0908 and SIP/XXX2-081aaa10 == Spawn extension (diamondcardterm3, 4, 1) exited non-zero on 'SIP/XXX1-081a0908'

Two check points: 1. Can the two IAX terminals speak to each other directly? (Might be a voice path problem.) 2. the line

[quote=“nobitanobi”]> == Spawn extension (diamondcardterm3, 4, 2) exited non-zero on

‘IAX2/diamondcard-1’ [/quote]
is not totally consistent with the call file, which should start the local leg at priority 1.