06-13-2005 05:55 AM - edited 03-15-2019 03:31 AM
Hi,
How can I obtain the "ModelName" of a IP Phone?
How can I use the "cisco-proprietary Header" variables such as "x-CiscoIPPhoneModelName"?
thx
FX
06-13-2005 06:06 AM
The header is like any other header in an HTTP request. How you access it is dependant on the environment you are developing in.
06-13-2005 06:22 AM
If i sniff the header this variable is not in the header.
But Reading SDK this varible is in the header.
How can i tell the Phone to give me the variable?
Thx
FX
06-13-2005 06:27 AM
It's not in older firmware loads of the phone. What version of CCM are you using?
06-13-2005 06:33 AM
Whoah, looks like I spoke too soon, what firmware version are these headers available in?
06-13-2005 06:44 AM
Sorry "spoke" what does mean?
I'm using release 3.3(4) for SDK document
The header : "Accept: x-CiscoIPPhone/*;version=2.0, text/*" phone modell CP-7960
and CallManager 4.1.3
06-13-2005 06:31 AM
The documentation is wrong, and that header is not available at this time.
There are a number of ways to distinguish phone types... and it depends on what you need to do. The useragent header is different for 7940/7960 and 7970 (Allegro webclient version), so that might provide what you're looking for. Sniff the exchanges and you'll see the differences.
Otherwise you could use the devicelistx report, which identifies the type of the device in the first field (value corresponds to enum field of the typeProduct table from CallManager CCM03xx database).
06-13-2005 06:50 AM
The fact is that:
Some days ago while sniffing i saw a header containig
the informations i need.
I unsed Request.ServerVariables("HTTP_x-CiscoIPPhoneModelName") (usin VBScript) an i was abel tu put on screen the Phone model.
So now I'm not able to do the same thing....
FX
06-13-2005 08:04 AM
That is strange.
However, are you just trying to determine 7970 from the others? I ask this because its a common need, and you can get away with checking for image/png in the accept header, which is only present for the color phones.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide