asterisk-java-users Mailing List for Asterisk-Java Library (Page 21)
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: Miguel S. <m.s...@gm...> - 2013-01-15 18:09:07
|
I think so. The "VoicemailUserEntryEvent" and "VoicemailUserEntryCompleteEvent" events can allow you to achieve what you need. Take a look at the following links : http://www.asterisk-java.org/development/apidocs/org/asteriskjava/manager/event/VoicemailUserEntryCompleteEvent.html ------------------------------------ http://www.asterisk-java.org/development/apidocs/org/asteriskjava/manager/event/VoicemailUserEntryEvent.html El 15/01/2013 18:40, "Daniele Renda" <dan...@gm...> escribió: > Hi, > there is some event that is raised when a new voicemail arrive? > > Thanks! > -- > 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 17:39:41
|
Hi, there is some event that is raised when a new voicemail arrive? Thanks! -- Daniele Renda |
From: thenewmexican64 <spn...@ya...> - 2013-01-13 19:44:43
|
http://burhanyayin.com/bargainemptyphiliproberts/ |
From: thenewmexican64 <spn...@ya...> - 2013-01-10 04:11:33
|
http://lynchburgroofcleaning.com/equivalentbirdcarlstewart/ |
From: Todd F. <tod...@ya...> - 2013-01-07 01:51:26
|
http://www.sotb-orlando.com/new-old/ndold.php?ecty=ecty |
From: Mordechay K. <mka...@gm...> - 2013-01-03 12:34:32
|
B.H. You probably didn't set 'user' permission for your manager login in /etc/astersk/manager.conf. I have it enabled for read and for write. Of course, you can use AGI as well, it should be simpler. You can even implement the whole IVR in Java this way. In my case i have multiple asterisk hosts and multiple AMI listeners working together so UserEvent is better because it is broadcast to all logged in AMI event listeners. Every listener 'catches' what belong to him using uniqueId. On Thu, Jan 3, 2013 at 12:03 PM, Kelly Goedert <kel...@gm...>wrote: > Hi, > > I did put the properties as described on the docs, but it did not work. > There are no errors in the log of the java code also. Maybe the problem is > because I am using asterisk 1.6? > > > On Wed, Jan 2, 2013 at 4:52 PM, Mordechay Kaganer <mka...@gm...>wrote: > >> B.H. >> >> First, you need to add the custom properties 'uid' and 'selection' to >> MenuEvent class, like explained in UserEvent class's docs. Maybe the event >> reader thread cannot instantiate your class because it doesn't find the >> setters. >> >> Then check the log output of your java code if you can see any errors or >> warnings there. >> >> I'm using this technique with asterisk-java and asterisk 1.8 quite widely >> and it works without problems. >> >> >> >> On Wed, Jan 2, 2013 at 6:52 PM, Kelly Goedert <kel...@gm...>wrote: >> >>> Hi, >>> >>> I implemented the MenuEvent class as you suggested, and I can see this >>> line on the console >>> >>> Executing [1@ivr:1] UserEvent("SIP/eu-34001bd0", >>> "Menu,uid:1357145308.1,selection:1") in new stack >>> >>> But in the java code, the event is not received. My class is as follows: >>> >>> public class AsteriskLive implements ManagerEventListener { >>> >>> private ManagerConnection managerConnection; >>> >>> public AsteriskLive() { >>> >>> } >>> >>> @Override >>> public void onManagerEvent(ManagerEvent event) { >>> if(event instanceof MenuEvent){ >>> System.out.println(event); >>> } >>> } >>> >>> public void run() throws IOException, AuthenticationFailedException, >>> TimeoutException, InterruptedException { >>> ManagerConnectionFactory factory = new >>> ManagerConnectionFactory("1.1.1.2", "a", "p"); >>> ManagerConnection managerConnection = factory.createManagerConnection(); >>> managerConnection.registerUserEventClass(MenuEvent.class); >>> >>> OriginateAction originateAction; >>> >>> originateAction = new OriginateAction(); >>> originateAction.setChannel("SIP/eu"); >>> originateAction.setContext("ivr"); >>> originateAction.setExten("400"); >>> originateAction.setPriority(new Integer(1)); >>> >>> managerConnection.addEventListener(this); >>> managerConnection.login(); >>> >>> managerConnection.sendAction(originateAction, 30000); >>> >>> Thread.sleep(60); >>> >>> managerConnection.logoff(); >>> } >>> >>> public static void main(String[] args) throws Exception { >>> AsteriskLive helloLiveEvents = new AsteriskLive(); >>> helloLiveEvents.run(); >>> } >>> >>> } >>> >>> And the MenuEvent class >>> >>> public class MenuEvent extends UserEvent { >>> >>> public MenuEvent(Object source) { >>> super(source); >>> } >>> >>> private static final long serialVersionUID = 1L; >>> >>> } >>> >>> >>> And the extensions.conf >>> exten => 1,2,MP3Player(confirmed.mp3) >>> exten => 1,1,UserEvent(Menu,uid:${UNIQUEID},selection:${EXTEN}) >>> >>> >>> >>> On Wed, Jan 2, 2013 at 2:27 PM, Mordechay Kaganer <mka...@gm...>wrote: >>> >>>> B.H. >>>> >>>> >>>> >>>> On Wed, Jan 2, 2013 at 5:49 PM, Kelly Goedert <kel...@gm...>wrote: >>>> >>>>> Hi, >>>> >>>> >>>> Hello >>>> >>>> >>>>> >>>>> I need to originate a call from java, this call is made to an >>>>> extension which plays menu options to the user, like, press 1 to confirm >>>>> and 2 to cancel. >>>>> >>>>> I originate a call to the extension 400@ivr that looks like this: >>>>> >>>>> [ivr] >>>>> exten => 400,1,MP3Player(sound1.mp3) >>>>> exten => 400,2,Background(menu.mp3) >>>>> exten => 400,n,WaitExten(5) >>>>> >>>>> exten => 1,1,MP3Player(confirmed.mp3) >>>>> >>>>> exten => 2,1,MP3Player(cancel.mp3) >>>>> exten => 3,1,MP3Player(later.mp3) >>>>> exten => 4,1,Goto(ivr,400,2) >>>>> exten => i,1,MP3Player(invalid.mp3) >>>>> exten => t,1,Hangup() >>>>> >>>>> Is it possible to know if the user selected 1,2,3 or 4? If so, how can >>>>> I do that? >>>>> >>>>> Thanks >>>>> >>>>> Kelly >>>>> >>>>> >>>> AFAIK, Asterisk 1.4 sends NewExtenEvent on every priority in the >>>> dialplan but the later versions do not send this event. I would recommend >>>> to use cusom UserEvent like this on every extention of the menu: >>>> >>>> exten => s,n,UserEvent(MENU,uid: ${UNIQUEID},selection: ${EXTEN}) >>>> >>>> (you need to pass the channel's UNIQUEID because for some reason it is >>>> not passed automatically by asterisk for user events) >>>> >>>> Then you create a class MenuEvent (The class name matters!) which >>>> extends org.asteriskjava.manager.event.UserEvent and register it with your >>>> AMI connection: >>>> >>>> connection.registerUserEventClass(MenuEvent.class); >>>> >>>> Another solution whould be to use FastAGI, if it is applicable in your >>>> case >>>> >>>> >>>>> >>>>> >>>>> ------------------------------------------------------------------------------ >>>>> 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 >>>>> >>>>> >>>> Best regards, Mordechay >>>> >>>> -- >>>> משיח NOW! >>>> Moshiach is coming very soon, prepare yourself! >>>> יחי אדוננו מורינו ורבינו מלך המשיח לעולם ועד! >>>> >>>> >>>> ------------------------------------------------------------------------------ >>>> 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 >>>> >>>> >>> >>> >>> ------------------------------------------------------------------------------ >>> 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 >>> >>> >> >> >> -- >> משיח NOW! >> Moshiach is coming very soon, prepare yourself! >> יחי אדוננו מורינו ורבינו מלך המשיח לעולם ועד! >> >> >> ------------------------------------------------------------------------------ >> 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 >> >> > > > ------------------------------------------------------------------------------ > 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_122712 > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > -- משיח NOW! Moshiach is coming very soon, prepare yourself! יחי אדוננו מורינו ורבינו מלך המשיח לעולם ועד! |
From: Yves A. <yv...@gm...> - 2013-01-03 10:17:48
|
Hi, I´d recommend to use a java-agi for that purpose. You can pass parameters to your agi and you have full control over the call, directly receive DTMF inputs, can use any database and and and... (i do it this way for large ivr campaigns (no matter if in- or outbound) handling hundreds of calls per hour... no problems... on outbound campaigns the call is also java-initiated) regards, yves Am 02.01.2013 16:49, schrieb Kelly Goedert: > Hi, > > I need to originate a call from java, this call is made to an > extension which plays menu options to the user, like, press 1 to > confirm and 2 to cancel. > > I originate a call to the extension 400@ivr that looks like this: > > [ivr] > exten => 400,1,MP3Player(sound1.mp3) > exten => 400,2,Background(menu.mp3) > exten => 400,n,WaitExten(5) > > exten => 1,1,MP3Player(confirmed.mp3) > > exten => 2,1,MP3Player(cancel.mp3) > exten => 3,1,MP3Player(later.mp3) > exten => 4,1,Goto(ivr,400,2) > exten => i,1,MP3Player(invalid.mp3) > exten => t,1,Hangup() > > Is it possible to know if the user selected 1,2,3 or 4? If so, how can > I do that? > > Thanks > > Kelly > > > > ------------------------------------------------------------------------------ > 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 |
From: Kelly G. <kel...@gm...> - 2013-01-03 10:04:02
|
Hi, I did put the properties as described on the docs, but it did not work. There are no errors in the log of the java code also. Maybe the problem is because I am using asterisk 1.6? On Wed, Jan 2, 2013 at 4:52 PM, Mordechay Kaganer <mka...@gm...>wrote: > B.H. > > First, you need to add the custom properties 'uid' and 'selection' to > MenuEvent class, like explained in UserEvent class's docs. Maybe the event > reader thread cannot instantiate your class because it doesn't find the > setters. > > Then check the log output of your java code if you can see any errors or > warnings there. > > I'm using this technique with asterisk-java and asterisk 1.8 quite widely > and it works without problems. > > > > On Wed, Jan 2, 2013 at 6:52 PM, Kelly Goedert <kel...@gm...>wrote: > >> Hi, >> >> I implemented the MenuEvent class as you suggested, and I can see this >> line on the console >> >> Executing [1@ivr:1] UserEvent("SIP/eu-34001bd0", >> "Menu,uid:1357145308.1,selection:1") in new stack >> >> But in the java code, the event is not received. My class is as follows: >> >> public class AsteriskLive implements ManagerEventListener { >> >> private ManagerConnection managerConnection; >> >> public AsteriskLive() { >> >> } >> >> @Override >> public void onManagerEvent(ManagerEvent event) { >> if(event instanceof MenuEvent){ >> System.out.println(event); >> } >> } >> >> public void run() throws IOException, AuthenticationFailedException, >> TimeoutException, InterruptedException { >> ManagerConnectionFactory factory = new >> ManagerConnectionFactory("1.1.1.2", "a", "p"); >> ManagerConnection managerConnection = factory.createManagerConnection(); >> managerConnection.registerUserEventClass(MenuEvent.class); >> >> OriginateAction originateAction; >> >> originateAction = new OriginateAction(); >> originateAction.setChannel("SIP/eu"); >> originateAction.setContext("ivr"); >> originateAction.setExten("400"); >> originateAction.setPriority(new Integer(1)); >> >> managerConnection.addEventListener(this); >> managerConnection.login(); >> >> managerConnection.sendAction(originateAction, 30000); >> >> Thread.sleep(60); >> >> managerConnection.logoff(); >> } >> >> public static void main(String[] args) throws Exception { >> AsteriskLive helloLiveEvents = new AsteriskLive(); >> helloLiveEvents.run(); >> } >> >> } >> >> And the MenuEvent class >> >> public class MenuEvent extends UserEvent { >> >> public MenuEvent(Object source) { >> super(source); >> } >> >> private static final long serialVersionUID = 1L; >> >> } >> >> >> And the extensions.conf >> exten => 1,2,MP3Player(confirmed.mp3) >> exten => 1,1,UserEvent(Menu,uid:${UNIQUEID},selection:${EXTEN}) >> >> >> >> On Wed, Jan 2, 2013 at 2:27 PM, Mordechay Kaganer <mka...@gm...>wrote: >> >>> B.H. >>> >>> >>> >>> On Wed, Jan 2, 2013 at 5:49 PM, Kelly Goedert <kel...@gm...>wrote: >>> >>>> Hi, >>> >>> >>> Hello >>> >>> >>>> >>>> I need to originate a call from java, this call is made to an extension >>>> which plays menu options to the user, like, press 1 to confirm and 2 to >>>> cancel. >>>> >>>> I originate a call to the extension 400@ivr that looks like this: >>>> >>>> [ivr] >>>> exten => 400,1,MP3Player(sound1.mp3) >>>> exten => 400,2,Background(menu.mp3) >>>> exten => 400,n,WaitExten(5) >>>> >>>> exten => 1,1,MP3Player(confirmed.mp3) >>>> >>>> exten => 2,1,MP3Player(cancel.mp3) >>>> exten => 3,1,MP3Player(later.mp3) >>>> exten => 4,1,Goto(ivr,400,2) >>>> exten => i,1,MP3Player(invalid.mp3) >>>> exten => t,1,Hangup() >>>> >>>> Is it possible to know if the user selected 1,2,3 or 4? If so, how can >>>> I do that? >>>> >>>> Thanks >>>> >>>> Kelly >>>> >>>> >>> AFAIK, Asterisk 1.4 sends NewExtenEvent on every priority in the >>> dialplan but the later versions do not send this event. I would recommend >>> to use cusom UserEvent like this on every extention of the menu: >>> >>> exten => s,n,UserEvent(MENU,uid: ${UNIQUEID},selection: ${EXTEN}) >>> >>> (you need to pass the channel's UNIQUEID because for some reason it is >>> not passed automatically by asterisk for user events) >>> >>> Then you create a class MenuEvent (The class name matters!) which >>> extends org.asteriskjava.manager.event.UserEvent and register it with your >>> AMI connection: >>> >>> connection.registerUserEventClass(MenuEvent.class); >>> >>> Another solution whould be to use FastAGI, if it is applicable in your >>> case >>> >>> >>>> >>>> >>>> ------------------------------------------------------------------------------ >>>> 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 >>>> >>>> >>> Best regards, Mordechay >>> >>> -- >>> משיח NOW! >>> Moshiach is coming very soon, prepare yourself! >>> יחי אדוננו מורינו ורבינו מלך המשיח לעולם ועד! >>> >>> >>> ------------------------------------------------------------------------------ >>> 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 >>> >>> >> >> >> ------------------------------------------------------------------------------ >> 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 >> >> > > > -- > משיח NOW! > Moshiach is coming very soon, prepare yourself! > יחי אדוננו מורינו ורבינו מלך המשיח לעולם ועד! > > > ------------------------------------------------------------------------------ > 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 > > |
From: Mordechay K. <mka...@gm...> - 2013-01-02 18:52:53
|
B.H. First, you need to add the custom properties 'uid' and 'selection' to MenuEvent class, like explained in UserEvent class's docs. Maybe the event reader thread cannot instantiate your class because it doesn't find the setters. Then check the log output of your java code if you can see any errors or warnings there. I'm using this technique with asterisk-java and asterisk 1.8 quite widely and it works without problems. On Wed, Jan 2, 2013 at 6:52 PM, Kelly Goedert <kel...@gm...>wrote: > Hi, > > I implemented the MenuEvent class as you suggested, and I can see this > line on the console > > Executing [1@ivr:1] UserEvent("SIP/eu-34001bd0", > "Menu,uid:1357145308.1,selection:1") in new stack > > But in the java code, the event is not received. My class is as follows: > > public class AsteriskLive implements ManagerEventListener { > > private ManagerConnection managerConnection; > > public AsteriskLive() { > > } > > @Override > public void onManagerEvent(ManagerEvent event) { > if(event instanceof MenuEvent){ > System.out.println(event); > } > } > > public void run() throws IOException, AuthenticationFailedException, > TimeoutException, InterruptedException { > ManagerConnectionFactory factory = new > ManagerConnectionFactory("1.1.1.2", "a", "p"); > ManagerConnection managerConnection = factory.createManagerConnection(); > managerConnection.registerUserEventClass(MenuEvent.class); > > OriginateAction originateAction; > > originateAction = new OriginateAction(); > originateAction.setChannel("SIP/eu"); > originateAction.setContext("ivr"); > originateAction.setExten("400"); > originateAction.setPriority(new Integer(1)); > > managerConnection.addEventListener(this); > managerConnection.login(); > > managerConnection.sendAction(originateAction, 30000); > > Thread.sleep(60); > > managerConnection.logoff(); > } > > public static void main(String[] args) throws Exception { > AsteriskLive helloLiveEvents = new AsteriskLive(); > helloLiveEvents.run(); > } > > } > > And the MenuEvent class > > public class MenuEvent extends UserEvent { > > public MenuEvent(Object source) { > super(source); > } > > private static final long serialVersionUID = 1L; > > } > > > And the extensions.conf > exten => 1,2,MP3Player(confirmed.mp3) > exten => 1,1,UserEvent(Menu,uid:${UNIQUEID},selection:${EXTEN}) > > > > On Wed, Jan 2, 2013 at 2:27 PM, Mordechay Kaganer <mka...@gm...>wrote: > >> B.H. >> >> >> >> On Wed, Jan 2, 2013 at 5:49 PM, Kelly Goedert <kel...@gm...>wrote: >> >>> Hi, >> >> >> Hello >> >> >>> >>> I need to originate a call from java, this call is made to an extension >>> which plays menu options to the user, like, press 1 to confirm and 2 to >>> cancel. >>> >>> I originate a call to the extension 400@ivr that looks like this: >>> >>> [ivr] >>> exten => 400,1,MP3Player(sound1.mp3) >>> exten => 400,2,Background(menu.mp3) >>> exten => 400,n,WaitExten(5) >>> >>> exten => 1,1,MP3Player(confirmed.mp3) >>> >>> exten => 2,1,MP3Player(cancel.mp3) >>> exten => 3,1,MP3Player(later.mp3) >>> exten => 4,1,Goto(ivr,400,2) >>> exten => i,1,MP3Player(invalid.mp3) >>> exten => t,1,Hangup() >>> >>> Is it possible to know if the user selected 1,2,3 or 4? If so, how can I >>> do that? >>> >>> Thanks >>> >>> Kelly >>> >>> >> AFAIK, Asterisk 1.4 sends NewExtenEvent on every priority in the dialplan >> but the later versions do not send this event. I would recommend to use >> cusom UserEvent like this on every extention of the menu: >> >> exten => s,n,UserEvent(MENU,uid: ${UNIQUEID},selection: ${EXTEN}) >> >> (you need to pass the channel's UNIQUEID because for some reason it is >> not passed automatically by asterisk for user events) >> >> Then you create a class MenuEvent (The class name matters!) which >> extends org.asteriskjava.manager.event.UserEvent and register it with your >> AMI connection: >> >> connection.registerUserEventClass(MenuEvent.class); >> >> Another solution whould be to use FastAGI, if it is applicable in your >> case >> >> >>> >>> >>> ------------------------------------------------------------------------------ >>> 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 >>> >>> >> Best regards, Mordechay >> >> -- >> משיח NOW! >> Moshiach is coming very soon, prepare yourself! >> יחי אדוננו מורינו ורבינו מלך המשיח לעולם ועד! >> >> >> ------------------------------------------------------------------------------ >> 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 >> >> > > > ------------------------------------------------------------------------------ > 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 > > -- משיח NOW! Moshiach is coming very soon, prepare yourself! יחי אדוננו מורינו ורבינו מלך המשיח לעולם ועד! |
From: Kelly G. <kel...@gm...> - 2013-01-02 16:53:10
|
Hi, I implemented the MenuEvent class as you suggested, and I can see this line on the console Executing [1@ivr:1] UserEvent("SIP/eu-34001bd0", "Menu,uid:1357145308.1,selection:1") in new stack But in the java code, the event is not received. My class is as follows: public class AsteriskLive implements ManagerEventListener { private ManagerConnection managerConnection; public AsteriskLive() { } @Override public void onManagerEvent(ManagerEvent event) { if(event instanceof MenuEvent){ System.out.println(event); } } public void run() throws IOException, AuthenticationFailedException, TimeoutException, InterruptedException { ManagerConnectionFactory factory = new ManagerConnectionFactory("1.1.1.2", "a", "p"); ManagerConnection managerConnection = factory.createManagerConnection(); managerConnection.registerUserEventClass(MenuEvent.class); OriginateAction originateAction; originateAction = new OriginateAction(); originateAction.setChannel("SIP/eu"); originateAction.setContext("ivr"); originateAction.setExten("400"); originateAction.setPriority(new Integer(1)); managerConnection.addEventListener(this); managerConnection.login(); managerConnection.sendAction(originateAction, 30000); Thread.sleep(60); managerConnection.logoff(); } public static void main(String[] args) throws Exception { AsteriskLive helloLiveEvents = new AsteriskLive(); helloLiveEvents.run(); } } And the MenuEvent class public class MenuEvent extends UserEvent { public MenuEvent(Object source) { super(source); } private static final long serialVersionUID = 1L; } And the extensions.conf exten => 1,2,MP3Player(confirmed.mp3) exten => 1,1,UserEvent(Menu,uid:${UNIQUEID},selection:${EXTEN}) On Wed, Jan 2, 2013 at 2:27 PM, Mordechay Kaganer <mka...@gm...>wrote: > B.H. > > > > On Wed, Jan 2, 2013 at 5:49 PM, Kelly Goedert <kel...@gm...>wrote: > >> Hi, > > > Hello > > >> >> I need to originate a call from java, this call is made to an extension >> which plays menu options to the user, like, press 1 to confirm and 2 to >> cancel. >> >> I originate a call to the extension 400@ivr that looks like this: >> >> [ivr] >> exten => 400,1,MP3Player(sound1.mp3) >> exten => 400,2,Background(menu.mp3) >> exten => 400,n,WaitExten(5) >> >> exten => 1,1,MP3Player(confirmed.mp3) >> >> exten => 2,1,MP3Player(cancel.mp3) >> exten => 3,1,MP3Player(later.mp3) >> exten => 4,1,Goto(ivr,400,2) >> exten => i,1,MP3Player(invalid.mp3) >> exten => t,1,Hangup() >> >> Is it possible to know if the user selected 1,2,3 or 4? If so, how can I >> do that? >> >> Thanks >> >> Kelly >> >> > AFAIK, Asterisk 1.4 sends NewExtenEvent on every priority in the dialplan > but the later versions do not send this event. I would recommend to use > cusom UserEvent like this on every extention of the menu: > > exten => s,n,UserEvent(MENU,uid: ${UNIQUEID},selection: ${EXTEN}) > > (you need to pass the channel's UNIQUEID because for some reason it is not > passed automatically by asterisk for user events) > > Then you create a class MenuEvent (The class name matters!) which > extends org.asteriskjava.manager.event.UserEvent and register it with your > AMI connection: > > connection.registerUserEventClass(MenuEvent.class); > > Another solution whould be to use FastAGI, if it is applicable in your > case > > >> >> >> ------------------------------------------------------------------------------ >> 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 >> >> > Best regards, Mordechay > > -- > משיח NOW! > Moshiach is coming very soon, prepare yourself! > יחי אדוננו מורינו ורבינו מלך המשיח לעולם ועד! > > > ------------------------------------------------------------------------------ > 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 > > |
From: Mordechay K. <mka...@gm...> - 2013-01-02 16:27:53
|
B.H. On Wed, Jan 2, 2013 at 5:49 PM, Kelly Goedert <kel...@gm...>wrote: > Hi, Hello > > I need to originate a call from java, this call is made to an extension > which plays menu options to the user, like, press 1 to confirm and 2 to > cancel. > > I originate a call to the extension 400@ivr that looks like this: > > [ivr] > exten => 400,1,MP3Player(sound1.mp3) > exten => 400,2,Background(menu.mp3) > exten => 400,n,WaitExten(5) > > exten => 1,1,MP3Player(confirmed.mp3) > > exten => 2,1,MP3Player(cancel.mp3) > exten => 3,1,MP3Player(later.mp3) > exten => 4,1,Goto(ivr,400,2) > exten => i,1,MP3Player(invalid.mp3) > exten => t,1,Hangup() > > Is it possible to know if the user selected 1,2,3 or 4? If so, how can I > do that? > > Thanks > > Kelly > > AFAIK, Asterisk 1.4 sends NewExtenEvent on every priority in the dialplan but the later versions do not send this event. I would recommend to use cusom UserEvent like this on every extention of the menu: exten => s,n,UserEvent(MENU,uid: ${UNIQUEID},selection: ${EXTEN}) (you need to pass the channel's UNIQUEID because for some reason it is not passed automatically by asterisk for user events) Then you create a class MenuEvent (The class name matters!) which extends org.asteriskjava.manager.event.UserEvent and register it with your AMI connection: connection.registerUserEventClass(MenuEvent.class); Another solution whould be to use FastAGI, if it is applicable in your case > > > ------------------------------------------------------------------------------ > 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 > > Best regards, Mordechay -- משיח NOW! Moshiach is coming very soon, prepare yourself! יחי אדוננו מורינו ורבינו מלך המשיח לעולם ועד! |
From: Kelly G. <kel...@gm...> - 2013-01-02 15:50:08
|
Hi, I need to originate a call from java, this call is made to an extension which plays menu options to the user, like, press 1 to confirm and 2 to cancel. I originate a call to the extension 400@ivr that looks like this: [ivr] exten => 400,1,MP3Player(sound1.mp3) exten => 400,2,Background(menu.mp3) exten => 400,n,WaitExten(5) exten => 1,1,MP3Player(confirmed.mp3) exten => 2,1,MP3Player(cancel.mp3) exten => 3,1,MP3Player(later.mp3) exten => 4,1,Goto(ivr,400,2) exten => i,1,MP3Player(invalid.mp3) exten => t,1,Hangup() Is it possible to know if the user selected 1,2,3 or 4? If so, how can I do that? Thanks Kelly |
From: Sebastian G. <sc...@gm...> - 2012-12-27 22:20:53
|
this is the only docs in existence: https://github.com/davies147/astmanproxy ssl.c is where the ssl connection is handled On Dec 27, 2012, at 8:04 PM, Stefan Reuter <ste...@re...> wrote: > On 12/27/2012 03:05 AM, Sebastian Gutierrez wrote: >> I´ve move forward some more, the thing is the same port is for both SSL >> and no SSL connection in astmanproxy, it can handle encrypted and >> unencrypted requests. > > Can you provide some docs of astmanproxy that shows what they are doing? > is this some kind of STARTTLS to use the same port for SSL/plain? > > =Stefan > > > ------------------------------------------------------------------------------ > 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_122712 > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users |
From: Stefan R. <ste...@re...> - 2012-12-27 22:04:25
|
On 12/27/2012 03:05 AM, Sebastian Gutierrez wrote: > I´ve move forward some more, the thing is the same port is for both SSL > and no SSL connection in astmanproxy, it can handle encrypted and > unencrypted requests. Can you provide some docs of astmanproxy that shows what they are doing? is this some kind of STARTTLS to use the same port for SSL/plain? =Stefan |
From: Sebastian G. <sc...@gm...> - 2012-12-27 02:05:32
|
Stefan, I´ve move forward some more, the thing is the same port is for both SSL and no SSL connection in astmanproxy, it can handle encrypted and unencrypted requests. so I configured astmanproxy to only accept ssl connections. Other important thing is to add to my app to accept the self signed certificate so I used a method to accept them all: (https://devcentral.f5.com/blogs/us/ssl-trust-provider-for-java#.UNs1cqX747l) so with this I was able to connect from MAC OS X correctly to the proxy with the ssl connection So I get in the debug of the proxy something like this: Dec 26 15:40:52: Received a SSL request Dec 26 15:40:52: is_encrypted: 1 Dec 26 15:40:52: ssl_addon: Connection accepted Dec 26 15:40:52: Connection received from 192.168.99.13 Dec 26 15:40:52: Set 192.168.99.13 input format to standard Dec 26 15:40:52: Set 192.168.99.13 output format to standard Dec 26 15:40:52: calling standard_read... Dec 26 15:40:52: Received 60 bytes from SSL socket Dec 26 15:40:52: Returning standard block of 3 lines, res 1 Dec 26 15:40:52: standard_read result = 1 and everything works fine. But now the issues is that if I use Windows as the client I get: Dec 26 15:45:52: is_encrypted: 0 with the same code….. I will try to get some pcap file to analize whats the difference between them, maybe the initial handshake??. Any idea? thanks! On Dec 26, 2012, at 11:20 PM, Stefan Reuter <ste...@re...> wrote: > On 12/26/2012 05:47 PM, Sebastian Gutierrez wrote: >> now I´m seeing this: >> >> Terminating reader thread: Unrecognized SSL message, plaintext connection? > > Do you use the correct SSL port? The error message sounds as if you are > connecting to a non-SSL port. > > =Stefan > > >> >> thanks >> >> >> Begin forwarded message: >> >>> *From: *Sebastian Gutierrez <sc...@gm... <mailto:sc...@gm...>> >>> *Subject: **Trying to Log in Astmanproxy SSL* >>> *Date: *December 18, 2012 3:08:06 PM GMT-02:00 >>> *To: *"ast...@li... >>> <mailto:ast...@li...>" >>> <ast...@li... >>> <mailto:ast...@li...>> >>> >>> Hi, >>> >>> >>> I´m trying to change my connection from plain text to SSL, connection >>> to Astmanproxy like this, >>> >>> I changed the ManagerConnectionFactory factory = new >>> ManagerConnectionFactory(Config.AsteriskIP, Config.AsteriskPort, >>> Config.Agent, Config.Secret); >>> managerConnection = factory.createSecureManagerConnection(); >>> >>> to have an SSL conecction, using the default astmanproxy certificate >>> >>> and I can see: >>> >>> >>> 2012-12-18 02:56:36.766 - [14] - [ManagerConnectionImpl.connect] - >>> [INFO] - Connecting to 192.168.99.249:4530 >>> 2012-12-18 02:56:38.477 - [19] - [ManagerReaderImpl.run] - [INFO] - >>> Terminating reader thread: Remote host closed connection during handshake >>> 2012-12-18 02:56:39.004 - [14] - [ManagerConnectionImpl.disconnect] - >>> [INFO] - Closing socket. >>> 2012-12-18 02:56:39.009 - [14] - [AstConnection.login] - [SEVERE] - >>> javax.net.ssl.SSLHandshakeException: Remote host closed connection >>> during handshake >>> >>> Java Result: 255 >>> >>> >>> On astmanproxy debug: Dec 18 14:55:49: is_encrypted: 0 >>> >>> >>> any idea??? >>> >>> >>> >>> thanks >>> >>> best regards. >>> >> >> >> >> ------------------------------------------------------------------------------ >> LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial >> Remotely access PCs and mobile devices and provide instant support >> Improve your efficiency, and focus on delivering more value-add services >> Discover what IT Professionals Know. Rescue delivers >> http://p.sf.net/sfu/logmein_12329d2d >> >> >> >> _______________________________________________ >> Asterisk-java-users mailing list >> Ast...@li... >> https://lists.sourceforge.net/lists/listinfo/asterisk-java-users >> > > > -- > reuter network consulting > Im Zollhafen 14 > 50678 Koeln > Germany > Telefon: +49 251 530289-20 > Telefax: +49 251 530289-29 > E-Mail: ste...@re... > WWW: http://www.reucon.com > > Steuernummern 215/5140/1791 USt-IdNr. DE220701760 > > > ------------------------------------------------------------------------------ > 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_122712 > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users |
From: Stefan R. <ste...@re...> - 2012-12-27 01:40:46
|
On 12/26/2012 05:47 PM, Sebastian Gutierrez wrote: > now I´m seeing this: > > Terminating reader thread: Unrecognized SSL message, plaintext connection? Do you use the correct SSL port? The error message sounds as if you are connecting to a non-SSL port. =Stefan > > thanks > > > Begin forwarded message: > >> *From: *Sebastian Gutierrez <sc...@gm... <mailto:sc...@gm...>> >> *Subject: **Trying to Log in Astmanproxy SSL* >> *Date: *December 18, 2012 3:08:06 PM GMT-02:00 >> *To: *"ast...@li... >> <mailto:ast...@li...>" >> <ast...@li... >> <mailto:ast...@li...>> >> >> Hi, >> >> >> I´m trying to change my connection from plain text to SSL, connection >> to Astmanproxy like this, >> >> I changed the ManagerConnectionFactory factory = new >> ManagerConnectionFactory(Config.AsteriskIP, Config.AsteriskPort, >> Config.Agent, Config.Secret); >> managerConnection = factory.createSecureManagerConnection(); >> >> to have an SSL conecction, using the default astmanproxy certificate >> >> and I can see: >> >> >> 2012-12-18 02:56:36.766 - [14] - [ManagerConnectionImpl.connect] - >> [INFO] - Connecting to 192.168.99.249:4530 >> 2012-12-18 02:56:38.477 - [19] - [ManagerReaderImpl.run] - [INFO] - >> Terminating reader thread: Remote host closed connection during handshake >> 2012-12-18 02:56:39.004 - [14] - [ManagerConnectionImpl.disconnect] - >> [INFO] - Closing socket. >> 2012-12-18 02:56:39.009 - [14] - [AstConnection.login] - [SEVERE] - >> javax.net.ssl.SSLHandshakeException: Remote host closed connection >> during handshake >> >> Java Result: 255 >> >> >> On astmanproxy debug: Dec 18 14:55:49: is_encrypted: 0 >> >> >> any idea??? >> >> >> >> thanks >> >> best regards. >> > > > > ------------------------------------------------------------------------------ > LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial > Remotely access PCs and mobile devices and provide instant support > Improve your efficiency, and focus on delivering more value-add services > Discover what IT Professionals Know. Rescue delivers > http://p.sf.net/sfu/logmein_12329d2d > > > > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > -- reuter network consulting Im Zollhafen 14 50678 Koeln Germany Telefon: +49 251 530289-20 Telefax: +49 251 530289-29 E-Mail: ste...@re... WWW: http://www.reucon.com Steuernummern 215/5140/1791 USt-IdNr. DE220701760 |
From: Sebastian G. <sc...@gm...> - 2012-12-26 16:48:02
|
now I´m seeing this: Terminating reader thread: Unrecognized SSL message, plaintext connection? anyone was able to implement this?? thanks Begin forwarded message: > From: Sebastian Gutierrez <sc...@gm...> > Subject: Trying to Log in Astmanproxy SSL > Date: December 18, 2012 3:08:06 PM GMT-02:00 > To: "ast...@li..." <ast...@li...> > > Hi, > > > I´m trying to change my connection from plain text to SSL, connection to Astmanproxy like this, > > I changed the ManagerConnectionFactory factory = new ManagerConnectionFactory(Config.AsteriskIP, Config.AsteriskPort, Config.Agent, Config.Secret); > managerConnection = factory.createSecureManagerConnection(); > > to have an SSL conecction, using the default astmanproxy certificate > > and I can see: > > > 2012-12-18 02:56:36.766 - [14] - [ManagerConnectionImpl.connect] - [INFO] - Connecting to 192.168.99.249:4530 > 2012-12-18 02:56:38.477 - [19] - [ManagerReaderImpl.run] - [INFO] - Terminating reader thread: Remote host closed connection during handshake > 2012-12-18 02:56:39.004 - [14] - [ManagerConnectionImpl.disconnect] - [INFO] - Closing socket. > 2012-12-18 02:56:39.009 - [14] - [AstConnection.login] - [SEVERE] - javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake > > Java Result: 255 > > > On astmanproxy debug: Dec 18 14:55:49: is_encrypted: 0 > > > any idea??? > > > > thanks > > best regards. > |
From: sashikumar K. <yo...@gm...> - 2012-12-20 03:16:27
|
sorry i am available. On Thu, Dec 20, 2012 at 5:47 AM, David Fire <dd...@gm...> wrote: > Hi, > Sorry for the offtopic. > I am looking a java freelancer for a very small java desktop app. it will > include a very small GUI and some UDP sending reciving. > Contact to my email > Thanks > > -- > (\__/) > (='.'=)This is Bunny. Copy and paste bunny into your > (")_(")signature to help him gain world domination. > > ------------------------------------------------------------------------------ > LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial > Remotely access PCs and mobile devices and provide instant support > Improve your efficiency, and focus on delivering more value-add services > Discover what IT Professionals Know. Rescue delivers > http://p.sf.net/sfu/logmein_12329d2d > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > |
From: sashikumar K. <yo...@gm...> - 2012-12-20 02:59:38
|
i am available as well. On Thu, Dec 20, 2012 at 5:51 AM, thenewmexican64 <spn...@ya...> wrote: > I'm available ! > > > ________________________________ > From: David Fire <dd...@gm...> > To: ast...@li... > Sent: Wednesday, December 19, 2012 2:47 PM > Subject: [Asterisk-java-users] [OFFTOPIC] Any Freelancer? > > Hi, > Sorry for the offtopic. > I am looking a java freelancer for a very small java desktop app. it will > include a very small GUI and some UDP sending reciving. > Contact to my email > Thanks > > -- > (\__/) > (='.'=)This is Bunny. Copy and paste bunny into your > (")_(")signature to help him gain world domination. > > ------------------------------------------------------------------------------ > LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial > Remotely access PCs and mobile devices and provide instant support > Improve your efficiency, and focus on delivering more value-add services > Discover what IT Professionals Know. Rescue delivers > http://p.sf.net/sfu/logmein_12329d2d > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > > > ------------------------------------------------------------------------------ > LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial > Remotely access PCs and mobile devices and provide instant support > Improve your efficiency, and focus on delivering more value-add services > Discover what IT Professionals Know. Rescue delivers > http://p.sf.net/sfu/logmein_12329d2d > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > |
From: David F. <dd...@gm...> - 2012-12-19 21:48:19
|
Hi, Sorry for the offtopic. I am looking a java freelancer for a very small java desktop app. it will include a very small GUI and some UDP sending reciving. Contact to my email Thanks -- (\__/) (='.'=)This is Bunny. Copy and paste bunny into your (")_(")signature to help him gain world domination. |
From: Sebastian G. <sc...@gm...> - 2012-12-18 17:08:17
|
Hi, I´m trying to change my connection from plain text to SSL, connection to Astmanproxy like this, I changed the ManagerConnectionFactory factory = new ManagerConnectionFactory(Config.AsteriskIP, Config.AsteriskPort, Config.Agent, Config.Secret); managerConnection = factory.createSecureManagerConnection(); to have an SSL conecction, using the default astmanproxy certificate and I can see: 2012-12-18 02:56:36.766 - [14] - [ManagerConnectionImpl.connect] - [INFO] - Connecting to 192.168.99.249:4530 2012-12-18 02:56:38.477 - [19] - [ManagerReaderImpl.run] - [INFO] - Terminating reader thread: Remote host closed connection during handshake 2012-12-18 02:56:39.004 - [14] - [ManagerConnectionImpl.disconnect] - [INFO] - Closing socket. 2012-12-18 02:56:39.009 - [14] - [AstConnection.login] - [SEVERE] - javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake Java Result: 255 On astmanproxy debug: Dec 18 14:55:49: is_encrypted: 0 any idea??? thanks best regards. |
From: Manushak M. <mma...@ya...> - 2012-12-14 20:39:01
|
I am using asterisk-java for my tomcat application. There is registered event listener which is sending actions while processing for some events. And periodically is receiving this error and manager is reconnecting again. 2012-12-13 18:18:30,562 INFO ManagerReaderImpl - Terminating reader thread: No more lines available: null 2012-12-13 18:18:30,750 INFO ManagerConnectionImpl - Closing socket. What was the problem? ________________________________ From: "ast...@li..." <ast...@li...> To: mma...@ya... Sent: Saturday, December 15, 2012 12:32 AM Subject: confirm 700469f86a937fc966731a40ff2a89d19d8b0496 Mailing list subscription confirmation notice for mailing list Asterisk-java-users We have received a request from 172.29.29.5 for subscription of your email address, "mma...@ya...", to the ast...@li... mailing list. To confirm that you want to be added to this mailing list, simply reply to this message, keeping the Subject: header intact. Or visit this web page: https://lists.sourceforge.net/lists/confirm/asterisk-java-users/700469f86a937fc966731a40ff2a89d19d8b0496 Or include the following line -- and only the following line -- in a message to ast...@li...: confirm 700469f86a937fc966731a40ff2a89d19d8b0496 Note that simply sending a `reply' to this message should work from most mail readers, since that usually leaves the Subject: line in the right form (additional "Re:" text in the Subject: is okay). If you do not wish to be subscribed to this list, please simply disregard this message. If you think you are being maliciously subscribed to the list, or have any other questions, send them to ast...@li.... |
From: pranav t. <pra...@gm...> - 2012-11-24 06:38:49
|
Hi Mordechay , Thanks alot. I will use this and Thanks again for immediate reply . Thanks & Regards Pranav Thipse. On Fri, Nov 23, 2012 at 6:55 PM, Mordechay Kaganer <mka...@gm...>wrote: > B.H. > > Hi! > > I have sent a patch to add some missing properties and events for > (probably partial) support of Asterisk 1.8. The patch is attached. I'm > using this version with stock Asterisk 1.8 packages from Ubuntu 12.04 LTS > and it works fine for me. > > The compiled patched version of Asterisk-Java jar can be downloaded here: > > > https://dl.dropbox.com/u/89769987/asterisk-java-1.0.0-patched-for-asterisk18.jar > > > > On Fri, Nov 23, 2012 at 2:54 PM, pranav thipse <pra...@gm...>wrote: > >> Hi all >> >> >> I was working with asterisk 1.6 and asterisk-java-1.0.0.M3 It was working >> fine but had to upgrade to asterisk 1.8LTS and From below link as >> >> https://blogs.reucon.com/asterisk-java/faq-where-is-the-mailing-list-516/ >> >> as Stefan Reuter <https://blogs.reucon.com/asterisk-java/author/srt/>says It works with asterisk 1.8 I started working with asterisk 1.8.18.0 >> which is current and latest >> >> but While placing call to konferenec i.e originating call from >> SIP/extension to konferenec (0410 is my konference) I am getting following >> warning >> >> 02:26:20,755 WARN EventBuilderImpl:66 - Unable to set property >> 'connectedlinename' to '<unknown>' on >> org.asteriskjava.manager.event.HangupEvent: no setter. Please report at >> http://jira.reucon.org/browse/AJ >> >> 02:26:20,755 WARN EventBuilderImpl:66 - Unable to set property >> 'connectedlinenum' to '0410' on org.asteriskjava.manager.event.HangupEvent: >> no setter. Please report at http://jira.reucon.org/browse/AJ >> >> AsteriskChannel[id='1353655580.196',name='SIP/0210-000000c4',callerId='',state='DOWN',account='null',dateOfCreation=Fri >> Nov 23 02:26:20 EST >> 2012,dialedChannel=null,dialingChannel=null,linkedChannel=null]and after >> that my call hangs up with INFO message >> >> >> 02:26:20,802 INFO ChannelManager:590 - Removing channel >> SIP/0210-000000c4 due to hangup (BEARERCAPABILITY_NOTAVAIL) >> >> >> can anybody please guide me what wrong is happening what is causing the >> call hangup is it asterisk or asteriskjava or something else ?. >> and does asteriskjava supports asterisk 1.8.18.0 ? and what should I do >> to get rid of these warning messages >> >> Thanks in advance >> Pranav >> >> >> >> >> >> ------------------------------------------------------------------------------ >> Monitor your physical, virtual and cloud infrastructure from a single >> web console. Get in-depth insight into apps, servers, databases, vmware, >> SAP, cloud infrastructure, etc. Download 30-day Free Trial. >> Pricing starts from $795 for 25 servers or applications! >> http://p.sf.net/sfu/zoho_dev2dev_nov >> _______________________________________________ >> Asterisk-java-users mailing list >> Ast...@li... >> https://lists.sourceforge.net/lists/listinfo/asterisk-java-users >> >> > > > -- > משיח NOW! > Moshiach is coming very soon, prepare yourself! > יחי אדוננו מורינו ורבינו מלך המשיח לעולם ועד! > > > > ------------------------------------------------------------------------------ > Monitor your physical, virtual and cloud infrastructure from a single > web console. Get in-depth insight into apps, servers, databases, vmware, > SAP, cloud infrastructure, etc. Download 30-day Free Trial. > Pricing starts from $795 for 25 servers or applications! > http://p.sf.net/sfu/zoho_dev2dev_nov > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > |
From: pranav t. <pra...@gm...> - 2012-11-23 12:55:00
|
Hi all I was working with asterisk 1.6 and asterisk-java-1.0.0.M3 It was working fine but had to upgrade to asterisk 1.8LTS and From below link as https://blogs.reucon.com/asterisk-java/faq-where-is-the-mailing-list-516/ as Stefan Reuter <https://blogs.reucon.com/asterisk-java/author/srt/> says It works with asterisk 1.8 I started working with asterisk 1.8.18.0 which is current and latest but While placing call to konferenec i.e originating call from SIP/extension to konferenec (0410 is my konference) I am getting following warning 02:26:20,755 WARN EventBuilderImpl:66 - Unable to set property 'connectedlinename' to '<unknown>' on org.asteriskjava.manager.event.HangupEvent: no setter. Please report at http://jira.reucon.org/browse/AJ 02:26:20,755 WARN EventBuilderImpl:66 - Unable to set property 'connectedlinenum' to '0410' on org.asteriskjava.manager.event.HangupEvent: no setter. Please report at http://jira.reucon.org/browse/AJ AsteriskChannel[id='1353655580.196',name='SIP/0210-000000c4',callerId='',state='DOWN',account='null',dateOfCreation=Fri Nov 23 02:26:20 EST 2012,dialedChannel=null,dialingChannel=null,linkedChannel=null]and after that my call hangs up with INFO message 02:26:20,802 INFO ChannelManager:590 - Removing channel SIP/0210-000000c4 due to hangup (BEARERCAPABILITY_NOTAVAIL) can anybody please guide me what wrong is happening what is causing the call hangup is it asterisk or asteriskjava or something else ?. and does asteriskjava supports asterisk 1.8.18.0 ? and what should I do to get rid of these warning messages Thanks in advance Pranav |
From: Yves A. <yv...@gm...> - 2012-11-16 14:40:13
|
due to lack of time just a short hint... use a CallBackHandler.... (take a look in the docs to get more information about it) this will give you all the infos you need synchronously. regards, yves Am 15.11.2012 16:01, schrieb vic neiman: > Hello everyone, > > I write some code to originate a call from a Java app to an Asterisk > instance that looks like this: > > DefaultAsteriskServer astServer = new DefaultAsteriskServer(ip, > "manager", "password"); > AsteriskChannel asteriskChannel = astServer. > originateToExtension(channel, context, exten, priority, timeout); > > The code works and the call happens but I was expecting the > AsteriskChannel object to come back populated with data about the > dailed channel, however, asteriskChannel.getDialedChannel() is set to > null. Is there a setting on Asterisk that will populate the returned > object? > > What I am looking for is to get information about the call I > originated back to the Java app -- things like call duration, > disposition and such. > > Regards > > > ------------------------------------------------------------------------------ > Monitor your physical, virtual and cloud infrastructure from a single > web console. Get in-depth insight into apps, servers, databases, vmware, > SAP, cloud infrastructure, etc. Download 30-day Free Trial. > Pricing starts from $795 for 25 servers or applications! > http://p.sf.net/sfu/zoho_dev2dev_nov > > > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users |