Yealink Forums
Xml Browser using Google Firebase - 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 Browser using Google Firebase (/showthread.php?tid=40987)



Xml Browser using Google Firebase - Sztaho - 07-12-2017 02:02 PM

Dear All,
I am having difficulties with Google Firebase and XML browser function (on Yealink T19 E2). I am trying to download an XML application using XML browser from a Google Firebase function, however it always says "Load error". And in the log file, there is a download error (-3 error code). Using the same XML structure on a custom web server, it works.

Firebase link: https://us-central1-voipxml.cloudfunctions.net/retreiveVoipXml

The response from the server:
xml=<?xml version="1.0" encoding="UTF-8"?>
<YealinkIPPhoneTextMenu destroyOnExit="yes" Beep="yes" doneAction="Dial:062011122233" Timeout="10" LockIn="no">
<Title wrap="yes">Hívás</Title>
<MenuItem>
<Prompt>CRM hívás</Prompt>
<Dial>062011122233</Dial>
</MenuItem>
<SoftKey index="1">
<Label>Vissza</Label>
<URI>SoftKey:Exit</URI>
</SoftKey>
<SoftKey index="2">
<Label>Hívás</Label>
<URI>SoftKey:Send</URI>
</SoftKey>
</YealinkIPPhoneTextMenu>

The HTTP response is correct. Using a custom web server (IIS), with the same response, it works.

Anyone having trouble with Google Firebase?

thanks,
David


RE: Xml Browser using Google Firebase - Karl_Yealink - 07-13-2017 08:30 AM

Hi David,

Can you help us to get the trace files, so we can check more.
You will know the method via this FAQ: http://support.yealink.com/faq/faqInfo?id=313


RE: Xml Browser using Google Firebase - Sztaho - 07-14-2017 12:18 PM

Hi Karl,

sure. I attach the exported log files after the error reproduction and I quote part of it where the problem seems to be.

