[YMCS/YDMP Free Trial Program]Yealink would like to offer Free Trial Program of Yealink device management service for our current eligible customers. You can see the details below.

Thread Closed 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
XML Push Server - See other phones in DND mode
Author Message
Turnkey Offline
Junior Member

Posts: 1
Joined: Jan 2017
Reputation: 0
Post: #1
XML Push Server - See other phones in DND mode
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.

[Image: yealink-dispatch.jpg]

  1. Download ping.php from my Github : https://github.com/TurnkeyTyranny/yealink-push-server
  2. This assumes we're working on the phone who belongs to Jame, as setup in the ping.php file. When Alice presses DND it will notify Bob's phone via our server script.
  3. Upload the script to your server
  4. Forward a public port on your router to your phone, I chose port 12733
  5. Connect to Alice's yealink phone via its IP address. Navigate to features -> action URL and setup the Open DND Url to as follows : http://zzz.zzz.zzz.zzz/ping.php?key=gfsj...dnd&bool=1
    ...1) Replace 'alice' with the name of the phone that you're configuring. It should match that in ping.php
    ...2) Replace zzz.zzz.zzz.zzz with your server's IP address.
    ...3) Set your server's public IP in your phone under the 'Remote Control' menu, see picture below.
  6. Update the Close DND url to the same as above, except set bool=1 in the url to bool=0
  7. Save the changes to your phone.

Forwarding a public port on your router to your phone's internal port 80 : [Image: port-forwarded-phone.png]

Configuringa phone to accept messages from your server where ping.php lives : [Image: jane.png]

Example of Alice's phone showing Jane (another phone on the network) is currently in DND mode : [Image: example%20dnd%20mode.jpg]

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.
(This post was last modified: 01-13-2017 04:47 AM by Turnkey.)
01-13-2017 04:45 AM
Find all posts by this user    like0    dislike0
Thread Closed 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Finding DHCP Server dalbright@grotecompany.com 0 1,034 09-27-2023 04:51 AM
Last Post: dalbright@grotecompany.com
  Probem with Queues and ringing phones Saccara 0 1,301 11-30-2022 05:23 PM
Last Post: Saccara
  Phones crash using VM Impress1 1 2,945 03-29-2022 09:54 PM
Last Post: Yisroel_MongoTEL
  Music On Hold Server URI metrocommunications 2 10,380 01-04-2022 01:27 PM
Last Post: Yisroel_MongoTEL
  Provision - Server URL port coltarushalo 1 4,658 08-21-2021 12:36 AM
Last Post: complex1
  BLF no longer works when recovered from Failover Server Neutro 3 8,961 06-23-2021 07:10 AM
Last Post: Neutro
  Need to completely reset phones Chris708 1 4,293 02-26-2021 03:58 AM
Last Post: Chris708
  T46S/T46G show green icon (blf) although phones disconnected (Asterisk) jobst 0 3,698 09-16-2020 04:29 AM
Last Post: jobst
  T4x: Unable to upload server certificates: "The cert file already exists!" Fritz-EDV 2 7,165 06-12-2020 04:03 PM
Last Post: Fritz-EDV
  Recovery Mode Challenger VoIP 1 11,232 12-02-2019 11:14 AM
Last Post: Jacky_Yealink

Forum Jump:

User(s) browsing this thread: 1 Guest(s)

Contact Us   Yealink   Return to Top   Return to Content   Lite (Archive) Mode   RSS Syndication