Aastra 6731i with php

volumes
Posts: 2
Member Since:
2011-09-26

Hi all,

Probably this is not the best place to put this, but i cant find any better, sorry.

In our company with have several 6731i, and my boss ask me if there's any way to doing something in PHP that every second refreshs and tells if the phone is on a call or not.

There's some URL that i can request and return me something ?

Thanks in advance.

Best regards,



SkykingOH
Posts: 9682
Member Since:
2007-12-17
Is this connected to an

Is this connected to an Asterisk system? If so you don't need to talk to the phone at all.

--

Scott

aka "Skyking"



volumes
Posts: 2
Member Since:
2011-09-26
Hi, The phones are connected

Hi,

The phones are connected to the Aastra 5000 series and we have a software that works with the phones trought URI, but what i want its something independent.

Thanks in advance.

Br



aastra1
Posts: 287
Member Since:
2006-11-06
Polling for line state

Definitely not the right place as this forum is dedicated to trxbox... Anyway here is what you can do but setting a polling on the phone every second is pretty heavy for your installation.

What you can do is set an action uri polling with a polling interval of 1, then you can set a script called with the $$LINESTATE$$ variable something like http://my server/script.php?state=$$LINESTATE$$ you will then receive the current phone state.

Please refer to the XML documentation for mre details such as the expected values.

Hope this helps.

--

---
aastra1
Aastra XML scripts 2.3.0 now available



SkykingOH
Posts: 9682
Member Since:
2007-12-17
I was going to propose an

I was going to propose an Asterisk based solution, since you are running the Aastra switch I don't have knowledge of the API's

I would take a look at the XML developers guide there is bound to be a function.

--

Scott

aka "Skyking"



Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.