Yealink Forums
URL for returning the current phone state? - Printable Version

+- Yealink Forums (http://forum.yealink.com/forum)
+-- Forum: IP Phone Series (/forumdisplay.php?fid=4)
+--- Forum: General topics (/forumdisplay.php?fid=15)
+--- Thread: URL for returning the current phone state? (/showthread.php?tid=44496)



URL for returning the current phone state? - johnbeaumont - 10-01-2020 04:32 PM

Hi,

We've had a request from a customer wondering if there is a URL on the Yealink IP phones that returns the phone's current state. e.g. In a call, ringing, on DND etc. Something that I can send a GET request to and get this information.

I can't find anything in the Yealink documentation to suggest this. Is there anything?


RE: URL for returning the current phone state? - Albert_Yealink - 10-10-2020 10:55 AM

(10-01-2020 04:32 PM)johnbeaumont Wrote:  Hi,

We've had a request from a customer wondering if there is a URL on the Yealink IP phones that returns the phone's current state. e.g. In a call, ringing, on DND etc. Something that I can send a GET request to and get this information.

I can't find anything in the Yealink documentation to suggest this. Is there anything?

Dear Customer,

This is Albert from Yealink Technical Support Team. Nice to work with you.

Action URL can meet your need. Please refer to P462-475 of the guide.
The guide please refer to
https://drive.google.com/file/d/16yufAtFaek0pVU8TS9BaWd9zaQ_aiPem/view?usp=sharing

Best Regards,
Albert


RE: URL for returning the current phone state? - troy44 - 06-15-2022 03:32 AM

Please don't send me a link to the manual, I have the manual,
Can you please provide a working / real world example of a URL string that will return the current status of the phone extension? If it is ringing, in use, idle or muted...
these kind of things....
you folks always point to the manual....
and there is not always an easy to read example of what we are looking for..
Can you please provide a URL example of how to get the extension
STATUS

please, thank you
Troy


RE: URL for returning the current phone state? - Yisroel_MongoTEL - 06-15-2022 04:46 AM

(06-15-2022 03:32 AM)troy44 Wrote:  Please don't send me a link to the manual, I have the manual,
Can you please provide a working / real world example of a URL string that will return the current status of the phone extension? If it is ringing, in use, idle or muted...
these kind of things....
you folks always point to the manual....
and there is not always an easy to read example of what we are looking for..
Can you please provide a URL example of how to get the extension
STATUS

please, thank you
Troy

The Yealink guy mentioned Action URL, that is not Action URI you are thinking/asking about.

Action URL is a setting in the phone that will access/trigger/post to a specific URL when the phone does a specific action.

But I do not believe there is an Action URI to get the current status (there are Actions URIs to check the settings, but not actual status.)


RE: URL for returning the current phone state? - troy44 - 06-15-2022 04:54 AM

wow, ok man,
I really thank you for your help.
It's really a drag that you can't query the extension to get the status.
Again, thanx

Can I hire you to do an hour of consulting? screenshare or other?
Teach me how to have the phone 'write' something somewhere when the line is ringing so I can check it and take and action to answer?
I'm right around the corner of being able to do this, I just don't know how to make it 'write' or send a message somewhere where I can check it...
I do see the values that are able to be entered into the phone GUI, but I don't know how they work....
any interest?
Troy


RE: URL for returning the current phone state? - Yisroel_MongoTEL - 06-15-2022 05:02 AM

(06-15-2022 04:54 AM)troy44 Wrote:  Can I hire you to do an hour of consulting? screenshare or other?
Teach me how to have the phone 'write' something somewhere when the line is ringing so I can check it and take and action to answer?
I'm right around the corner of being able to do this, I just don't know how to make it 'write' or send a message somewhere where I can check it...
I do see the values that are able to be entered into the phone GUI, but I don't know how they work....
any interest?
Troy

Ha ha, not a dev or anything... So no.

It's pretty simple in a way... but you need a place (=server/system) setup to accept the messages that phones sends.

If you want a quick test (to see how it works) you can use this webhook test site https://webhook.site/, take the "Your unique URL" from the page and paste it into one of the status field on the Feature>Action URL settings page (like Off Hook), take the phone Off Hook, and you'll see there's an incoming informational message on that https://webhook.site/ page.


RE: URL for returning the current phone state? - troy44 - 06-15-2022 05:21 AM

thanx bro, so I just made big headway, I can set a variable on my local cpu as to weather the phone is busy or on hook/off hook, etc etc...
LOL so now here we go for another week of developing this deal...
all good...
thanx for your help...