I am looking for a way to check the status of a cell phone. Found one way that worked for me and would like to have some feedback or suggestion of improvments.
Below example is for a “Swedish” cell phone, dont know if it works in the same way for other countries.
I could define “redirecting” numbers for 3 traffic cases when u dial my mobile (073-302 59 75):
NOT_INUSE call forward to A
INUSE call forward to B in my case 010-602 4975
UNAVAILABLE call forward to C in my case 010-602 4976
Action: OriginaternChannel: OOH323/00733025975@AvayarnExten: 0106024000rnContext: inputinterior.sernPriority: 1rnTimeout: 1000rnCallerID: 106024000rnrn
DBPutrnFamily: DSrnKey: 0733025975rnVal: NOT_INUSErnrn
Wait a second…
Action: DBGetrnFamily: DSrnKey: 0733025975rnrn
In the dialplan:
exten => 0106024975,1,Set(DB(DS/0733025975)=INUSE)
exten => 0106024975,n,Hangup()
exten => 0106024976,1,Set(DB(DS/0733025975)=UNAVAILABLE)
exten => 0106024976,n,Hangup()
Just a short call to my cell phone, to se if i get anything back, my cell phone doesn’t even ring.
Wait a second if the call is redirected, then check to se if the status has changed from NOT_INUSE to something else.
Dont know if it is a stupid idea, but it worked on my cell phone, and the switchboard girls was very happy to be able “to ask” my cell phone “what I am doing”
Most of the day i am INUSE so they dont need to transfer calls to me ehen they know I am INUSE.
Ofc there is some delay from asking to getting the answer, but as the girls said, we could live with the delay, 2seconds compared to be “blind” is nothing.