Yealink Forums
XML push client/phone intiated? - 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: XML push client/phone intiated? (/showthread.php?tid=40249)

Pages: 1 2


XML push client/phone intiated? - KNERD - 11-21-2016 04:10 PM

Looking at the example "TextScreen.php," it has the following code:


Code:
push2phone("10.1.3.8","10.1.3.180",$xml);
#replace 10.1.3.8 with your Apache ip address
#replace 10.1.3.180 with your phone ip address

This suggests you need the IP address of the phones to push.
What if the phones are on the WAN side, and not the LAN?
There is no means to push to an IP address on a WAN side.

Can we get the phones to initiate the PUSH, to have it check sever for updates, etc?

Thank you.


RE: XML push client/phone intiated? - jolouis - 11-22-2016 02:31 PM

Sounds like you're getting the idea of PUSH confused...

By definition, PUSH is when the server sends something to the phone. If the phone was to ask for something, that would be a PULL.

So the question is, what information or settings are you trying to get to the phone, or what do you want it do actually do? Knowing that will determine which approach you use.

For example, if you want the phone to update it's configuration from time to time, you can use Scheduled Auto Provisioning. This will tell the phone to periodically PULL the config from the server, and update itself with the new settings.

If you want the user to be able to view some random XML/information at their whim, then just setup a DSS button as XML browser. When the user presses the button, they cause the phone to PULL the XML from your server.

Finally, if you want the server to be in control, you may able to achieve that by using SIP Notify messages. I know you can do a Notify to tell the phone to Auto Provision (incase you want to do so immediately rather than on a schedule or at boot up). I think you might also be able to do generic XML pushes through notify (thought I saw that in one of the recent firmware manuals) but not 100% on that one, you would have to do some research...


RE: XML push client/phone intiated? - Karl_Yealink - 11-25-2016 10:14 AM

XML PUSH is a feature which server Push something to phone, and the phone recognize the message and take effect.
As you attach, it's TextScreen.php, if server Push this to phone, the phone will popup a text on screen.

No matter the phone in which side, the point is that the server's network can connect to phone's network. So the phone can receive PUSH XML message.

And as floor 2 words, if your request is not as Push XML feature, please tell me detail request.


RE: XML push client/phone intiated? - KNERD - 11-28-2016 05:21 PM

What I am trying to do is get the phone to display a message of my choosing, such as status updates on events.

Since I probably cannot reach a phone via PUSH on the WAN side, to let the phone there an updated message what other option is there?

Thank you for the replies.


RE: XML push client/phone intiated? - Karl_Yealink - 11-29-2016 03:48 PM

(11-28-2016 05:21 PM)KNERD Wrote:  What I am trying to do is get the phone to display a message of my choosing, such as status updates on events.

Since I probably cannot reach a phone via PUSH on the WAN side, to let the phone there an updated message what other option is there?

Thank you for the replies.

web path->feature->remote control->Push XML Server IP Address.
Please check this option, do you fill the PUSH server IP address in this option.


RE: XML push client/phone intiated? - KNERD - 11-30-2016 09:17 PM

(11-29-2016 03:48 PM)Karl Wrote:  
(11-28-2016 05:21 PM)KNERD Wrote:  What I am trying to do is get the phone to display a message of my choosing, such as status updates on events.

Since I probably cannot reach a phone via PUSH on the WAN side, to let the phone there an updated message what other option is there?

Thank you for the replies.

web path->feature->remote control->Push XML Server IP Address.
Please check this option, do you fill the PUSH server IP address in this option.


Will it matter if the server does not have the IP addresses of the phones?


RE: XML push client/phone intiated? - KNERD - 12-03-2016 09:51 PM

I am sorry, but looking at the "TextScreen.php" there is no means to push a message to the phone if you do not have the the IP address.
Is there something else which can be done?


RE: XML push client/phone intiated? - jolouis - 12-05-2016 07:53 PM

Aha I knew I'd seen it somewhere! Was looking for some info on something else and came across the answer to your question!

Check this one out:
http://forum.yealink.com/forum/showthread.php?tid=3662

If you follow the link to the guide provided by the Yealink response, as promised you'll see on page 99+ on the PDF a full description (with example) of how to do PUSHXML using SIP Notify. That means you can send your XML through SIP, without requiring the IP and direct access to the phone itself. That will solve your problem!


RE: XML push client/phone intiated? - KNERD - 12-06-2016 05:36 AM

(12-05-2016 07:53 PM)jolouis Wrote:  Aha I knew I'd seen it somewhere! Was looking for some info on something else and came across the answer to your question!

Check this one out:
http://forum.yealink.com/forum/showthread.php?tid=3662

If you follow the link to the guide provided by the Yealink response, as promised you'll see on page 99+ on the PDF a full description (with example) of how to do PUSHXML using SIP Notify. That means you can send your XML through SIP, without requiring the IP and direct access to the phone itself. That will solve your problem!

Thanks for the response.

While I see executing the XML does not require the IP address of the phone, however sending a SIP notify does. and also requires knowing what extensions they are. A double whammy.

I thought I saw somewhere one could display a message during provisioning, which means I could set them up to check every hour, or check to see if there is a message to display. The docs on provisioning seem to be quite extensive, but I have yet to see anything with the ability to make a message appear on the screen.

Thanks again!


RE: XML push client/phone intiated? - jolouis - 12-06-2016 01:44 PM

(12-06-2016 05:36 AM)KNERD Wrote:  While I see executing the XML does not require the IP address of the phone, however sending a SIP notify does. and also requires knowing what extensions they are. A double whammy.

Huh? Okay now I'm confused. The phones you are trying to send messages to... they are registered to your PBX correct? If they are registered to the PBX you can send them a SIP notify from the PBX, no further details needed. The SIP will flow through the WAN firewalls/etc to the phone in the same way a phone call would...

On the other hand, if you don't know the extension numbers and have no access to the PBX... why on earth are you trying to send messages to the phones?? Maybe if you explain your actual goal a little better we can help more.

I have never run into a way of sending a message/alert/etc during provisioning (honestly I have no idea why you would want to do that since Yealink tries to make provisioning as seamless/behind the scenes as possible), but I suppose it could be another one of those "undocumented features"...