« Back to IP Phone Services Questions

RE: IP Phone service not working on 9971

Combination View Flat View Tree View
Threads [ Previous | Next ]
Hi everyone,
We have a custom directory service that is working fine on 6941 and 8945 but we have problems when with 9971.
Whenever I make a search in the directory service with no criterias given (no name, no surname, nothing) I always get a "HTTP Error [500]!" error. 
Where can I start to look for the problem? 
Thanks for your help.
Levent

try with a packet capture with wireshark or so to see what is communicated
between phone and webserver


On Tue, Feb 26, 2013 at 4:56 AM, Cisco Developer Community Forums <
cdicuser@developer.cisco.com> wrote:

> Levent Ozturk has created a new message in the forum "IP Phone Services
> Questions": --------------------------------------------------------------
> Hi everyone,
> We have a custom directory service that is working fine on 6941 and 8945
> but we have problems when with 9971.
> Whenever I make a search in the directory service with no criterias given
> (no name, no surname, nothing) I always get a "HTTP Error [500]!" error.
> Where can I start to look for the problem?
> Thanks for your help.
> Levent
> --
> To respond to this post, please click the following link:
> http://developer.cisco.com/web/ipps/community/-/message_boards/view_message/12353134or simply reply to this email.

 
Hi,  500 means "Internal server error". It looks your web application has a problem to serve the phones request. Try to check logs on the server (eventlog, ...).
Mirek

Some models handle un-specified input values differently.  For example, with a input fields 'requiredValue' and 'optionalValue', if the user submits the screen without putting anything into the optional field, the phone may request either:
GET /myService?requiredValue=something&optionalValue=
or
GET /myService?requiredValue=something

This makes a difference in the server-side script, as 'if (optionalValue=="")' might work for the former, but won't for the latter (the optionalValue param was never received and is 'undefined'.)  You will want to check if optionalValue!=undefined before assuming it has any value (including empty string)

Hi David,
Can we check if optionalValue!=undefined before assuming it has any value (including empty string) on call manager? (We enabled debug on IIS but did not receive any request.)
Thanks

The behaviour is phone/firmware specific and not configurable.  Just a guess as to whether this is the actual problem.  We can perhaps gain some more insight by comparing a network packet capture of a working vs non-working phone - and of course identifying the nature of the failure in the application script (on IIS?) would be the primary troubleshooting avenue.

Hi David,
I captured working and non-working phones packets. I discovered that if I didn't give any value, phone makes GET requests without adding parameters, so I get http 500 error.
Working phone (6941): GET /PhoneService.asmx/GetPhoneBookResGM?firstname=&lastname=&title=&departmentname= HTTP/1.1
 
Non-working phone (9971): GET /PhoneService.asmx/GetPhoneBookResGM HTTP/1.1
HTTP/1.1 500 Internal Server Error
Missing parameter: firstname.

Yep, so your script will need to handle this possibility, i.e. parameter being missing results in the same script action as if parameter is missing but null/empty