Jul 10 16:31:17 Log [603]: DSSK<6+info > dsskey_onclick!
Jul 10 16:31:17 Log [603]: XMLB<6+info > GetFileName(/tmp/XmlBrowserFile9.xml)
Jul 10 16:31:17 Log [603]: XMLB<6+info > Download Filename is [1][/tmp/XmlBrowserFile9.xml][https://us-central1-voipxml.cloudfunctions.net/retreiveVoipXml]
Jul 10 16:31:17 Log [603]: TASK<6+info > TaskAction_ExecAction 0x2b6aa0
Jul 10 16:31:17 Log [603]: TASK<6+info > post action [0x2b6aa0] to excute
Jul 10 16:31:17 Log [603]: TASK<6+info > TryThreadMessage taskaction is 0x2b6aa0
Jul 10 16:31:17 Log [603]: TASK<6+info > HttpsDownload
Jul 10 16:31:17 Log [603]: TASK<6+info > ssl_trust[0]
Jul 10 16:31:17 Log [603]: UIMG<6+info > CMainWnd::UpdateWnd() begin draw
Jul 10 16:31:17 Log [603]: IDUI<6+info > Show :: UpdateData(IRT_ALL).
Jul 10 16:31:17 Log [603]: IDUI<6+info > UpdateData :: UpdateData iRangeMask(255).
Jul 10 16:31:17 Log [603]: IDUI<6+info > UpdateSoftkey. eState(0).
Jul 10 16:31:17 Log [603]: IDUI<6+info > StateItem.m_nId(0). StateItem.m_strHint(), strNotifyText(), strNotifyIcon().
Jul 10 16:31:17 Log [603]: IDUI<6+info > strFlashIcon(). bFlashText(0), bFlashIcon(0).
Jul 10 16:31:17 Log [603]: IDUI<6+info > PHONE_KEY_HEADSET_CTRL strLineIcon(registed_small.dob) eLineState(2).
Jul 10 16:31:17 Log [603]: IDUI<6+info > Update m_pIconList. ylVecStatusList size(0).
Jul 10 16:31:17 Log [603]: UIMG<6+info > CMainWnd::UpdateWnd() after draw
Jul 10 16:31:17 Log [603]: SCRN<6+info > DEV_MSG_KEY_RELEASED
Jul 10 16:31:17 Log [603]: TASK<6+info > dl_http_recv_to_file: return -3, code_msg : Connect Failed
Jul 10 16:31:17 Log [603]: TASK<6+info > download Fail


thank You,
David


RE: Xml Browser using Google Firebase - Karl_Yealink - 07-17-2017 05:07 PM

(07-14-2017 12:18 PM)Sztaho Wrote:  Hi Karl,

sure. I attach the exported log files after the error reproduction and I quote part of it where the problem seems to be.

Jul 10 16:31:17 Log [603]: DSSK<6+info > dsskey_onclick!
Jul 10 16:31:17 Log [603]: XMLB<6+info > GetFileName(/tmp/XmlBrowserFile9.xml)
Jul 10 16:31:17 Log [603]: XMLB<6+info > Download Filename is [1][/tmp/XmlBrowserFile9.xml][https://us-central1-voipxml.cloudfunctions.net/retreiveVoipXml]
Jul 10 16:31:17 Log [603]: TASK<6+info > TaskAction_ExecAction 0x2b6aa0
Jul 10 16:31:17 Log [603]: TASK<6+info > post action [0x2b6aa0] to excute
Jul 10 16:31:17 Log [603]: TASK<6+info > TryThreadMessage taskaction is 0x2b6aa0
Jul 10 16:31:17 Log [603]: TASK<6+info > HttpsDownload
Jul 10 16:31:17 Log [603]: TASK<6+info > ssl_trust[0]
Jul 10 16:31:17 Log [603]: UIMG<6+info > CMainWnd::UpdateWnd() begin draw
Jul 10 16:31:17 Log [603]: IDUI<6+info > Show :: UpdateData(IRT_ALL).
Jul 10 16:31:17 Log [603]: IDUI<6+info > UpdateData :: UpdateData iRangeMask(255).
Jul 10 16:31:17 Log [603]: IDUI<6+info > UpdateSoftkey. eState(0).
Jul 10 16:31:17 Log [603]: IDUI<6+info > StateItem.m_nId(0). StateItem.m_strHint(), strNotifyText(), strNotifyIcon().
Jul 10 16:31:17 Log [603]: IDUI<6+info > strFlashIcon(). bFlashText(0), bFlashIcon(0).
Jul 10 16:31:17 Log [603]: IDUI<6+info > PHONE_KEY_HEADSET_CTRL strLineIcon(registed_small.dob) eLineState(2).
Jul 10 16:31:17 Log [603]: IDUI<6+info > Update m_pIconList. ylVecStatusList size(0).
Jul 10 16:31:17 Log [603]: UIMG<6+info > CMainWnd::UpdateWnd() after draw
Jul 10 16:31:17 Log [603]: SCRN<6+info > DEV_MSG_KEY_RELEASED
Jul 10 16:31:17 Log [603]: TASK<6+info > dl_http_recv_to_file: return -3, code_msg : Connect Failed
Jul 10 16:31:17 Log [603]: TASK<6+info > download Fail


thank You,
David
Hi David,

I check the PCAP file, I saw the phone send Client hello to server for building up TLS connection, but the server never feedback, it cause connect fail.
Can you check why? And maybe you can using HTTP to try?


RE: Xml Browser using Google Firebase - Sztaho - 07-24-2017 07:25 AM

(07-17-2017 05:07 PM)Karl Wrote:  
(07-14-2017 12:18 PM)Sztaho Wrote:  Hi Karl,

sure. I attach the exported log files after the error reproduction and I quote part of it where the problem seems to be.

Jul 10 16:31:17 Log [603]: DSSK<6+info > dsskey_onclick!
Jul 10 16:31:17 Log [603]: XMLB<6+info > GetFileName(/tmp/XmlBrowserFile9.xml)
Jul 10 16:31:17 Log [603]: XMLB<6+info > Download Filename is [1][/tmp/XmlBrowserFile9.xml][https://us-central1-voipxml.cloudfunctions.net/retreiveVoipXml]
Jul 10 16:31:17 Log [603]: TASK<6+info > TaskAction_ExecAction 0x2b6aa0
Jul 10 16:31:17 Log [603]: TASK<6+info > post action [0x2b6aa0] to excute
Jul 10 16:31:17 Log [603]: TASK<6+info > TryThreadMessage taskaction is 0x2b6aa0
Jul 10 16:31:17 Log [603]: TASK<6+info > HttpsDownload
Jul 10 16:31:17 Log [603]: TASK<6+info > ssl_trust[0]
Jul 10 16:31:17 Log [603]: UIMG<6+info > CMainWnd::UpdateWnd() begin draw
Jul 10 16:31:17 Log [603]: IDUI<6+info > Show :: UpdateData(IRT_ALL).
Jul 10 16:31:17 Log [603]: IDUI<6+info > UpdateData :: UpdateData iRangeMask(255).
Jul 10 16:31:17 Log [603]: IDUI<6+info > UpdateSoftkey. eState(0).
Jul 10 16:31:17 Log [603]: IDUI<6+info > StateItem.m_nId(0). StateItem.m_strHint(), strNotifyText(), strNotifyIcon().
Jul 10 16:31:17 Log [603]: IDUI<6+info > strFlashIcon(). bFlashText(0), bFlashIcon(0).
Jul 10 16:31:17 Log [603]: IDUI<6+info > PHONE_KEY_HEADSET_CTRL strLineIcon(registed_small.dob) eLineState(2).
Jul 10 16:31:17 Log [603]: IDUI<6+info > Update m_pIconList. ylVecStatusList size(0).
Jul 10 16:31:17 Log [603]: UIMG<6+info > CMainWnd::UpdateWnd() after draw
Jul 10 16:31:17 Log [603]: SCRN<6+info > DEV_MSG_KEY_RELEASED
Jul 10 16:31:17 Log [603]: TASK<6+info > dl_http_recv_to_file: return -3, code_msg : Connect Failed
Jul 10 16:31:17 Log [603]: TASK<6+info > download Fail


thank You,
David
Hi David,

I check the PCAP file, I saw the phone send Client hello to server for building up TLS connection, but the server never feedback, it cause connect fail.
Can you check why? And maybe you can using HTTP to try?


Hi Karl,
I have no influence on this part of the server, because it is a Google hosted Firebase server. I don't have any problem with other clients (browser, Fiddler, etc.) All works fine, except the Yealink phone.
Google allows only HTTPS.

thank you,
David


RE: Xml Browser using Google Firebase - Karl_Yealink - 07-25-2017 06:39 AM

(07-24-2017 07:25 AM)Sztaho Wrote:  
(07-17-2017 05:07 PM)Karl Wrote:  
(07-14-2017 12:18 PM)Sztaho Wrote:  Hi Karl,

sure. I attach the exported log files after the error reproduction and I quote part of it where the problem seems to be.

Jul 10 16:31:17 Log [603]: DSSK<6+info > dsskey_onclick!
Jul 10 16:31:17 Log [603]: XMLB<6+info > GetFileName(/tmp/XmlBrowserFile9.xml)
Jul 10 16:31:17 Log [603]: XMLB<6+info > Download Filename is [1][/tmp/XmlBrowserFile9.xml][https://us-central1-voipxml.cloudfunctions.net/retreiveVoipXml]
Jul 10 16:31:17 Log [603]: TASK<6+info > TaskAction_ExecAction 0x2b6aa0
Jul 10 16:31:17 Log [603]: TASK<6+info > post action [0x2b6aa0] to excute
Jul 10 16:31:17 Log [603]: TASK<6+info > TryThreadMessage taskaction is 0x2b6aa0
Jul 10 16:31:17 Log [603]: TASK<6+info > HttpsDownload
Jul 10 16:31:17 Log [603]: TASK<6+info > ssl_trust[0]
Jul 10 16:31:17 Log [603]: UIMG<6+info > CMainWnd::UpdateWnd() begin draw
Jul 10 16:31:17 Log [603]: IDUI<6+info > Show :: UpdateData(IRT_ALL).
Jul 10 16:31:17 Log [603]: IDUI<6+info > UpdateData :: UpdateData iRangeMask(255).
Jul 10 16:31:17 Log [603]: IDUI<6+info > UpdateSoftkey. eState(0).
Jul 10 16:31:17 Log [603]: IDUI<6+info > StateItem.m_nId(0). StateItem.m_strHint(), strNotifyText(), strNotifyIcon().
Jul 10 16:31:17 Log [603]: IDUI<6+info > strFlashIcon(). bFlashText(0), bFlashIcon(0).
Jul 10 16:31:17 Log [603]: IDUI<6+info > PHONE_KEY_HEADSET_CTRL strLineIcon(registed_small.dob) eLineState(2).
Jul 10 16:31:17 Log [603]: IDUI<6+info > Update m_pIconList. ylVecStatusList size(0).
Jul 10 16:31:17 Log [603]: UIMG<6+info > CMainWnd::UpdateWnd() after draw
Jul 10 16:31:17 Log [603]: SCRN<6+info > DEV_MSG_KEY_RELEASED
Jul 10 16:31:17 Log [603]: TASK<6+info > dl_http_recv_to_file: return -3, code_msg : Connect Failed
Jul 10 16:31:17 Log [603]: TASK<6+info > download Fail


thank You,
David
Hi David,

I check the PCAP file, I saw the phone send Client hello to server for building up TLS connection, but the server never feedback, it cause connect fail.
Can you check why? And maybe you can using HTTP to try?


Hi Karl,
I have no influence on this part of the server, because it is a Google hosted Firebase server. I don't have any problem with other clients (browser, Fiddler, etc.) All works fine, except the Yealink phone.
Google allows only HTTPS.

thank you,
David
Hello David,

From current infomation, I can't confirm the cause.
But just suggest upgrading to latest firmware then do a test agian.
Link: http://ftp.yealink.com/?ShareToken=139CC0C4AAE9E08762FED0205CB93FF0E293DA31

The link only has 30 available days.
If new firmwre still can't work, please help us to get trace files agin.
And how many phones in your side now?


RE: Xml Browser using Google Firebase - Sztaho - 08-16-2017 10:16 AM

(07-25-2017 06:39 AM)Karl Wrote:  
(07-24-2017 07:25 AM)Sztaho Wrote:  
(07-17-2017 05:07 PM)Karl Wrote:  
(07-14-2017 12:18 PM)Sztaho Wrote:  Hi Karl,

sure. I attach the exported log files after the error reproduction and I quote part of it where the problem seems to be.

Jul 10 16:31:17 Log [603]: DSSK<6+info > dsskey_onclick!
Jul 10 16:31:17 Log [603]: XMLB<6+info > GetFileName(/tmp/XmlBrowserFile9.xml)
Jul 10 16:31:17 Log [603]: XMLB<6+info > Download Filename is [1][/tmp/XmlBrowserFile9.xml][https://us-central1-voipxml.cloudfunctions.net/retreiveVoipXml]
Jul 10 16:31:17 Log [603]: TASK<6+info > TaskAction_ExecAction 0x2b6aa0
Jul 10 16:31:17 Log [603]: TASK<6+info > post action [0x2b6aa0] to excute
Jul 10 16:31:17 Log [603]: TASK<6+info > TryThreadMessage taskaction is 0x2b6aa0
Jul 10 16:31:17 Log [603]: TASK<6+info > HttpsDownload
Jul 10 16:31:17 Log [603]: TASK<6+info > ssl_trust[0]
Jul 10 16:31:17 Log [603]: UIMG<6+info > CMainWnd::UpdateWnd() begin draw
Jul 10 16:31:17 Log [603]: IDUI<6+info > Show :: UpdateData(IRT_ALL).
Jul 10 16:31:17 Log [603]: IDUI<6+info > UpdateData :: UpdateData iRangeMask(255).
Jul 10 16:31:17 Log [603]: IDUI<6+info > UpdateSoftkey. eState(0).
Jul 10 16:31:17 Log [603]: IDUI<6+info > StateItem.m_nId(0). StateItem.m_strHint(), strNotifyText(), strNotifyIcon().
Jul 10 16:31:17 Log [603]: IDUI<6+info > strFlashIcon(). bFlashText(0), bFlashIcon(0).
Jul 10 16:31:17 Log [603]: IDUI<6+info > PHONE_KEY_HEADSET_CTRL strLineIcon(registed_small.dob) eLineState(2).
Jul 10 16:31:17 Log [603]: IDUI<6+info > Update m_pIconList. ylVecStatusList size(0).
Jul 10 16:31:17 Log [603]: UIMG<6+info > CMainWnd::UpdateWnd() after draw
Jul 10 16:31:17 Log [603]: SCRN<6+info > DEV_MSG_KEY_RELEASED
Jul 10 16:31:17 Log [603]: TASK<6+info > dl_http_recv_to_file: return -3, code_msg : Connect Failed
Jul 10 16:31:17 Log [603]: TASK<6+info > download Fail


thank You,
David
Hi David,

I check the PCAP file, I saw the phone send Client hello to server for building up TLS connection, but the server never feedback, it cause connect fail.
Can you check why? And maybe you can using HTTP to try?


Hi Karl,
I have no influence on this part of the server, because it is a Google hosted Firebase server. I don't have any problem with other clients (browser, Fiddler, etc.) All works fine, except the Yealink phone.
Google allows only HTTPS.

thank you,
David
Hello David,

From current infomation, I can't confirm the cause.
But just suggest upgrading to latest firmware then do a test agian.
Link: http://ftp.yealink.com/?ShareToken=139CC0C4AAE9E08762FED0205CB93FF0E293DA31

The link only has 30 available days.
If new firmwre still can't work, please help us to get trace files agin.
And how many phones in your side now?

Hi Karl,

I updated the firmware of the phone and now it works! Thank you for your help!