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?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

feptiasChief DudeCommented:
exten => 2222222222,1,Dial(SIP/phone1&SIP/phone2,20)

http://www.voip-info.org/wiki/view/Asterisk+cmd+Dial
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux Distributions

From novice to tech pro — start learning today.