Setup as below:

Celluar Network - E1 - Avaya - OOH323 - Asterisk

It works like this, some1 (we can call her Åsa) wants to know if i am avaiable (my cell phone 073-302 59 75 is NOT_INUSE) She have a web-app (just a simple form), where she enter my extension and hits enter. The web-app originates the call as i wrote and waits for the "status" then ofc presents it to Åsa.

I was writing the app (probably the worst written code i have done so dont ask me to post it) late thursday and let Åsa use it on Friday. And yes, the AMI code was enough, everytime she should transfer a call to me or just call me , she used the web-app first, and she was very happy. When she saw that I was INUSE she sent me a mail that mr X has been looking for me, i got the mail while I was talking in the phone so I know that
she used the web-app to determine my status, not just transfering the call.

-----Ursprungligt meddelande----- From: Gilles
Sent: Saturday, March 26, 2011 11:37 AM
To: [email protected]
Subject: Re: [asterisk-users] Checking status of a cell phone

On Sat, 26 Mar 2011 10:50:19 +0100, <[email protected]> wrote:
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.

I'd like to check I understood: Your Asterisk server is connected to a
landline and can call your cellephone (073-302 59 75).

When a call comes in from the landline, Asterisk checks whether your
cellphone is available and redirects the call; If not available, it
calls a landline number (010-602 4975). If this landline number is not
available, it tries a third number (010-602 4976)?

Is the AMI code below enough to check if the cellphone is
available/in-use?

Action: Originate
Channel: OOH323/00733025975@Avaya\r\nExten: 0106024000
Context: inputinterior.se
Priority: 1
Timeout: 1000
CallerID: 106024000

DBPut
Family: DS
Key: 0733025975
Val: NOT_INUSE


--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
              http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
              http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to