Ring two extensions

Hello,

I am having problems setting up my asterisk server to ring two extensions at the same time. I have two analog phone extensions (on S101i devices) that I have added to the iax.conf file, and added to my extensions.conf file.

I am able to properly ring each extension, but I cannot seem to get the asterisk server to ring both extensions. I would like my extension 3206 to ring when 3207 rings…

Here is a sample of my extensions.conf file…

exten => 3201,1,Macro(extensions,3201,3200) exten => 3202,1,Macro(extensions,3202,3200) exten => 3203,1,Macro(extensions,3203,3200) exten => 3204,1,Macro(extensions,3204,3200) exten => 3205,1,Macro(extensions,3205,3205) exten => 3207,1,Dial(extensions-iax,analogshopphone,3206,3206) exten => 3206,1,Macro(extensions-iax,analogshopphone,3206,3206) exten => 3207,1,Macro(extensions-iax,analogfax3207,3207,3207)

The correct format to dial multiple channels is to combine them with &, e.g., Dial(${phone3206}&${phone3207}), where variable phone3206 holds the channel specification of the phone at 3206, and so on.

Thanks for the reply… so for my example above would I put this?

exten => 3201,1,Macro(extensions,3201,3200) exten => 3202,1,Macro(extensions,3202,3200) exten => 3203,1,Macro(extensions,3203,3200) exten => 3204,1,Macro(extensions,3204,3200) exten => 3205,1,Macro(extensions,3205,3205) exten => 3207,1,Dial(${3206}&${3207}) exten => 3206,1,Macro(extensions-iax,analogshopphone,3206,3206) exten => 3207,1,Macro(extensions-iax,analogfax3207,3207,3207)

If you have set up those variables before these priorities (e.g., as globals), yes. (Not sure about all-numeric vaiable name, though.)

They are defined below in a macro… I think I have found what I need to do… My one question left is do i need to have two entries in a dialplan for extension 3207, as I do below? Or can I take out he bottom 3207 entry…

exten => 3205,1,Macro(extensions,3205,3205) exten => 3207,1,Dial(IAX2/${extensions-iax,analogshopphone,3206,3206}|60&IAX2/${extensions-iax,analogfax3207,3207,3207}|60) exten => 3206,1,Macro(extensions-iax,analogshopphone,3206,3206) exten => 3207,1,Macro(extensions-iax,analogfax3207,3207,3207)

(or dialplan show if 1.4) will tell you that Asterisk has taken the second 3207 entry out.

(or dialplan show if 1.4) will tell you that Asterisk has taken the second 3207 entry out.

thanks for the help valley. I picked up an asterisk book, and read it. I’m smrter now and understand the contexts! In the end, all I did need was an “&” to make two extensions ring.