XML Push Server - See other phones in DND mode - Printable Version +- Yealink Forums (http://forum.yealink.com/forum) +-- Forum: IP Phone Series (/forumdisplay.php?fid=4) +--- Forum: T4x Series (/forumdisplay.php?fid=31) +--- Thread: XML Push Server - See other phones in DND mode (/showthread.php?tid=40518) |
XML Push Server - See other phones in DND mode - Turnkey - 01-13-2017 04:45 AM I run a remote office in multiple states and needed to see when other phones for my coworkers were in DND mode which indicates if my staff can or cannot answer calls at any given time. As such I wrote a small php script that lives on my server that phones ping when they enter and exit dnd mode or call forwarding mode. When a phone presses the DND button this button press is then sent to the server – which is then forwarded to a variety of other phones on the network via the Yealink XML HTTP push service functionality. Setup
Pictures Forwarding a public port on your router to your phone's internal port 80 : Configuringa phone to accept messages from your server where ping.php lives : Example of Alice's phone showing Jane (another phone on the network) is currently in DND mode : I'll update the script with new functionality as I need it. Next function I'll be adding is to cache in a text file locally the existing status that are still open, so that other status don't overwrite them. |