[Asterisk-java-devel] ParkedCallsComplete generated events in manager
Brought to you by:
srt
From: Luca N. <l.n...@my...> - 2014-06-17 08:03:33
|
Hi there! In my project i have necessity to call my asterisk server to have a list of the parked channels. I understood that a ParkedCallsAction generates n ParkedCallEvents where n is the number of parked channels, following a ParkedCallsComplete event. Everything works just as expected, except for the fact that i can't catch these ParkedCallEvent in my events listener. This is a log for a normal ParkedCallEvent (i can see this event in my listener): Dispatching event: org.asteriskjava.manager.event.ParkedCallEvent[dateReceived='Mon Jun 16 15:08:57 CEST 2014',privilege='call,all',callerid=null,sequencenumber=null,from='SIP/1078-000000b3',calleridname='1078',timestamp=null,uniqueid='palermo-1402924150.275',exten='1',parkinglot='default',server=null,calleridnum=null,channel='SIP/1078-000000b3',timeout='1200',systemHashcode=662570926]DEBUG And this is a log for a ParkedCallsAction generated ParkedCallEvent (no trace of this event in my listener): Dispatching event: org.asteriskjava.manager.event.ParkedCallEvent[dateReceived='Mon Jun 16 15:09:00 CEST 2014',callerid=null,sequencenumber=null,from='SIP/1078-000000b3',calleridname='1078',timestamp=null,uniqueid=null,exten='1',parkinglot='default',server=null,calleridnum=null,channel='SIP/1078-000000b3',timeout='1196',systemHashcode=421189702] Major difference being that in the second case there is no privilege value. Is there a way i can catch these events in my listener? Or, is there a fastest way to have a list of the currently parked channels by request using the AMI? Thank you all :) -- Luca |