[Asterisk-java-devel] Unique-id is null in OriginateAction response
Brought to you by:
srt
From: Sourabh R. J. <sou...@im...> - 2008-06-03 06:48:32
|
Hi, Can someone help me in finding the solution of the below problem? I am referring asterisk-java-1.0 API and asterisk-1.6 version. Problem statement My Java application (using manager connection of asterisk-java) is trying to make a outbound call to an agent say 'x'. Now when 'x' picked the call application received the "NewChannelEvent", but, there is no way application can identify for whom this event belongs (caller-id is blocked or not set) Work around on some possible solution 1. On reading the asterisk-java API docs, it suggests that unique-id is return for OriginateAction response. I tried to connect to an extension using the synchronous OriginateAction call. But, in response for the above action, the getUniqueId<http://asterisk-java.org/development/apidocs/org/asteriskjava/manager/response/ManagerResponse.html#getUniqueId()>()is returning null. * Is this the flaw with the asterisk server or the library is not able to receive the unique-id -? * Does it work with the older version of asterisk and asterisk-java library-? 2. Alternatively, I can think of setting some variables while originating the action. * But, asterisk-java-1.0 library doesn’t support the VarSet event sent by asterisk server. * Is there any plan to change/upgrade the library for the same? I appreciate, if anyone can suggest some way around to crack the problem. Thanks & Regards, Sourabh Jain | Senior Software Engineer | Impetus InfoTech ( India) Pvt. Ltd. (M) +919926083810 (O) +917314269259 |