Cisco Unified Application Environment Developer Forums

« Back to Developers

[Etch] IncomingCall Problem

Combination View Flat View Tree View
Threads [ Previous | Next ]
Hi all
 
I m trying for IncomingCall event in Etch but its not invoking.......i hav registered my device for jtapi.
 
my code
 
public override void incomingCall(string sessionId, IncomingCallOptions options)
        {
            Console.WriteLine("Incoming Call Started...........");
            fromNumber = options.from.ToString();
            toNumber = options.to.ToString();
            Console.WriteLine("Call From " + fromNumber + "to " + toNumber);
            server.logWrite(LogLevel.ERROR, "Call From " + fromNumber + "to " + toNumber);

            // server.removeCuaeSession(sessionId);


        }
 
plzzzzz reply asap..................

Hi Jolly,
 
The code looks perfect. Basically if I understand properly I am assuming that the first log which you are writting "Incoming Call Started.." itself is not coming. This generally happens when the application is not registered with the CUAE when you trigger your application. In your MainProjectFile.cs file are you need to do
 
String key = server.registerApplication("<ApplicationName>", "Default", "<username>", "<password>");
You can check the output value of key by writing it to console.
 
Few things to take care here is to have the application name and Default in the same case as it is displayed in the List Applications. Here 'Default' is the partition name and its starts with D in uppercase.
 
If all these things are properly entered and you get a key value and after that the application in the List application shows as Enabled and Running status as Yes. Then the incoming call code should get invoked.
 
Thanks
Nabhonil