Re: [Asterisk-java-devel] Unique-id is null in OriginateAction response
Brought to you by:
srt
From: Martin S. <ma...@be...> - 2008-06-03 18:02:14
|
Hello Sourabh, Are you setting the UniqueId on the OriginateAction, before sending it? Can we see a snippet of your code or a simplistic example what is breaking? If they don't make it obvious, a trace of the conversation would be perfect. If you're not sure how to do that, even a capture from Wireshark would help. Cheers, Martin Smith, Systems Developer ma...@be... Bureau of Economic and Business Research University of Florida (352) 392-0171 Ext. 221 ________________________________ From: ast...@li... [mailto:ast...@li...] On Behalf Of Sourabh R. Jain Sent: Tuesday, June 03, 2008 2:47 AM To: ast...@li... Subject: [Asterisk-java-devel] Unique-id is null in OriginateAction response 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/r esponse/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 |