cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2144
Views
20
Helpful
38
Replies

How to get the ANI in a service ?

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

38 Replies 38

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

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

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

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

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

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

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

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

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