Jump to content

PBXnSIP Web Server file hosting


jlumby

Recommended Posts

I was wondering if there was a folder I could put files into so that they would be accessible by all phones via HTTP. I am trying to make images available to phones. Currently I need to install IIS on an alternate port to do so. I need to leave PBXnSIP running on 80 for the few snom phones on my network since they will not get their info via https. I have tried putting my files in the html folder, however if I am not already logged in, it redirects to the login screen, and does not give the graphic.

Link to comment
Share on other sites

I was wondering if there was a folder I could put files into so that they would be accessible by all phones via HTTP. I am trying to make images available to phones. Currently I need to install IIS on an alternate port to do so. I need to leave PBXnSIP running on 80 for the few snom phones on my network since they will not get their info via https. I have tried putting my files in the html folder, however if I am not already logged in, it redirects to the login screen, and does not give the graphic.

 

You can put the files into the tftp directory. Then you can access them with http://<ip-adr>/tftp/filename.

 

No need to run IIS for that.

Link to comment
Share on other sites

  • 4 weeks later...

This works without the authentication problem that I was having when using the HTML folder, however some phones send additional info in the url that causes your web server to return a 404 error. IIS ignores the additional info. The following is the get command from a packet capture.

 

GET /services.xml?locale=English_United_States&name=SEP00070E16446E HTTP/1.1\r\n

 

Is there any way to allow your built in web server to allow this, and ignore everything after the ? since I am not utilizing the different localles

Link to comment
Share on other sites

This works without the authentication problem that I was having when using the HTML folder, however some phones send additional info in the url that causes your web server to return a 404 error. IIS ignores the additional info. The following is the get command from a packet capture.

 

GET /services.xml?locale=English_United_States&name=SEP00070E16446E HTTP/1.1\r\n

 

Is there any way to allow your built in web server to allow this, and ignore everything after the ? since I am not utilizing the different localles

 

I guess from the MAC address this is a Cisco phone...

 

The filename never contains the parameters after the question mark, the PBX does that part right. But because there is no path in front of the "services.xml", the PBX thinks that this file is for the user-interface of the PBX, not the provisioning part.

 

Usually there is a way to tell the phone from where to fetch the information. If you find any way to provision something like "/provisioning/services.xml?..." then life will be a lot easier.

Link to comment
Share on other sites

Ok, to eliminate variables, and gain more insight than I would have on the phone's interface, I ran the same test from Internet explorer. When I enter the following:

 

http://ip_of_Pbxnsip/tftp/services.xml

It successfully returns the document to internet explorer.

 

When I enter:

http://ip_of_Pbxnsip/tftp/services.xml?loc...SEP00070E16446E

It returns:

File services.xml?locale=English_United_States&name=SEP00070E16446E not found

Please ask your system administrator to check the log file.

 

It is taking the ? and everything after as the file name.

Link to comment
Share on other sites

Ok, to eliminate variables, and gain more insight than I would have on the phone's interface, I ran the same test from Internet explorer. When I enter the following:

 

http://ip_of_Pbxnsip/tftp/services.xml

It successfully returns the document to internet explorer.

 

When I enter:

http://ip_of_Pbxnsip/tftp/services.xml?loc...SEP00070E16446E

It returns:

File services.xml?locale=English_United_States&name=SEP00070E16446E not found

Please ask your system administrator to check the log file.

 

It is taking the ? and everything after as the file name.

 

Eeeh, okay, that is probably really a bug in the PBX. It does include the stuff after the question mark when checking the file name. Will be corrected in 3.0.0.2989, http://www.pbxnsip.com/protect/pbxctrl-3.0.0.2989.exe.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...