Problems ringing 2 phones simultaneously

I am having problems ringing 2 phones, that are at different sites, simultaneously.
We are using SIP for the phones, but the servers are peered using IAX2. I can make single calls between sites without problems. Dialing multiple phones on the internal server work fine using:
same => n,Dial(SIP/${EXTEN}&SIP/5830,20)
The issue occurs when trying to add IAX2 to the configuration:
same => n,Dial(SIP/${EXTEN}&IAX2/otherserver/1001,20)
It will only ring one of the phones. Is this a syntax issue? or will I need to use something like queues?

I changed my config to use sip instead of iax2…no change
I did setup a time delay to see if both phones ring, the first one rings for 2 seconds, then gets disconnected. That’s when the phone connected to the other server starts ringing.

This is what I want to accomplish: when ext. 5830 calls 5831, I want it to ring 5831 locally (ServerB) and 2195 on serverA, so that no matter which site you are at, you can answer.

Here is what shows on the server:
– Executing [5831@TimeDelay:2] Dial(“Local/5831@TimeDelay-00000004;2”, “SIP/5831,20”) in new stack
== Using SIP RTP CoS mark 5
– Called SIP/5831
– SIP/5831-00000009 is ringing
– Local/5831@TimeDelay-00000004;1 is ringing
– Executing [2195@TimeDelay:3] Dial(“Local/2195@TimeDelay-00000005;2”, “SIP/2195@serverA”) in new stack
== Using SIP RTP CoS mark 5
failed to extend from 1024 to 1321
failed to extend from 1024 to 1323
failed to extend from 1024 to 1334
failed to extend from 1024 to 1312
failed to extend from 1024 to 1306
– Called SIP/2195@serverA
failed to extend from 1024 to 1321
failed to extend from 1024 to 1323
failed to extend from 1024 to 1334
failed to extend from 1024 to 1312
failed to extend from 1024 to 1306
– SIP/serverA-0000000a answered Local/2195@TimeDelay-00000005;2
– Local/2195@TimeDelay-00000005;1 answered SIP/5830-00000008
== Spawn extension (TimeDelay, 5831, 2) exited non-zero on ‘Local/5831@TimeDelay-00000004;2’
== Spawn extension (TimeDelay, 2195, 3) exited non-zero on ‘Local/2195@TimeDelay-00000005;2’
– Remotely bridging SIP/5830-00000008 and SIP/serverA-0000000a

Looks to me like “SIP/serverA-00000000a answered” … is what is telling the asterisk server to disconnect extension 5831 before someone picks up.
Config:
-----------10.25.187.12
sip.conf
[general]
autokill=yes
srvlookup=yes
pedantic=no

office-phone
type=friend
host=dynamic
secret=blank
context=serverB_office
disallow=all
allow=ulaw
allow=alaw

5830
5831

[serverA]
type=friend
host=10.25.187.13
username=serverB
secret=blank
context=serverA_in
;disallow=all
allow=all
qualify=300

extensions.conf
[general]

[serverB_office]
exten => 5831,1,Verbose(2,Dialing multiple locations simultaneously)
same => n,Dial(LOCAL/5831@TimeDelay&LOCAL/2195@TimeDelay,20)
same => n,Hangup()
exten => _5XXX,1,Dial(SIP/${EXTEN},20)
same => n,Hangup()
exten => _2XXX,1,Dial(SIP/serverA/${EXTEN},20)
same => n,Hangup()

[TimeDelay]
exten => 5831,1,Verbose(2,Dialing the first channel)
same => n,Dial(SIP/5831,20)
same => n,Hangup()

exten => 2195,1,Verbose(2,Dialing the second channel with delay)
same => n,Wait(2)
same => n,Dial(SIP/2195@serverA)

[serverA_out]
exten => _2XXX,1,Dial(SIP/serverA/${EXTEN})

[serverA_in]
include => serverB_office
-------------10.25.187.13
sip.conf
[general]
autokill=yes
srvlookup=yes
pedantic=no

office-phone
type=friend
host=dynamic
secret=blank
context=serverA_office
disallow=all
allow=ulaw
allow=alaw

2140
2141
2195

[serverB]
type=friend
host=10.25.187.12
username=serverA
secret=blank
context=serverB_in
;disallow=all
allow=all
qualify=300

extensions.conf
[general]

[serverA_office]

exten => _2XXX,1,Answer()
exten => _2XXX,n,Dial(SIP/${EXTEN},20)
exten => _2XXX,n,Hangup()

include => serverB_out

[serverB_out]
exten => 5830,1,Dial(SIP/serverB/${EXTEN})
exten => 5831,1,Dial(SIP/serverB/${EXTEN})

[serverB_in]
include => serverA_office

It’s telling Asterisk that someone picked up. This may not be true, but Asterisk has now way of knowing that.

Note, if the other side is Asterisk, a lot of people seem to think they must start their dialplan with Answer, which will have this effect.

Thank you so much david55. That was it. I removed the Answer() line at the beginning and it started ringing both lines.