[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.
https://www.yealink.com/ydmp-freetrial-2020


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]

Setup
  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.


Pictures
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 


Messages In This Thread
XML Push Server - See other phones in DND mode - Turnkey - 01-13-2017 04:45 AM

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Phones crash using VM Impress1 1 1,084 03-29-2022 09:54 PM
Last Post: Yisroel_MongoTEL
  Music On Hold Server URI metrocommunications 2 6,064 01-04-2022 01:27 PM
Last Post: Yisroel_MongoTEL
  Provision - Server URL port coltarushalo 1 2,402 08-21-2021 12:36 AM
Last Post: complex1
  BLF no longer works when recovered from Failover Server Neutro 3 6,109 06-23-2021 07:10 AM
Last Post: Neutro
  Need to completely reset phones Chris708 1 2,746 02-26-2021 03:58 AM
Last Post: Chris708
  T46S/T46G show green icon (blf) although phones disconnected (Asterisk) jobst 0 2,430 09-16-2020 04:29 AM
Last Post: jobst
  T4x: Unable to upload server certificates: "The cert file already exists!" Fritz-EDV 2 4,829 06-12-2020 04:03 PM
Last Post: Fritz-EDV
  Recovery Mode Challenger VoIP 1 7,816 12-02-2019 11:14 AM
Last Post: Jacky_Yealink
  Using a shared phonebook managed bij phones johandezwaan 1 3,874 09-30-2019 01:32 PM
Last Post: mara
  Yealink Wireless IP Phones RyanL 2 4,775 08-19-2019 03:03 PM
Last Post: jolouis

Forum Jump:


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

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