making 2 sip peers ring, at the same time in asterisk dial plan

I want to make 2 sip peer ip phones ring at the same time, when dialing a specific DID or extension.  For the example we will say that i want to ring, phone1 and phone 2 at the same time when calling DID 2222222222

So for example, I have in my sip.conf

[phone1]
type=friend
context=whatever
host=dynamic
secret=hi
callerid=0000000000
mailbox=0000000000

[phone2]
type=friend
context=whatever
host=dynamic
secret=hi
callerid=1111111111
mailbox=1111111111

What would the incoming calls context look like in extensions.conf to make both phones ring simultaneously when calling DID 2222222222  ????

I have tried a couple different things in extensions.conf, like:

exten => 2222222222,1,Dial(SIP/phone1,phone2,20) ; That did not work

exten => 2222222222,1,Dial(SIP/phone1,20)
exten => 2222222222,1,Dial(SIP/phone2,20) ; This did not work either


Thanks for the help!!


LVL 4
jkocklerAsked:
Who is Participating?
 
feptiasConnect With a Mentor Commented:
exten => 2222222222,1,Dial(SIP/phone1&SIP/phone2,20)

http://www.voip-info.org/wiki/view/Asterisk+cmd+Dial
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.