I have implemented a simple findme solution based on DID's.
In the findme context, after trying each respective number (at s,5 and
s,6), I would like a voice saying "The person was not available, press
pound to try the next number." Otherwise, it hangs up after 20 seconds
without dialing the next number.
Any ideas? Using background dosen;t work, because you hit # and it
hangs up.
[default]
exten => _8134712509,1,Goto(columbia,s|1)
exten => _8134712510,1,Goto(constitution,s|1)
[columbia]
exten => s,1,setvar(GSMNUM=xxxxxxxxxx)
exten => s,2,setvar(IRINUM=xxxxxxxxxx)
exten => s,3,setvar(F55NUM=xxxxxxxxxx)
exten => s,4,macro(findme,${GSMNUM},${IRINUM},${F55NUM})
[constitution]
exten => s,1,setvar(GSMNUM=xxxxxxx)
exten => s,2,setvar(IRINUM=xxxxxxx)
exten => s,3,setvar(F55NUM=xxxxxxx)
exten => s,4,macro(findme,${GSMNUM},${IRINUM},${F55NUM})
[macro-findme]
exten => s,1,Answer
exten => s,2,Wait,2
exten => s,3,BackGround(pls-wait-connect-call)
exten => s,4,Dial(SIP/${ARG3}@sip.broadvoice.com,20,m)
exten => s,5,Background(gsm)
exten => s,6,Background(silence/5)
exten => s,7,Dial(Zap/1/${ARG2},15,m)
exten => s,8,Background(iridium)
exten => s,9,Background(silence/5)
exten => s,10,Dial(${ARG3}/sip.broadvoice.com,10,m)
exten => s,11,Hangup