asterisk-java-users Mailing List for Asterisk-Java Library (Page 20)
Brought to you by:
srt
You can subscribe to this list here.
2005 |
Jan
|
Feb
(8) |
Mar
(33) |
Apr
(36) |
May
(19) |
Jun
(21) |
Jul
(53) |
Aug
(30) |
Sep
(36) |
Oct
(34) |
Nov
(43) |
Dec
(72) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2006 |
Jan
(123) |
Feb
(75) |
Mar
(86) |
Apr
(46) |
May
(41) |
Jun
(29) |
Jul
(76) |
Aug
(38) |
Sep
(39) |
Oct
(68) |
Nov
(16) |
Dec
(17) |
2007 |
Jan
(34) |
Feb
(18) |
Mar
(39) |
Apr
(30) |
May
(20) |
Jun
(10) |
Jul
(59) |
Aug
(54) |
Sep
(60) |
Oct
(22) |
Nov
(14) |
Dec
(10) |
2008 |
Jan
(34) |
Feb
(67) |
Mar
(65) |
Apr
(67) |
May
(60) |
Jun
(51) |
Jul
(88) |
Aug
(75) |
Sep
(47) |
Oct
(143) |
Nov
(54) |
Dec
(42) |
2009 |
Jan
(46) |
Feb
(80) |
Mar
(162) |
Apr
(159) |
May
(200) |
Jun
(34) |
Jul
(46) |
Aug
(59) |
Sep
(5) |
Oct
(35) |
Nov
(73) |
Dec
(30) |
2010 |
Jan
(23) |
Feb
(50) |
Mar
(8) |
Apr
(24) |
May
(19) |
Jun
(49) |
Jul
(56) |
Aug
(35) |
Sep
(26) |
Oct
(79) |
Nov
(39) |
Dec
(34) |
2011 |
Jan
(27) |
Feb
(22) |
Mar
(28) |
Apr
(12) |
May
(16) |
Jun
(19) |
Jul
(1) |
Aug
(64) |
Sep
(19) |
Oct
(11) |
Nov
(17) |
Dec
(12) |
2012 |
Jan
(6) |
Feb
(8) |
Mar
(15) |
Apr
(43) |
May
(41) |
Jun
(14) |
Jul
(32) |
Aug
(3) |
Sep
(4) |
Oct
(7) |
Nov
(11) |
Dec
(11) |
2013 |
Jan
(35) |
Feb
(11) |
Mar
(23) |
Apr
(25) |
May
(37) |
Jun
(47) |
Jul
(25) |
Aug
(21) |
Sep
|
Oct
(1) |
Nov
(9) |
Dec
|
2014 |
Jan
(26) |
Feb
(2) |
Mar
(18) |
Apr
(41) |
May
(7) |
Jun
(7) |
Jul
(24) |
Aug
(5) |
Sep
(6) |
Oct
(8) |
Nov
(9) |
Dec
(7) |
2015 |
Jan
(7) |
Feb
(15) |
Mar
(8) |
Apr
(12) |
May
(7) |
Jun
|
Jul
|
Aug
(5) |
Sep
(1) |
Oct
(3) |
Nov
(30) |
Dec
(3) |
2016 |
Jan
(1) |
Feb
|
Mar
(2) |
Apr
|
May
(9) |
Jun
|
Jul
|
Aug
(3) |
Sep
|
Oct
|
Nov
|
Dec
|
2017 |
Jan
|
Feb
|
Mar
(3) |
Apr
|
May
|
Jun
|
Jul
|
Aug
(1) |
Sep
(2) |
Oct
|
Nov
|
Dec
|
2018 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(8) |
Dec
(4) |
2019 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
|
2020 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(2) |
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Yves A. <yv...@gm...> - 2013-02-05 22:19:46
|
Hello mohsen, for some events to occur, you have to configure asterisk to fire them... take a look in your manager.conf and sip.conf for appropriate settings. e.g. if sip.conf contains the line callevents=yes regards, yves Am 05.02.2013 14:30, schrieb MT: > Hi everyone, > > I can't get MusicOnHoldEvent in handleEvent method but I can see > org.asteriskjava.manager.event.MusicOnHoldEvent when I use > onManagerEvent method. > I can get another events > like: HangupEvent,NewStateEvent,PeerStatusEvent,QueueMemberPausedEvent,... > but can't get MusicOnHoldEvent,HoldedCallEvent,HoldEvent > > this is my code: > > public class Monitor extends AbstractManagerEventListener { > > private ManagerConnection managerConnection; > > public Monitor() throws IOException { > > ManagerConnectionFactory factory = new > ManagerConnectionFactory('manager_host', 'manager_user', 'manager_pass'); > > this.managerConnection = factory.createManagerConnection(); > } > > public void run() throws IOException, AuthenticationFailedException, > TimeoutException, InterruptedException { > managerConnection.addEventListener(this); > managerConnection.login(); > > Thread.sleep(new Long(1000000000)); > } > > public static void main(String[] args) throws Exception { > Monitor helloEvents; > > helloEvents = new Monitor(); > helloEvents.run(); > } > > // when I uncomment following method I can see > org.asteriskjava.manager.event.MusicOnHoldEvent > // public void onManagerEvent(ManagerEvent event) { > // System.out.println("new Manager Event: "+event); > // } > > protected void handleEvent(HangupEvent event) { > System.out.println("Hangup Event"); > } > > protected void handleEvent(NewStateEvent event) { > System.out.println("New State Event"); > } > > // ... also another events works fine like I said above but music on > hold event does not work > > protected void handleEvent(MusicOnHoldEvent event) { > System.out.println("Music On Hold Event"); > } > } > > > I don't know what to do, please help me :( > > mohsen > > > > > ------------------------------------------------------------------------------ > Free Next-Gen Firewall Hardware Offer > Buy your Sophos next-gen firewall before the end March 2013 > and get the hardware for free! Learn more. > http://p.sf.net/sfu/sophos-d2d-feb > > > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users |
From: MT <moh...@gm...> - 2013-02-05 13:30:51
|
Hi everyone, I can't get MusicOnHoldEvent in handleEvent method but I can see org.asteriskjava.manager.event.MusicOnHoldEvent when I use onManagerEvent method. I can get another events like: HangupEvent,NewStateEvent,PeerStatusEvent,QueueMemberPausedEvent,... but can't get MusicOnHoldEvent,HoldedCallEvent,HoldEvent this is my code: public class Monitor extends AbstractManagerEventListener { private ManagerConnection managerConnection; public Monitor() throws IOException { ManagerConnectionFactory factory = new ManagerConnectionFactory('manager_host', 'manager_user', 'manager_pass'); this.managerConnection = factory.createManagerConnection(); } public void run() throws IOException, AuthenticationFailedException, TimeoutException, InterruptedException { managerConnection.addEventListener(this); managerConnection.login(); Thread.sleep(new Long(1000000000)); } public static void main(String[] args) throws Exception { Monitor helloEvents; helloEvents = new Monitor(); helloEvents.run(); } // when I uncomment following method I can see org.asteriskjava.manager.event.MusicOnHoldEvent // public void onManagerEvent(ManagerEvent event) { // System.out.println("new Manager Event: "+event); // } protected void handleEvent(HangupEvent event) { System.out.println("Hangup Event"); } protected void handleEvent(NewStateEvent event) { System.out.println("New State Event"); } // ... also another events works fine like I said above but music on hold event does not work protected void handleEvent(MusicOnHoldEvent event) { System.out.println("Music On Hold Event"); } } I don't know what to do, please help me :( mohsen |
From: Aby A. A. B. <aby...@ya...> - 2013-02-01 20:45:47
|
Hello! http://gruposaracura.com.br/news.html Aby Azid Abu Bakar --------------------------------- ug% |
From: drenda <dan...@gm...> - 2013-01-25 13:39:26
|
Hi guys, any suggestion about my problem? Thanks very much drenda wrote: > > Hi guys, > I think that my problem is linked to this bug: > https://issues.reucon.com/browse/AJ-320 > > Any suggestion? > > THanks > > > 2013/1/19 Shitian Long <lon...@gm...> > >> Thanks for your message. Actually I didn't implement call back like this >> before. >> What I implement call back is using "ManagerConnection" sendAction with >> an OriginateAction argument. >> >> looks the "Hello Manager" in the >> http://www.asterisk-java.org/development/tutorial.html >> >> So probably I couldn't help you to much in this case…. >> >> Anyway good to know your method. I will try it out, and let you know my >> result. >> >> >> >> >> >> On Jan 19, 2013, at 3:01 PM, Daniele Renda <dan...@gm...> >> wrote: >> >> In the CLI all works fine, infact the call works but Asterisk Java mark >> it >> as NO_ANSWER always!! >> I've set debug log in my class where I'm using AsteriskManager, with old >> asterisk-java lib when I make a call I receive the event of RINGING, then >> onSuccess() when the user answer the call and so on, instead with the >> last >> asterisk-java lib I get the RINGING event but immediately after I go to >> onNoAnswer() method. >> >> >> try { >> telefonata.onCreate(); >> asteriskServer.originateAsync(action, new >> MyOriginateCallback(telefonata)); >> } catch (ManagerCommunicationException e) { >> log.error(telefonata.getId() + " ha generato un errore", e); >> telefonata.onFailure(); >> } >> >> and MyOriginateCallback: >> private class MyOriginateCallback implements OriginateCallback { >> >> private final TelefonataInterface telefonata; >> >> private MyOriginateCallback(TelefonataInterface telefonata) { >> >> this.telefonata = telefonata; >> } >> >> @Override >> public void onDialing(final AsteriskChannel channel) { >> log.debug("On dialing comunicazione " + telefonata.getId()); >> telefonata.onDialing(); >> >> ... >> ... >> >> } >> >> @Override >> public void onSuccess(AsteriskChannel channel) { >> log.debug("Success " + telefonata.getId() + " " + channel); >> >> log.debug("La comunicazione è iniziata alle " + >> channel.getDateOfCreation()); >> telefonata.onSuccess(); >> } >> >> @Override >> public void onNoAnswer(AsteriskChannel channel) { >> log.debug("NoAnswer " + telefonata.getId() + " " + channel); >> >> telefonata.onNoAnswer(); >> } >> >> @Override >> public void onBusy(AsteriskChannel channel) { >> log.debug("Busy " + telefonata.getId() + " " + channel); >> telefonata.onBusy(); >> } >> >> @Override >> public void onFailure(LiveException cause) { >> log.debug("OnFailure(...)' - " + telefonata.getId()); >> telefonata.onFailure(); >> } >> } >> >> I can't see anything strage in this code. >> >> Thanks very much >> >> >> >> 2013/1/19 Shitian Long <lon...@gm...> >> >>> Any thing happens in the CLI when call back didn't work? >>> >>> And what is your OriginateAction looks like in java application? >>> >>> >>> On Jan 18, 2013, at 7:23 PM, Daniele Renda <dan...@gm...> >>> wrote: >>> >>> > Hi all, >>> > I've a small project that use ManagerConnection and >>> asteriskServer.originateAsync(action, new >>> MyOriginateCallback(telefonata)); >>> with a callBack. >>> > All works fine with asterisk-java-1.0.0.M3 but with >>> asterisk-java/1.0.0.CI-SNAPSHOT/asterisk-java-1.0.0.CI-20130102.214528-1134-bin.zip >>> I've a big problem: >>> > all calls go to onNoAnswer also when they are answered!! >>> > >>> > There is something changed from the version I'm using? >>> > >>> > Thanks >>> > >>> > -- >>> > Daniele Renda >>> > >>> ------------------------------------------------------------------------------ >>> > Master HTML5, CSS3, ASP.NET <http://asp.net/>, MVC, AJAX, Knockout.js, >>> Web API and >>> > much more. Get web development skills now with LearnDevNow - >>> > 350+ 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_122812_______________________________________________ >>> > Asterisk-java-users mailing list >>> > Ast...@li... >>> > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users >>> >>> >>> >>> ------------------------------------------------------------------------------ >>> Master Visual Studio, SharePoint, SQL, ASP.NET <http://asp.net/>, C# >>> 2012, HTML5, CSS, >>> MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current >>> with LearnDevNow - 3,200 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_122912 >>> _______________________________________________ >>> Asterisk-java-users mailing list >>> Ast...@li... >>> https://lists.sourceforge.net/lists/listinfo/asterisk-java-users >>> >> >> >> >> -- >> Daniele Renda >> >> ------------------------------------------------------------------------------ >> Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, >> MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current >> with LearnDevNow - 3,200 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_122912_______________________________________________ >> Asterisk-java-users mailing list >> Ast...@li... >> https://lists.sourceforge.net/lists/listinfo/asterisk-java-users >> >> >> >> >> ------------------------------------------------------------------------------ >> Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, >> MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current >> with LearnDevNow - 3,200 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_122912 >> _______________________________________________ >> Asterisk-java-users mailing list >> Ast...@li... >> https://lists.sourceforge.net/lists/listinfo/asterisk-java-users >> >> > > > -- > Daniele Renda > > ------------------------------------------------------------------------------ > Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, > MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current > with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft > MVPs and experts. ON SALE this month only -- learn more at: > http://p.sf.net/sfu/learnmore_123012 > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > -- View this message in context: http://old.nabble.com/OriginateCallback-onNoAnswer-tp34918706p34944979.html Sent from the Asterisk-Java Users mailing list archive at Nabble.com. |
From: Yves A. <yv...@gm...> - 2013-01-24 16:24:12
|
Hi, line 90 of your HelloLive class seems to reference a Null-Object... hard to say, what exactly is going wrong without seeing the whole code... its just, what the exception says... yves Am 24.01.2013 15:37, schrieb Shitian Long: > Hello > > I have a question about usage of > "public AsteriskChannel originate(OriginateAction originateAction) > throws ManagerCommunicationException, NoSuchChannelException" > > > according to http://www.asterisk-java.org/development/apidocs/index.html > > publicAsteriskChannel <http://www.asterisk-java.org/development/apidocs/org/asteriskjava/live/AsteriskChannel.html> originate(OriginateAction <http://www.asterisk-java.org/development/apidocs/org/asteriskjava/manager/action/OriginateAction.html> originateAction) > throwsManagerCommunicationException <http://www.asterisk-java.org/development/apidocs/org/asteriskjava/live/ManagerCommunicationException.html>, > NoSuchChannelException <http://www.asterisk-java.org/development/apidocs/org/asteriskjava/live/NoSuchChannelException.html> > *Description copied from interface: |AsteriskServer > <http://www.asterisk-java.org/development/apidocs/org/asteriskjava/live/AsteriskServer.html#originate%28org.asteriskjava.manager.action.OriginateAction%29>|* > Generates an outgoing channel. > > *Specified by:* > |originate > <http://www.asterisk-java.org/development/apidocs/org/asteriskjava/live/AsteriskServer.html#originate%28org.asteriskjava.manager.action.OriginateAction%29>| in > interface |AsteriskServer > <http://www.asterisk-java.org/development/apidocs/org/asteriskjava/live/AsteriskServer.html>| > Parameters: > |originateAction| - the action that contains parameters for the > originate > Returns: > the generated channel > Throws: > |ManagerCommunicationException > <http://www.asterisk-java.org/development/apidocs/org/asteriskjava/live/ManagerCommunicationException.html>| - > if the originate action cannot be sent to Asterisk > |NoSuchChannelException > <http://www.asterisk-java.org/development/apidocs/org/asteriskjava/live/NoSuchChannelException.html>| - > if the channel is not available on the Asterisk server, for > example because you used "SIP/1310" and 1310 is not a valid SIP > user, the SIP channel module hasn't been loaded or the SIP or IAX > peer is not registered currently. > > > > > I have following implementation like > > OriginateAction originateAction = new OriginateAction(); > originateAction.setChannel("SIP/2000"); > originateAction.setContext("test-context"); > originateAction.setExten("2222"); > originateAction.setCallerId("1111"); > AsteriskChannel aChannel = asteriskServer.originate(originateAction); > > Then I got > > Exception in thread "main" java.lang.NullPointerException > at > org.asteriskjava.live.internal.AsteriskServerImpl.originate(AsteriskServerImpl.java:295) > at > org.asteriskjava.live.DefaultAsteriskServer.originate(DefaultAsteriskServer.java:137) > at HelloLive.run(HelloLive.java:36) > at HelloLive.main(HelloLive.java:90) > > This exception. > > I am wondering if someone could help me about the correct way of using > public AsteriskChannel originate(OriginateAction originateAction) > throws ManagerCommunicationException, NoSuchChannelException > this function > > Thanks. > > > > > > ------------------------------------------------------------------------------ > Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, > MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current > with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft > MVPs and experts. ON SALE this month only -- learn more at: > http://p.sf.net/sfu/learnnow-d2d > > > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users |
From: Shitian L. <lon...@gm...> - 2013-01-24 14:37:18
|
Hello I have a question about usage of "public AsteriskChannel originate(OriginateAction originateAction) throws ManagerCommunicationException, NoSuchChannelException" according to http://www.asterisk-java.org/development/apidocs/index.html public AsteriskChannel originate(OriginateAction originateAction) throws ManagerCommunicationException, NoSuchChannelException Description copied from interface: AsteriskServer Generates an outgoing channel. Specified by: originate in interface AsteriskServer Parameters: originateAction - the action that contains parameters for the originate Returns: the generated channel Throws: ManagerCommunicationException - if the originate action cannot be sent to Asterisk NoSuchChannelException - if the channel is not available on the Asterisk server, for example because you used "SIP/1310" and 1310 is not a valid SIP user, the SIP channel module hasn't been loaded or the SIP or IAX peer is not registered currently. I have following implementation like OriginateAction originateAction = new OriginateAction(); originateAction.setChannel("SIP/2000"); originateAction.setContext("test-context"); originateAction.setExten("2222"); originateAction.setCallerId("1111"); AsteriskChannel aChannel = asteriskServer.originate(originateAction); Then I got Exception in thread "main" java.lang.NullPointerException at org.asteriskjava.live.internal.AsteriskServerImpl.originate(AsteriskServerImpl.java:295) at org.asteriskjava.live.DefaultAsteriskServer.originate(DefaultAsteriskServer.java:137) at HelloLive.run(HelloLive.java:36) at HelloLive.main(HelloLive.java:90) This exception. I am wondering if someone could help me about the correct way of using public AsteriskChannel originate(OriginateAction originateAction) throws ManagerCommunicationException, NoSuchChannelException this function Thanks. |
From: Daniele R. <dan...@gm...> - 2013-01-20 14:46:43
|
Hi guys, I think that my problem is linked to this bug: https://issues.reucon.com/browse/AJ-320 Any suggestion? THanks 2013/1/19 Shitian Long <lon...@gm...> > Thanks for your message. Actually I didn't implement call back like this > before. > What I implement call back is using "ManagerConnection" sendAction with > an OriginateAction argument. > > looks the "Hello Manager" in the > http://www.asterisk-java.org/development/tutorial.html > > So probably I couldn't help you to much in this case…. > > Anyway good to know your method. I will try it out, and let you know my > result. > > > > > > On Jan 19, 2013, at 3:01 PM, Daniele Renda <dan...@gm...> > wrote: > > In the CLI all works fine, infact the call works but Asterisk Java mark it > as NO_ANSWER always!! > I've set debug log in my class where I'm using AsteriskManager, with old > asterisk-java lib when I make a call I receive the event of RINGING, then > onSuccess() when the user answer the call and so on, instead with the last > asterisk-java lib I get the RINGING event but immediately after I go to > onNoAnswer() method. > > > try { > telefonata.onCreate(); > asteriskServer.originateAsync(action, new MyOriginateCallback(telefonata)); > } catch (ManagerCommunicationException e) { > log.error(telefonata.getId() + " ha generato un errore", e); > telefonata.onFailure(); > } > > and MyOriginateCallback: > private class MyOriginateCallback implements OriginateCallback { > > private final TelefonataInterface telefonata; > > private MyOriginateCallback(TelefonataInterface telefonata) { > > this.telefonata = telefonata; > } > > @Override > public void onDialing(final AsteriskChannel channel) { > log.debug("On dialing comunicazione " + telefonata.getId()); > telefonata.onDialing(); > > ... > ... > > } > > @Override > public void onSuccess(AsteriskChannel channel) { > log.debug("Success " + telefonata.getId() + " " + channel); > > log.debug("La comunicazione è iniziata alle " + channel.getDateOfCreation()); > telefonata.onSuccess(); > } > > @Override > public void onNoAnswer(AsteriskChannel channel) { > log.debug("NoAnswer " + telefonata.getId() + " " + channel); > > telefonata.onNoAnswer(); > } > > @Override > public void onBusy(AsteriskChannel channel) { > log.debug("Busy " + telefonata.getId() + " " + channel); > telefonata.onBusy(); > } > > @Override > public void onFailure(LiveException cause) { > log.debug("OnFailure(...)' - " + telefonata.getId()); > telefonata.onFailure(); > } > } > > I can't see anything strage in this code. > > Thanks very much > > > > 2013/1/19 Shitian Long <lon...@gm...> > >> Any thing happens in the CLI when call back didn't work? >> >> And what is your OriginateAction looks like in java application? >> >> >> On Jan 18, 2013, at 7:23 PM, Daniele Renda <dan...@gm...> >> wrote: >> >> > Hi all, >> > I've a small project that use ManagerConnection and >> asteriskServer.originateAsync(action, new MyOriginateCallback(telefonata)); >> with a callBack. >> > All works fine with asterisk-java-1.0.0.M3 but with >> asterisk-java/1.0.0.CI-SNAPSHOT/asterisk-java-1.0.0.CI-20130102.214528-1134-bin.zip >> I've a big problem: >> > all calls go to onNoAnswer also when they are answered!! >> > >> > There is something changed from the version I'm using? >> > >> > Thanks >> > >> > -- >> > Daniele Renda >> > >> ------------------------------------------------------------------------------ >> > Master HTML5, CSS3, ASP.NET <http://asp.net/>, MVC, AJAX, Knockout.js, >> Web API and >> > much more. Get web development skills now with LearnDevNow - >> > 350+ 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_122812_______________________________________________ >> > Asterisk-java-users mailing list >> > Ast...@li... >> > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users >> >> >> >> ------------------------------------------------------------------------------ >> Master Visual Studio, SharePoint, SQL, ASP.NET <http://asp.net/>, C# >> 2012, HTML5, CSS, >> MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current >> with LearnDevNow - 3,200 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_122912 >> _______________________________________________ >> Asterisk-java-users mailing list >> Ast...@li... >> https://lists.sourceforge.net/lists/listinfo/asterisk-java-users >> > > > > -- > Daniele Renda > > ------------------------------------------------------------------------------ > Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, > MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current > with LearnDevNow - 3,200 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_122912_______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > > > > ------------------------------------------------------------------------------ > Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, > MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current > with LearnDevNow - 3,200 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_122912 > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > -- Daniele Renda |
From: Shitian L. <lon...@gm...> - 2013-01-19 19:57:42
|
Thanks for your message. Actually I didn't implement call back like this before. What I implement call back is using "ManagerConnection" sendAction with an OriginateAction argument. looks the "Hello Manager" in the http://www.asterisk-java.org/development/tutorial.html So probably I couldn't help you to much in this case…. Anyway good to know your method. I will try it out, and let you know my result. On Jan 19, 2013, at 3:01 PM, Daniele Renda <dan...@gm...> wrote: > In the CLI all works fine, infact the call works but Asterisk Java mark it as NO_ANSWER always!! > I've set debug log in my class where I'm using AsteriskManager, with old asterisk-java lib when I make a call I receive the event of RINGING, then onSuccess() when the user answer the call and so on, instead with the last asterisk-java lib I get the RINGING event but immediately after I go to onNoAnswer() method. > > > try { > telefonata.onCreate(); > asteriskServer.originateAsync(action, new MyOriginateCallback(telefonata)); > } catch (ManagerCommunicationException e) { > log.error(telefonata.getId() + " ha generato un errore", e); > telefonata.onFailure(); > } > > and MyOriginateCallback: > private class MyOriginateCallback implements OriginateCallback { > > private final TelefonataInterface telefonata; > > private MyOriginateCallback(TelefonataInterface telefonata) { > > this.telefonata = telefonata; > } > > @Override > public void onDialing(final AsteriskChannel channel) { > log.debug("On dialing comunicazione " + telefonata.getId()); > telefonata.onDialing(); > > ... > ... > > } > > @Override > public void onSuccess(AsteriskChannel channel) { > log.debug("Success " + telefonata.getId() + " " + channel); > > log.debug("La comunicazione è iniziata alle " + channel.getDateOfCreation()); > telefonata.onSuccess(); > } > > @Override > public void onNoAnswer(AsteriskChannel channel) { > log.debug("NoAnswer " + telefonata.getId() + " " + channel); > > telefonata.onNoAnswer(); > } > > @Override > public void onBusy(AsteriskChannel channel) { > log.debug("Busy " + telefonata.getId() + " " + channel); > telefonata.onBusy(); > } > > > @Override > public void onFailure(LiveException cause) { > log.debug("OnFailure(...)' - " + telefonata.getId()); > telefonata.onFailure(); > } > } > I can't see anything strage in this code. > > > Thanks very much > > > 2013/1/19 Shitian Long <lon...@gm...> > Any thing happens in the CLI when call back didn't work? > > And what is your OriginateAction looks like in java application? > > > On Jan 18, 2013, at 7:23 PM, Daniele Renda <dan...@gm...> wrote: > > > Hi all, > > I've a small project that use ManagerConnection and asteriskServer.originateAsync(action, new MyOriginateCallback(telefonata)); with a callBack. > > All works fine with asterisk-java-1.0.0.M3 but with asterisk-java/1.0.0.CI-SNAPSHOT/asterisk-java-1.0.0.CI-20130102.214528-1134-bin.zip I've a big problem: > > all calls go to onNoAnswer also when they are answered!! > > > > There is something changed from the version I'm using? > > > > Thanks > > > > -- > > Daniele Renda > > ------------------------------------------------------------------------------ > > Master HTML5, CSS3, ASP.NET, MVC, AJAX, Knockout.js, Web API and > > much more. Get web development skills now with LearnDevNow - > > 350+ 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_122812_______________________________________________ > > Asterisk-java-users mailing list > > Ast...@li... > > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > > ------------------------------------------------------------------------------ > Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, > MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current > with LearnDevNow - 3,200 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_122912 > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > > > -- > Daniele Renda > ------------------------------------------------------------------------------ > Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, > MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current > with LearnDevNow - 3,200 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_122912_______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users |
From: Daniele R. <dan...@gm...> - 2013-01-19 14:01:35
|
In the CLI all works fine, infact the call works but Asterisk Java mark it as NO_ANSWER always!! I've set debug log in my class where I'm using AsteriskManager, with old asterisk-java lib when I make a call I receive the event of RINGING, then onSuccess() when the user answer the call and so on, instead with the last asterisk-java lib I get the RINGING event but immediately after I go to onNoAnswer() method. try { telefonata.onCreate(); asteriskServer.originateAsync(action, new MyOriginateCallback(telefonata)); } catch (ManagerCommunicationException e) { log.error(telefonata.getId() + " ha generato un errore", e); telefonata.onFailure(); } and MyOriginateCallback: private class MyOriginateCallback implements OriginateCallback { private final TelefonataInterface telefonata; private MyOriginateCallback(TelefonataInterface telefonata) { this.telefonata = telefonata; } @Override public void onDialing(final AsteriskChannel channel) { log.debug("On dialing comunicazione " + telefonata.getId()); telefonata.onDialing(); ... ... } @Override public void onSuccess(AsteriskChannel channel) { log.debug("Success " + telefonata.getId() + " " + channel); log.debug("La comunicazione è iniziata alle " + channel.getDateOfCreation()); telefonata.onSuccess(); } @Override public void onNoAnswer(AsteriskChannel channel) { log.debug("NoAnswer " + telefonata.getId() + " " + channel); telefonata.onNoAnswer(); } @Override public void onBusy(AsteriskChannel channel) { log.debug("Busy " + telefonata.getId() + " " + channel); telefonata.onBusy(); } @Override public void onFailure(LiveException cause) { log.debug("OnFailure(...)' - " + telefonata.getId()); telefonata.onFailure(); } } I can't see anything strage in this code. Thanks very much 2013/1/19 Shitian Long <lon...@gm...> > Any thing happens in the CLI when call back didn't work? > > And what is your OriginateAction looks like in java application? > > > On Jan 18, 2013, at 7:23 PM, Daniele Renda <dan...@gm...> > wrote: > > > Hi all, > > I've a small project that use ManagerConnection and > asteriskServer.originateAsync(action, new MyOriginateCallback(telefonata)); > with a callBack. > > All works fine with asterisk-java-1.0.0.M3 but with > asterisk-java/1.0.0.CI-SNAPSHOT/asterisk-java-1.0.0.CI-20130102.214528-1134-bin.zip > I've a big problem: > > all calls go to onNoAnswer also when they are answered!! > > > > There is something changed from the version I'm using? > > > > Thanks > > > > -- > > Daniele Renda > > > ------------------------------------------------------------------------------ > > Master HTML5, CSS3, ASP.NET, MVC, AJAX, Knockout.js, Web API and > > much more. Get web development skills now with LearnDevNow - > > 350+ 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_122812_______________________________________________ > > Asterisk-java-users mailing list > > Ast...@li... > > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > > > ------------------------------------------------------------------------------ > Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, > MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current > with LearnDevNow - 3,200 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_122912 > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > -- Daniele Renda |
From: Shitian L. <lon...@gm...> - 2013-01-19 12:41:33
|
Any thing happens in the CLI when call back didn't work? And what is your OriginateAction looks like in java application? On Jan 18, 2013, at 7:23 PM, Daniele Renda <dan...@gm...> wrote: > Hi all, > I've a small project that use ManagerConnection and asteriskServer.originateAsync(action, new MyOriginateCallback(telefonata)); with a callBack. > All works fine with asterisk-java-1.0.0.M3 but with asterisk-java/1.0.0.CI-SNAPSHOT/asterisk-java-1.0.0.CI-20130102.214528-1134-bin.zip I've a big problem: > all calls go to onNoAnswer also when they are answered!! > > There is something changed from the version I'm using? > > Thanks > > -- > Daniele Renda > ------------------------------------------------------------------------------ > Master HTML5, CSS3, ASP.NET, MVC, AJAX, Knockout.js, Web API and > much more. Get web development skills now with LearnDevNow - > 350+ 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_122812_______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users |
From: Daniele R. <dan...@gm...> - 2013-01-18 18:23:48
|
Hi all, I've a small project that use ManagerConnection and asteriskServer.originateAsync(action, new MyOriginateCallback(telefonata)); with a callBack. All works fine with asterisk-java-1.0.0.M3 but with asterisk-java/1.0.0.CI-SNAPSHOT/asterisk-java-1.0.0.CI-20130102.214528-1134-bin.zip I've a big problem: all calls go to onNoAnswer also when they are answered!! There is something changed from the version I'm using? Thanks -- Daniele Renda |
From: Miguel S. <m.s...@gm...> - 2013-01-16 12:47:21
|
Hi, Perhaps the data is not available yet just in the moment you are triyng to retrieve, and it is a random situation depending on your asterisk process load (I wonder). Try to implement a breakable-loop with a top retries value, pausing the java thread a short time ( Thread.sleep (500) ) before every try step into the loop. Hope it helps ! I look forward to your comments. Miguel 2013/1/16 Daniele Renda <dan...@gm...> > Hi Miguel, > thanks very much for the time you spent!! Your solution is very good; > infact is a similar one that I'm using today. Instead of a status I've the > date of elaboration of the vm but the concept is the same. > The problem is that when you use Voicemailmain there I've an sql error > (not always but only some times) as you can see in the image attached. > > Any idea about this problem? Maybe I have to see the source of Asterisk to > understand where is the problem.... > > Thanks > > > 2013/1/16 Miguel Santiago <m.s...@gm...> > >> Hi Daniele, >> >> Assuming MessageWaitingEvent is triggered when someone leaves voicemail, >> maybe you can do this : >> >> - First, add a field to voicemessages table (example : `message_status` >> Integer Default 0) to allow you to manage your own control (the fact that >> you extend your ODBC Asterisk tables does not causes a wrong behavior, >> I´ve tried and check >> extending some other tables, as cdr, on my implementations, and >> everything works fine) >> >> - Get from the event then name of the mailbox using *getMailbox<http://www.asterisk-java.org/development/apidocs/org/asteriskjava/manager/event/MessageWaitingEvent.html#getMailbox%28%29> >> *() method. >> >> - Select all records corresponding to the mailbox obtained from the >> event, whose message_status let you know that >> has not been already processed by your java process. >> Example : "Select * From `voicemessages` Where mailboxuser = [mailbox] >> and status = 0" >> >> - So, you can process each record obtained from the query, setting a new >> status when all the work is done >> Example, message_status = 1 (processed) >> >> I think you can get all the information you need from the table, >> including the recording file stored into the blob field `recording` >> >> Note you can obtain the email-address as well querying voicemail.conf >> >> Hope it helps ! >> >> >> >> >> 2013/1/16 Daniele Renda <dan...@gm...> >> >>> Hi, >>> thanks for your reply. >>> I need to run some actions when the pbx receive a new vm. I need to get >>> all details of this new vm and then notify the user in several way (alert >>> notifications, email and so on). >>> I know that with voicemail.conf I can manage the sent of vm by email but >>> this is not enought for me. >>> >>> So I was looking for a way to get the notify of a new vm in Java (with >>> MessageWaitingEvent I can do that) and then get the details of the new vm >>> (I can't do that). >>> >>> Thanks! >>> >>> >>> 2013/1/16 Yves A. <yv...@gm...> >>> >>>> ah, >>>> i see... sorry, but i have no experience in storing vm in db... i >>>> always used files and have no problems accessing >>>> the files, because i know the directory they are stored, can fetch >>>> filedate and so on... >>>> maybe you could explain your objective in detail, so i can understand >>>> the story behind... there is almost always >>>> a solution... >>>> >>>> yves >>>> >>>> Am 16.01.2013 00:20, schrieb Daniele Renda: >>>> >>>> Thanks yves. >>>> From MailboxCountResponse I can't get the msg_id of my new message. I >>>> can only get the number of new messages. >>>> I need to get all information that are stored in message table (see >>>> here >>>> http://www.voip-info.org/wiki/view/Asterisk+Voicemail+ODBC+storage).<http://www.voip-info.org/wiki/view/Asterisk+Voicemail+ODBC+storage> >>>> Unfortunally I can't link the event of new message that I receive in >>>> Asterisk Java with the message store natively in mysql table from asterisk. >>>> >>>> Thanks >>>> >>>> 2013/1/16 Yves A. <yv...@gm...> >>>> >>>>> MailboxCountAction >>>> >>>> >>>> >>>> >>>> >>>> -- >>>> 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 lis...@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 >>> >>> >>> ------------------------------------------------------------------------------ >>> Master Java SE, Java EE, Eclipse, Spring, Hibernate, JavaScript, jQuery >>> and much more. Keep your Java skills current with LearnJavaNow - >>> 200+ hours of step-by-step video tutorials by Java experts. >>> SALE $49.99 this month only -- learn more at: >>> http://p.sf.net/sfu/learnmore_122612 >>> _______________________________________________ >>> Asterisk-java-users mailing list >>> Ast...@li... >>> https://lists.sourceforge.net/lists/listinfo/asterisk-java-users >>> >>> >> >> >> -- >> Miguel Santiago >> >> >> ------------------------------------------------------------------------------ >> Master Java SE, Java EE, Eclipse, Spring, Hibernate, JavaScript, jQuery >> and much more. Keep your Java skills current with LearnJavaNow - >> 200+ hours of step-by-step video tutorials by Java experts. >> SALE $49.99 this month only -- learn more at: >> http://p.sf.net/sfu/learnmore_122612 >> _______________________________________________ >> Asterisk-java-users mailing list >> Ast...@li... >> https://lists.sourceforge.net/lists/listinfo/asterisk-java-users >> >> > > > -- > Daniele Renda > > > ------------------------------------------------------------------------------ > Master Java SE, Java EE, Eclipse, Spring, Hibernate, JavaScript, jQuery > and much more. Keep your Java skills current with LearnJavaNow - > 200+ hours of step-by-step video tutorials by Java experts. > SALE $49.99 this month only -- learn more at: > http://p.sf.net/sfu/learnmore_122612 > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > -- Miguel Santiago |
From: Miguel S. <m.s...@gm...> - 2013-01-16 10:30:13
|
Hi Daniele, Assuming MessageWaitingEvent is triggered when someone leaves voicemail, maybe you can do this : - First, add a field to voicemessages table (example : `message_status` Integer Default 0) to allow you to manage your own control (the fact that you extend your ODBC Asterisk tables does not causes a wrong behavior, I´ve tried and check extending some other tables, as cdr, on my implementations, and everything works fine) - Get from the event then name of the mailbox using *getMailbox<http://www.asterisk-java.org/development/apidocs/org/asteriskjava/manager/event/MessageWaitingEvent.html#getMailbox()> *() method. - Select all records corresponding to the mailbox obtained from the event, whose message_status let you know that has not been already processed by your java process. Example : "Select * From `voicemessages` Where mailboxuser = [mailbox] and status = 0" - So, you can process each record obtained from the query, setting a new status when all the work is done Example, message_status = 1 (processed) I think you can get all the information you need from the table, including the recording file stored into the blob field `recording` Note you can obtain the email-address as well querying voicemail.conf Hope it helps ! 2013/1/16 Daniele Renda <dan...@gm...> > Hi, > thanks for your reply. > I need to run some actions when the pbx receive a new vm. I need to get > all details of this new vm and then notify the user in several way (alert > notifications, email and so on). > I know that with voicemail.conf I can manage the sent of vm by email but > this is not enought for me. > > So I was looking for a way to get the notify of a new vm in Java (with > MessageWaitingEvent I can do that) and then get the details of the new vm > (I can't do that). > > Thanks! > > > 2013/1/16 Yves A. <yv...@gm...> > >> ah, >> i see... sorry, but i have no experience in storing vm in db... i always >> used files and have no problems accessing >> the files, because i know the directory they are stored, can fetch >> filedate and so on... >> maybe you could explain your objective in detail, so i can understand the >> story behind... there is almost always >> a solution... >> >> yves >> >> Am 16.01.2013 00:20, schrieb Daniele Renda: >> >> Thanks yves. >> From MailboxCountResponse I can't get the msg_id of my new message. I >> can only get the number of new messages. >> I need to get all information that are stored in message table (see >> here http://www.voip-info.org/wiki/view/Asterisk+Voicemail+ODBC+storage).<http://www.voip-info.org/wiki/view/Asterisk+Voicemail+ODBC+storage> >> Unfortunally I can't link the event of new message that I receive in >> Asterisk Java with the message store natively in mysql table from asterisk. >> >> Thanks >> >> 2013/1/16 Yves A. <yv...@gm...> >> >>> MailboxCountAction >> >> >> >> >> >> -- >> 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 lis...@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 > > > ------------------------------------------------------------------------------ > Master Java SE, Java EE, Eclipse, Spring, Hibernate, JavaScript, jQuery > and much more. Keep your Java skills current with LearnJavaNow - > 200+ hours of step-by-step video tutorials by Java experts. > SALE $49.99 this month only -- learn more at: > http://p.sf.net/sfu/learnmore_122612 > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > -- Miguel Santiago |
From: Daniele R. <dan...@gm...> - 2013-01-16 08:49:34
|
Hi, thanks for your reply. I need to run some actions when the pbx receive a new vm. I need to get all details of this new vm and then notify the user in several way (alert notifications, email and so on). I know that with voicemail.conf I can manage the sent of vm by email but this is not enought for me. So I was looking for a way to get the notify of a new vm in Java (with MessageWaitingEvent I can do that) and then get the details of the new vm (I can't do that). Thanks! 2013/1/16 Yves A. <yv...@gm...> > ah, > i see... sorry, but i have no experience in storing vm in db... i always > used files and have no problems accessing > the files, because i know the directory they are stored, can fetch > filedate and so on... > maybe you could explain your objective in detail, so i can understand the > story behind... there is almost always > a solution... > > yves > > Am 16.01.2013 00:20, schrieb Daniele Renda: > > Thanks yves. > From MailboxCountResponse I can't get the msg_id of my new message. I > can only get the number of new messages. > I need to get all information that are stored in message table (see here > http://www.voip-info.org/wiki/view/Asterisk+Voicemail+ODBC+storage).<http://www.voip-info.org/wiki/view/Asterisk+Voicemail+ODBC+storage> > Unfortunally I can't link the event of new message that I receive in > Asterisk Java with the message store natively in mysql table from asterisk. > > Thanks > > 2013/1/16 Yves A. <yv...@gm...> > >> MailboxCountAction > > > > > > -- > 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 lis...@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 |
From: Yves A. <yv...@gm...> - 2013-01-15 23:58:40
|
ah, i see... sorry, but i have no experience in storing vm in db... i always used files and have no problems accessing the files, because i know the directory they are stored, can fetch filedate and so on... maybe you could explain your objective in detail, so i can understand the story behind... there is almost always a solution... yves Am 16.01.2013 00:20, schrieb Daniele Renda: > Thanks yves. > From MailboxCountResponse I can't get the msg_id of my new message. I > can only get the number of new messages. > I need to get all information that are stored in message table (see > here > http://www.voip-info.org/wiki/view/Asterisk+Voicemail+ODBC+storage). > <http://www.voip-info.org/wiki/view/Asterisk+Voicemail+ODBC+storage> > Unfortunally I can't link the event of new message that I receive in > Asterisk Java with the message store natively in mysql table from > asterisk. > > Thanks > > 2013/1/16 Yves A. <yv...@gm... <mailto:yv...@gm...>> > > MailboxCountAction > > > > > > -- > 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 |
From: Daniele R. <dan...@gm...> - 2013-01-15 23:36:37
|
Thank you very much Miguel! 2013/1/16 Miguel Santiago <m.s...@gm...> > I can't run any test in this moment, but I'll try tomorrow at work. > If I discover any good strategy, l'll replay this wire again. > Hope you'll achieve... > El 16/01/2013 00:21, "Daniele Renda" <dan...@gm...> escribió: > >> Thanks yves. >> From MailboxCountResponse I can't get the msg_id of my new message. I can >> only get the number of new messages. >> I need to get all information that are stored in message table (see here >> http://www.voip-info.org/wiki/view/Asterisk+Voicemail+ODBC+storage).<http://www.voip-info.org/wiki/view/Asterisk+Voicemail+ODBC+storage> >> Unfortunally I can't link the event of new message that I receive in >> Asterisk Java with the message store natively in mysql table from asterisk. >> >> Thanks >> >> 2013/1/16 Yves A. <yv...@gm...> >> >>> MailboxCountAction >> >> >> >> >> >> -- >> 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 |
From: Miguel S. <m.s...@gm...> - 2013-01-15 23:34:52
|
I can't run any test in this moment, but I'll try tomorrow at work. If I discover any good strategy, l'll replay this wire again. Hope you'll achieve... El 16/01/2013 00:21, "Daniele Renda" <dan...@gm...> escribió: > Thanks yves. > From MailboxCountResponse I can't get the msg_id of my new message. I can > only get the number of new messages. > I need to get all information that are stored in message table (see here > http://www.voip-info.org/wiki/view/Asterisk+Voicemail+ODBC+storage).<http://www.voip-info.org/wiki/view/Asterisk+Voicemail+ODBC+storage> > Unfortunally I can't link the event of new message that I receive in > Asterisk Java with the message store natively in mysql table from asterisk. > > Thanks > > 2013/1/16 Yves A. <yv...@gm...> > >> MailboxCountAction > > > > > > -- > 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 > > |
From: Daniele R. <dan...@gm...> - 2013-01-15 23:20:40
|
Thanks yves. >From MailboxCountResponse I can't get the msg_id of my new message. I can only get the number of new messages. I need to get all information that are stored in message table (see here http://www.voip-info.org/wiki/view/Asterisk+Voicemail+ODBC+storage).<http://www.voip-info.org/wiki/view/Asterisk+Voicemail+ODBC+storage> Unfortunally I can't link the event of new message that I receive in Asterisk Java with the message store natively in mysql table from asterisk. Thanks 2013/1/16 Yves A. <yv...@gm...> > MailboxCountAction -- Daniele Renda |
From: Yves A. <yv...@gm...> - 2013-01-15 23:15:13
|
hi, take a look at the classes MailboxCountAction and MailboxCountResponse MailboxCountAction mca= new MailboxCountAction("<your vm box number>"); MailboxCountResponse mcr = (MailboxCountResponse)<yourdefaultmanagerconnection>.sendAction(mca); yves Am 16.01.2013 00:02, schrieb Richard Lavoie: > 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... > <mailto: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... >> <mailto:dan...@gm...>> >> >> Oh sorry, >> I realize that there is MessageWaitingEvent. This is what I need. >> >> Thanks! >> >> >> 2013/1/15 Daniele Renda <dan...@gm... >> <mailto: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... >> <mailto: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... >> <mailto: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 |
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 |
From: Richard L. <lav...@gm...> - 2013-01-15 23:02:46
|
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 |
From: Daniele R. <dan...@gm...> - 2013-01-15 22:19:21
|
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 |
From: Prasath K. <pra...@gm...> - 2013-01-15 22:10:11
|
http://www.cossardavinci.com/ffryd3.php |
From: Daniele R. <dan...@gm...> - 2013-01-15 21:32:09
|
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 |
From: Daniele R. <dan...@gm...> - 2013-01-15 21:27:10
|
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 |