Skip to main content

Downstream PBX Failover Rollover Hunting

Posted by bup413 on Wed, 07/22/2009

I had this working on my Asterisk box nicely, now I am trying to replicate it on MTE. Basically a service I like to offer (and is a great selling point) is that is a customers extensions or CPE PBX in unreachable due to down internet connection on their side the MTE would then try another couple numbers (like a cell phone or POTS line)

What I had in Asterisk was an include that looked like this:

;; Business Number ------------------------------------------------------------------------->>>>
exten => 4135553328,1,Set(__FROM_DID=${EXTEN})
exten => 4135553328,n,ExecIf($[ "${CALLERID(name)}" = "" ] ,Set,CALLERID(name)=${CALLERID(num)})
exten => 4135553328,n,Set(FAX_RX=)
exten => 4135553328,n,Set(__CALLINGPRES_SV=${CALLINGPRES_${CALLINGPRES}})
exten => 4135553328,n,SetCallerPres(allowed_not_screened)
; Main Route
exten => 4135553328,n,Set(CDR(accountcode)=CP-01257)
exten => 4135553328,n,RetryDial(silence,2,4,SIP/4135553328/${EXTEN},60)
; Failover Routes
exten => 4135553328,n,Goto(from-internal,14135554349,1)
exten => 4135553328,n,Goto(from-internal,14135550438,1)

and I had one for each DID (I know I could have used variables but I had scripts automating this process)

What I did in MTE was create the following script:

exten => s,1,Set(CALLERID(name)=${ARG2}${CALLERID(name)})
exten => s,n,Goto(local-extensions${TL_DASH}${tenant},${ARG1},1)
exten => s,n,Goto(local-extensions${TL_DASH}${tenant},${ARG3},20)
exten => s,n,Goto(local-extensions${TL_DASH}${tenant},${ARG4},20)
exten => s,n,Goto(local-extensions${TL_DASH}${tenant},${ARG5},20)

ARG3 4 & 5 are Failover 1 2 & 3 respectively

I then disconnect the trunk on the CPE PBX and try to call it. But what I get is a Busy signal and no attempts to outdial to the first, second, or third failover number.

Any help would be great! This is a great service. I even had a customer where they were digging up the street and snapped all the lines in the ground, electric and phone and internet. but without hesitation the calls routed to their cell phones. They called and told me what happened and could not praise the VoIP service enough. 3 days later when their services came back their calls just magically started ringing in the office again!!

-Adam


Submitted by moshe on Fri, 07/24/2009 Permalink

it is actually a great idea, further more on MTE maybe added if it could be on the extension level not only on the did/inbound route, because the pbx is hosted, so if unreachable it is usually only the extension not the entire system (if its down then it probably entirely down or it would be a great setting on the did level when this happens on a GW if there is one if it is not down as well)

it was discussed a while back at Features Wanted >> Back Up Idea the issue was then how to avoid ignoring forwarding rules in ring groups, hunt list and queues, but maybe you could force that in such event it should have accept reject option so it wont hijack the call/ring group if a voice mail answers

if such thing could be added into thirdlane MTE on the admin level or on user portal a page backup it will add comfort for existing and potential VoIP users just the idea that this issue (what will i do if my internet goes down) is totally covered