Yealink Forums
Action URL entry is causing a "File Format Error" - Printable Version

+- Yealink Forums (http://forum.yealink.com/forum)
+-- Forum: IP Phone Series (/forumdisplay.php?fid=4)
+--- Forum: Phone specific topic (/forumdisplay.php?fid=12)
+---- Forum: T3xP Series (/forumdisplay.php?fid=22)
+---- Thread: Action URL entry is causing a "File Format Error" (/showthread.php?tid=3127)



Action URL entry is causing a "File Format Error" - lazlototh - 01-12-2015 06:45 AM

Model: T38G
Firmware Version: 38.70.1.33
Hardware Version: 21.2.3.160.0.0.0

When I enter the following Action URL's my phone returns a File Format Error.

Can you please tell me how I can correct this problem?

Code:
http://192.168.1.112:8080/offhook/yealink?device=$mac&local=$local&model=$model&firmware=$firmware
http://192.168.1.112:8080/onhook/yealink?device=$mac&local=$local
http://192.168.1.112:8080/incomingcall/yealink?device=$mac&local=$local&remote=$remote&displayremote=$display_remote
http://192.168.1.112:8080/outgoingcall/yealink?device=$mac&local=$local&remote=$remote&displayremote=$display_remote
http://192.168.1.112:8080/callestablished/yealink?&device=$mac&local=$local
http://192.168.1.112:8080/callterminated/yealink?device=$mac&local=$local



RE: Action URL entry is causing a "File Format Error" - CWR - 01-13-2015 02:39 AM

I think seeing the file on your server at 192.168.1.112:8080 would be helpful to help diagnose.


RE: Action URL entry is causing a "File Format Error" - lazlototh - 01-13-2015 05:25 AM

(01-13-2015 02:39 AM)craigreilly Wrote:  I think seeing the file on your server at 192.168.1.112:8080 would be helpful to help diagnose.

Okay, how would I go about showing that to you?


RE: Action URL entry is causing a "File Format Error" - CWR - 01-13-2015 06:18 AM

You enter IP of 192.168.1.112 and expect something to happen, correct?
What is running at 192.168.1.112 that will process the data you send (parameters) and send information back to you?


RE: Action URL entry is causing a "File Format Error" - lazlototh - 01-13-2015 07:34 PM

I am trying to use an app called "Phone Amego" to control my Yealink phone. Everything seems to be working with the exception of seeing a "File Format Error" warning that keeps popping up on my phone. The error message pops up on my phone whenever I lift the receiver off of the phone or whenever I execute a command from the software. If I quit the software and lift the receiver the errors stop.

I started this thread in the Phone Amego forum (http://goo.gl/ALXVtF) and the developer suggested that the solution to the problem that I am experiencing could be found here in this Yealink forum thread (http://goo.gl/NvIfdn).

Unfortunately the thread that he directed me to is about a clear as mud. The examples that are given in the thread do not seem applicable to the code examples that I posted above.

NOTE: The code that I am entering into the Action URL's on my phone is being generated by the Phone Amego application. I am simply copying an pasting the URL's into my phone.

I am guessing that the format of the URL's are outdated due to a change in the phone's firmware.

[Image: 16269980132_28274442b1_o.png]


RE: Action URL entry is causing a "File Format Error" - CWR - 01-14-2015 12:00 AM

These commands - Action URL - are from the Phone to the Amego app. This is simply the phone telling the software it is doing something. The error seems to be thrown when you try to do something in the software to control the phone. Those are known as Action URI's.

The command to dial the phone from a web browser or other software would be similar to this:
http://username:password@phoneip/cgi-bin/cgiServer.exx?number=$toNumber

(This command may have changed. I do not use these commands anymore)


RE: Action URL entry is causing a "File Format Error" - lazlototh - 01-14-2015 12:26 AM

(01-14-2015 12:00 AM)craigreilly Wrote:  These commands - Action URL - are from the Phone to the Amego app. This is simply the phone telling the software it is doing something. The error seems to be thrown when you try to do something in the software to control the phone. Those are known as Action URI's.

The command to dial the phone from a web browser or other software would be similar to this:
http://username:password@phoneip/cgi-bin/cgiServer.exx?number=$toNumber

(This command may have changed. I do not use these commands anymore)

There is something about how those URL commands are formatted that the phone does not like. I am guessing that it's due to a firmware update and the format has changed. Like I said, the commands are working with the "Phone Amego" software, and if I never looked at the LCD display on the phone I probably would not know that there was a problem.


RE: Action URL entry is causing a "File Format Error" - CWR - 01-14-2015 05:58 AM

Those URLs you showed me are not making a call... they send a command to the software from the phone.


RE: Action URL entry is causing a "File Format Error" - psichel - 01-25-2015 12:17 AM

We did ultimately find a fix for this. Instead of responding normally to the HTTP GET Action URI, I changed Phone Amego to just close the connection. No more "File format error!"

Enjoy!