Originate Action with Hangup event in JAVA AMI SIP

I am using Asterisk Java to make calls to various numbers via SIP channels

originateAction.setChannel(“SIP/10.0.66.118/0900044314”);

But when it comes to event the Channel changes to SIP/10.0.66.118-0000003f

Please suggest how to link the event with the Originate action as in DAHDI it shows channel with called number.

Manager Event is-->org.asteriskjava.manager.event.NewChannelEvent[dateReceived=Tue Jul 21 18:45:14 IST 2015,privilege='call,all',timestamp='null',calleridname='null',uniqueid='1437484937.66',callerid='null',state='null',calleridnum='null',channel='SIP/10.0.66.118-0000003f',systemHashcode=90910501] Manager Event is-->org.asteriskjava.manager.event.NewCallerIdEvent[dateReceived=Tue Jul 21 18:45:14 IST 2015,privilege='call,all',timestamp='null',calleridname='null',uniqueid='1437484937.66',callerid='6131000',cidcallingpres='0',cidcallingprestxt='Presentation Allowed, Not Screened',calleridnum='6131000',channel='SIP/10.0.66.118-0000003f',systemHashcode=473578347] Manager Event is-->org.asteriskjava.manager.event.NewChannelEvent[dateReceived=Tue Jul 21 18:45:15 IST 2015,privilege='call,all',timestamp='null',calleridname='null',uniqueid='1437484938.67',callerid='null',state='null',calleridnum='null',channel='SIP/10.0.66.118-00000040',systemHashcode=856882247] Manager Event is-->org.asteriskjava.manager.event.NewCallerIdEvent[dateReceived=Tue Jul 21 18:45:15 IST 2015,privilege='call,all',timestamp='null',calleridname='null',uniqueid='1437484938.67',callerid='6131000',cidcallingpres='0',cidcallingprestxt='Presentation Allowed, Not Screened',calleridnum='6131000',channel='SIP/10.0.66.118-00000040',systemHashcode=594588547] Manager Event is-->org.asteriskjava.manager.event.NewStateEvent[dateReceived=Tue Jul 21 18:45:18 IST 2015,privilege='call,all',timestamp='null',calleridname='null',uniqueid='1437484937.66',callerid='6131000',state='null',calleridnum='6131000',channel='SIP/10.0.66.118-0000003f',systemHashcode=703599489] Manager Event is-->org.asteriskjava.manager.event.HangupEvent[dateReceived=Tue Jul 21 18:45:44 IST 2015,privilege='call,all',timestamp='null',calleridname='<unknown>',uniqueid='1437484937.66',callerid='6131000',causetxt='User alerting, no answer',cause='19',state='null',calleridnum='6131000',channel='SIP/10.0.66.118-0000003f',systemHashcode=1275756078] Manager Event is-->org.asteriskjava.manager.event.OriginateResponseEvent[dateReceived=Tue Jul 21 18:45:44 IST 2015,privilege='call,all',reason='3',response='Failure',calleridname='<unknown>',timestamp='null',uniqueid='<null>',actionid='null',internalactionid='498357308_6',context='from-pstn',exten='84',calleridnum='6131000',channel='SIP/10.0.66.118/08755862255',systemHashcode=771938640] Manager Event is-->org.asteriskjava.manager.event.HangupEvent[dateReceived=Tue Jul 21 18:45:45 IST 2015,privilege='call,all',timestamp='null',calleridname='<unknown>',uniqueid='1437484938.67',callerid='6131000',causetxt='User alerting, no answer',cause='19',state='null',calleridnum='6131000',channel='SIP/10.0.66.118-00000040',systemHashcode=1024010953] Manager Event is-->org.asteriskjava.manager.event.OriginateResponseEvent[dateReceived=Tue Jul 21 18:45:45 IST 2015,privilege='call,all',reason='3',response='Failure',calleridname='<unknown>',timestamp='null',uniqueid='<null>',actionid='null',internalactionid='1655137665_6',context='from-pstn',exten='5',calleridnum='6131000',channel='SIP/10.0.66.118/09910044314',systemHashcode=618140013] Manager Event is-->org.asteriskjava.manager.event.RegistryEvent[dateReceived=Tue Jul 21 18:47:34 IST 2015,privilege='system,all',timestamp='null',username='6131000',cause='null',channeldriver='null',status='Registered',domain='10.0.66.118',channel='null',systemHashcode=156354047]

Using either the channel name or the unique ID returned in the response to the originate.

Note that the two channels are no t the same sort of entity. The first is really a technology/resource address and the second is a channel instance. It looks like originate inherited the confusing first definition from circuit switched usage, where there can be a 1:1 connection.

I tried to get the UniqueId from Originate Action so that I can match it with event but unique id is null in response

[code] OriginateAction originateAction;
ManagerResponse originateResponse = null;
String f=filename.substring(0,filename.indexOf(".mp3"));
try {
originateAction = new OriginateAction();
originateAction.setChannel(msisdn);
originateAction.setContext(“from-pstn”);

        originateAction.setCallerId("1203370900");
        originateAction.setAsync(true);
        Random rnd = new Random();
        originateAction.setAccount(campaign_id);
        originateAction.setExten(Integer.toString(rnd.nextInt(99)));
        originateAction.setPriority(new Integer(1));
        originateAction.setVariable("filename","/home/project/upload/kisaan/"+f);
      
        managerConnection.login();
       managerConnection.setSocketReadTimeout(new Integer(60000));
        managerConnection.setSocketTimeout(new Integer(60000));
       
        originateResponse = managerConnection.sendAction(originateAction,60000);
        System.out.print("O Response is --> "+originateResponse.getUniqueId());
        managerConnection.logoff();

}[/code]…
----------Java Output ------------------------------
O Response is --> null

Please suggest what I am missing