Re: [Asterisk-java-users] Receive Voicemail event
Brought to you by:
srt
From: Daniele R. <dan...@gm...> - 2013-01-15 23:11:12
|
Unfortunally the internalactionid is not present in the table of mysql :-( See here: http://www.voip-info.org/wiki/view/Asterisk+Voicemail+ODBC+storage I have already see the origtime but unfortunally the time that asterisk java send to me is different from that is store on db. So seems to not be a manner to mach the voicemail. I need the attachment .wav that is stored on the db; there is no way to have it in Java. Thanks 2013/1/16 Richard Lavoie <lav...@gm...> > What about the internalactionid ? > > Otherwise use the timestamp and the user to reteieve it from the db, I > honnestly doubt you'll receive 2 calls at the exact same time. > > > On 2013-01-15, at 17:19, Daniele Renda <dan...@gm...> wrote: > > Hi, > after some tests I reach this status: > -I added a listener to my managerConnection, I catch the > MessageWaitingEvent > -Where I catch MessageWaitingEvent i run: > VoicemailUsersListAction voicemailList = new > VoicemailUsersListAction(); > managerConnection.sendAction(voicemailList); > -Then I catch the VoicemailUserEntryEvent but when I print the > informations about the voicemail I can't see any information that can give > me the msg_id of the voicemail received. > This is the log of the event received: > 15/01/2013 23:15:09 DEBUG AsteriskManager:168 - > org.asteriskjava.manager.event.VoicemailUserEntryEvent[dateReceived='Tue > Jan 15 23:15:09 CET > 2013',maxmessagecount='100',sequencenumber=null,oldmessagecount=null,maxmessagelength='0',timestamp=null,actionid=null,timezone='it',attachmentformat=null,newmessagecount='1',volumegain='0.0',imapuser=null,vmcontext='default',fullname='100',voicemailbox='100',pager=null,saydurationminimum='2',calloperator='false',mailcommand='/usr/sbin/sendmail > -t',serveremail='asterisk',sayenvelope='true',attachmessage='true',deletemessage='false',canreview='false',uniqueid=null,internalactionid='962420767_21',email=null,dialout=null,exitcontext=null,callback=null,server=null,language=null,saycid='false',systemHashcode=729217986] > > I cant' see anything that can help me to get the unique id of the message > that I need to retrieve from the db where I save that. > > I can do that with Asterisk Java? > > Thanks! > > > 2013/1/15 Daniele Renda <dan...@gm...> > >> Oh sorry, >> I realize that there is MessageWaitingEvent. This is what I need. >> >> Thanks! >> >> >> 2013/1/15 Daniele Renda <dan...@gm...> >> >>> Hi Miguel, >>> thanks for your reply. I have a ManagerEventListener added to my >>> managerConnection and I need to receive a notification when an user leave a >>> voicemail. >>> In your links seems that I've to send a request in order to receive a >>> response about voicemail. >>> >>> Any suggestion? >>> >>> Thanks very much >>> >>> Daniele >>> >>> 2013/1/15 Miguel Santiago <m.s...@gm...> >>> >>>> VoicemailUserEntryEvent >>> >>> >>> >>> >>> >>> -- >>> Daniele Renda >>> >> >> >> >> -- >> Daniele Renda >> > > > > -- > Daniele Renda > > > ------------------------------------------------------------------------------ > > Master SQL Server Development, Administration, T-SQL, SSAS, SSIS, SSRS > and more. Get SQL Server skills now (including 2012) with LearnDevNow - > 200+ hours of step-by-step video tutorials by Microsoft MVPs and experts. > SALE $99.99 this month only - learn more at: > http://p.sf.net/sfu/learnmore_122512 > > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > > > ------------------------------------------------------------------------------ > Master SQL Server Development, Administration, T-SQL, SSAS, SSIS, SSRS > and more. Get SQL Server skills now (including 2012) with LearnDevNow - > 200+ hours of step-by-step video tutorials by Microsoft MVPs and experts. > SALE $99.99 this month only - learn more at: > http://p.sf.net/sfu/learnmore_122512 > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > -- Daniele Renda |