04-18-2003 12:10 AM - edited 03-12-2019 11:31 PM
Hi !
I have to develop a service which displays the name of the caller during a call
To do this, I must have the ANI but I don't know how ?!
(My service is developed in Java - Servlet - )
Perhaps there is an "option" in the call manager to setup the variable ANI in the request to the service ?
If you have an idea ... thanks you in advance !
Thierry
07-28-2003 08:40 AM
Hi,
After you install the SDK v3.3 for phone services from the link:
http://www.cisco.com/cgi-bin/dev_support/access_level/product_support
go to
c:\CiscoIpServices\JSP\callerinfo
07-27-2003 11:10 PM
Hi Jochen,
I am blocked : I need to push info on the display of the IP Phone but I don't know how ?!
I think I put my code here not ?
I will check it
07-28-2003 12:10 AM
ok, guys!
i got it! i have the callerid in jtapi and push it with an httpurlconnection to my .asp file! but you have to mention explicit, that it is an post and not a get!
ok, thierry, we both have the same prob! how to push the info's to the phone!
i hope to solve this prob this week, because i'm in holiday for the next three weeks :-)
jochen
07-28-2003 09:01 AM
hi Jrachut
The new SDK 3.3 is the answer to all your problems.
But there lots of ways in doing the same, I think.
I don't know if your using JSPs?
But I'm still trying to figure out how to put JTAPI to work, and install tomcat. I'm not seeing nothing work, this is no fun...
I found another site form www.iptnetworkers.com, I'm Gugo.
Hugo
07-28-2003 09:17 AM
Hi
I not sure but isn't possible...
if you have the caller_ID on a variable in ASP, istn't possible to do something like:
var xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
pushxml = "
pushxml = "XML=" + Server.URLEncode(pushxml);
xmlhttp.Open("POST", "http://" + phoneIP + "/CGI/Execute", false);
xmlhttp.setRequestHeader("Authorization", "Basic " + authstring);
xmlhttp.setRequestHeader("Connection", "close");
xmlhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
xmlhttp.Send(pushxml);
--------------------------------------------
and if value of the callerID is in Java:
String xml = "
"
"";
CiscoTerminal ct = (CiscoTerminal) conns[1].getTerminalConnections()[
0].getTerminal();
try {
// DEBUG code
System.out.println("SENDING:" + xml + " \r\n to phone " +
ct.getName());
ct.sendData(xml);
}
catch (Exception e) {
System.out.println(e);
this is in the new SDK 3.3
I don't know much.
But I have tried in ASP the XML object execute and seen that It can send info to the Phone by a URL.
just trying to help,
Hugo
07-30-2003 07:00 AM
Hi Hugo,
I installed the new JTAPI and
I tried to use the sendData but
In the javadoc of the CiscoTerminal class,
the are only 2 states :
IN_SERVICE and OUT_OF_SERVICE
and in the description of the sendData method, they said :
CiscoTerminal must be in the CiscoTerminal.REGISTERED state, its Provider must be in the Provider.IN_SERVICE state.
...
???
do you have an idea ? I didn't find any REGISTERED state ...
Thanks in advance
Thierry
07-31-2003 09:09 AM
Hi thierry,
I'm also trying out the Java classes from the SDK 3.3.
I had a problem today with the media terminal, the problem was I had to make a device association with a user.
I also discover that I couldn't connect to the provider because I need to use JDK 1.1.x or JDK 1.2.
because I'm using a callManager 3.1.
I haven't installed TOMCAT, have you?
Is it easy?
thanks for your help,
Hugo
08-04-2003 02:18 AM
Hi Thierry,
Sorry I can't help because,I'm using a callManager 3.1 so I don't have the new JTAPI.jar.
so I have to put in comments ct.sendData(xml);
else gives me the error:
Error #: 300 : method sendData(java.lang.String) not found in interface com.cisco.jtapi.extensions.CiscoTerminal
Hugo
10-02-2003 05:58 AM
Hi,
This is me...
I was on holiday for a long time and now I come back :/
Do you find something to push text on the phone ?
Thanks
Thierry
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