Hi all!
I'm using a beaglebone black as an asterisk PBX server, and using an obi 110 to bridge my phone line with my pbx, and phone set. (I also have an obi 100 for an additional phone set, but it's not relevant to my question here)
I have set up my Obi and PBX to be able to bridge my phone line and my handset correctly, thanks to blogs from MichiganTelephone and Ad_Hominem! I have one bit of configuration that I'd like to implement, and am not sure how to achieve...
If ever my beagleboneblack is down, asterisk does not respond or has problems, I seem to be having luck with this dialplan in the Line interface:
{SP2,ph}
It seems to be doing what I want it to do, ring my SP2 trunk, which in turns dials all of my phones and extensions (2 obis and one IP phone in my office) and if ever the asterisk server is down, it still forwards the call to my phone connected to the obi 110 at least.
I'm trying to do something similar but the other way around, if I dial from my phone connected to the obi110, and asterisk is not available, I want it to dial the physical line and still put the call through. The dial plan is a bit more convoluted though, and doing a simple change did not seem to perform well!
Phone dialplan:
{(1xxxxxxxxxx):sp1},{(xxxxxxxxxx):sp1},{([1-9]x?*(Mpli)):pp},{(<#:>|911):li},{**0:aa},{***:aa2},{(<**8:>(Mli)):li},{(Mpli):pli}
I tried doing something like:
{(1xxxxxxxxxx):sp1,li},{(xxxxxxxxxx):sp1,li},{([1-9]x?*(Mpli)):pp},{(<#:>|911):li},{**0:aa},{***:aa2},{(<**8:>(Mli)):li},{(Mpli):pli}
but it doesn't seem to be doing what I expect it to. Any dialplan experts here that could help me get along this? I'm used enough to modifications but new to dialplans and searches in the forum enlightened me a bit but not enough to fix this on my own so far!
Thanks!