How can I dial multiple extensions all at one time

Hello Guys,

I’m trying to dial 2 extensions at one time but it doesn’t seem to work.

i have two asterisk test servers so this isn’t on the production boxes.

[servera]

[serverb]

both have a iax between each other and is dual-homed but on 2 separate networks, public and private. they both link via the local subnet 192.168.0.0/24.

How can I dial the local extension and the Iax connection on the other server?

So that if servera(local) shuts down the call still rings on serverb and if they are both up they both ring until one answers and if not answer is found it then goes to voicemail.

here’s how far i’ve got so far.

[macro-iaxdial] exten => s,1,Dial(${ARG2}/${ARG1}&IAX2/servera/SIP/${ARG1},30,r) ;exten => s,2,Dial(${ARG2}/${ARG1},30,r) exten => s,2,Goto(s-${DIALSTATUS},1) exten => s-CONGESTION,1,Voicemail(u${ARG1}@default) exten => s-NOANSWER,1,Voicemail(u${ARG1}@default) exten => s-CHANUNAVAIL,Voicemail(u${ARG1}@default) exten => s-BUSY,1,Voicemail(b${ARG1}@default) ;exten => _s-.,1,Voicemail(u${ARG1}@default) exten => _s-.,1,Goto(s,2) [/code]

It is as simple as exten => s,1,Dial(EXTEN/SIP&EXTEN/SIP)
or iax or DAHDI or zap, this will work for each type.

Server A: -exten => s,1,Dial(${ARG2}/${ARG1}&IAX2/serverb/${ARG1},30,r)
Server B: -exten => s,1,Dial(${ARG2}/${ARG1}&IAX2/servera/${ARG1},30,r)
Assuming that the dialplan context where the IAX server-server calls land up has access to the extension by just dialing it’s number (${ARG1}). But, it must only dial the local one so you’ll need another macro e.g. something like: -[code][macro-localdial]
exten => s,1,Dial(${ARG2}/${ARG1},30,r)

[extensions-local]
exten => 201,1,Macro(localdial,SIP,${EXTEN})
exten => 202,1,Macro(localdial,SIP,${EXTEN})

[extensions]
exten => 201,1,Macro(iaxdial,SIP,${EXTEN})
exten => 202,1,Macro(iaxdial,SIP,${EXTEN})

[default]
include => extensions

[iax-in]
include => extensions-local
[/code]
Otherwise it’ll create a REALLY BAD call loop.

thank you jedi…looks more along the lines of what i was thinking…

the local context is where i’m going wrong so thank you for point me in the correct direction.

thank you all for your help.