Created by: Stuart Gielen on 05-06-2009 06:57:37 AM Hello community, I've got a phone service that agents can subscribe to that stores session variables. When testing the application on a 7960 handset everything works fine; the requests use the session id and the Tomcat server keeps a session alive for each connected phone. But when testing on a 7845 handset a new session is created for each request and data stored in the previous request can't be used. Both phones subscribe to the same service. Have I missed something in configuring the user profiles (agents are using Extension Mobility) or has it something to do with the different models? Has anyone experienced similar issues? Thanks, Stuart.
Subject: RE: How to make the IP phone use the same http session? Replied by: Muhammad Sabir on 05-06-2009 08:11:10 PM We found the same inconsistencies across phone models and firmware and decided to track sessions on the server site. We use IP address of the incoming request to track the session. It is not perfect solution but seems to work.
Subject: RE: How to make the IP phone use the same http session? Replied by: David Staudt on 06-06-2009 02:18:05 AM The 7945 (I assume 7845 is a typo) should store and send cookies just fine, keeping in mind: - Limit of 10 cookies - Limit of 256 byes per cookie - 'New' phones - 7945/7965, etc. - will clear all cookies when the application plane is cleared (note these phones have UI features where the application can stay open 'in the background' while the user tabs back to the call plane to handle call tasks - in which case the cookie is retained.) The previous generation phones - 7940/7960, etc. - would retain the cookie between services sessions. Tracking by IP is probably not a bad solution, as it is likely to be more stable than the cookies' limited 30 minute duration anyway.
Subject: RE: How to make the IP phone use the same http session? Replied by: Stuart Gielen on 09-06-2009 05:06:59 AM Thanks Muhammad and David, I'm now using an extension to IP address mapping if the previously stored session is no longer available. And this works fine. Regards, Stuart.
Subject: RE: How to make the IP phone use the same http session? Replied by: Ronnaret Rueangchinda on 18-06-2009 07:55:52 AM Just simply all request to the phone to contain an identifier.
For sample, if your service is http://192.168.1.2/home.php when the phone request to the server, the server side should check the IP,Ext with a data table, if not exist, insert, if not same Ext but difference IP, update. Then you can use the Ext as the Identifier by adding it to all uri request to the server, such as
<url>192.168.1.2/home.php?ext=123&menu=1</url>
Note that the data table manipulate may take care by pre-import or check on the fly on the first request by send the http request to the phone to ask for the Ext.
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: