I have a 202 with the OBiBT that is acting as a gateway to asterisk for my cell phone. It all works as i want except one scenario where i want to place an outgoing call from my cell phone without turning off blue tooth.
Here's the setup:
I have sp1 set up as an extension to my asterisk server and set up InboundCallRoute adapting from here:
http://michigantelephone.wordpress.com/2012/03/22/how-to-divert-incoming-google-voice-calls-from-an-obihai-voip-device-to-an-asterisk-server-for-additional-processing-such-as-caller-id-lookup/ including the other asterisk modifications, trunk, and inbound route settings.
It looks like this:
{(7xx):aa},{sp1(10-digit-cell-phone-number/$1@192.168.xxx.yyy;ui=asterisk-trunk-name:asterisk-trunk-secret)},{ph1,ph2}
& it seems to work fine. The first rule is simply so i can call the aa from one specific asterisk extention. The 2nd rule acts on incoming calls and forks them to my asterisk system ringing all phones in the house and callerId number gets passed and looked up in asterisk. Moreover, the mobile phone continues to rings and if i answer it (instead of the asterisk phone), all i need to do is disengage the bluetooth and the call is on the cell phone's speaker.
This all works fine.
However, if i make an outgoing call from my cellphone without turning off bluetooth, whatever number i dial is forked to asterisk. & after thinking about it, i think i understand what is happening. The OBiBT simply sees an incoming call and forks to asterisk per the inbound call route. It doesn't matter where it originated based on my rule.
Ok. so, i tried adding a digitmap to the rule so that the only calls that would get processed by that rule would be any calls that originated from a number other than the cell phone. So i changed the 2nd rule in the above route to this:
{(!x.10-digit-cell-phone-number)>:sp1(10-digit-cell-phone-number/$1@192.168.xxx.yyy;ui=asterisk-trunk-name:asterisk-trunk-secret)}
My reading of the above rule says that any inbound call where the caller is a number other than one ending in my 10-digit-cell-phone-number would trigger that rule. But it didn't work. The incoming call rings my cell phone and never gets forked. OBi sees the correct originating number per it's call history but the call just rings until cell phone voice mail kicks in. I've also tried the opposite rule:
{(>x.10-digit-cell-phone-number):sp1(10-digit-cell-phone-number/$1@192.168.xxx.yyy;ui=asterisk-trunk-name:asterisk-trunk-secret)}
with the same result. Interestingly, this does produce the correct behavior when dialing from my cell phone - only the dialed destination rings.
Cannot seem to find a rule adjustment that works for both incoming and outgoing calls. I know the easy workaround is simply to turn off blue tooth on my cell phone to make an outgoing call, but why the modified rules aren't working is puzzling.
Any ideas?
thx, jay