Thread: [Asterisk-java-devel] Queries regarding Asterisk & Asterisk-java compatibility
Brought to you by:
srt
From: Sourabh R. J. <sou...@im...> - 2008-04-22 14:20:39
|
Hi, We are exploring asterisk 1.6beta and asterisk-java 1.0. We do have following queries regarding the same * As we are using asterisk 1.6beta with asterisk-java 1.0 we found some peculiar behavior * We are getting TimeoutException on asterisk-java, when we send some actions from our asterisk-java program. though the actions are executed successfully on asterisk. (e.g SetVar() action) * We are not getting the Hold/UnHold events on the asterisk-Java when a phone call goes on Hold/UnHold * Is there any compatibility issues with the asterisk-java 1.0 with Asterisk 1.6 * as both are in beta releases, so can any one do let us know when these will be available with their final releases * We use MeetMe feature to create the conference of users * We were able to create the conference between the users, but when users joins the conference, after some time asterisk automatically hang-up all the connected users. * Please let us know if it requires any sort of settings in any configuration file. Thanks in Advance Sourabh |
From: Sourabh R. J. <sou...@im...> - 2008-04-22 14:34:41
|
Hi, We are exploring asterisk 1.6beta and asterisk-java 1.0. We do have following queries regarding the same * As we are using asterisk 1.6beta with asterisk-java 1.0 we found some peculiar behavior * We are getting TimeoutException on asterisk-java, when we send some actions from our asterisk-java program. though the actions are executed successfully on asterisk. (e.g SetVar() action) * We are not getting the Hold/UnHold events on the asterisk-Java when a phone call goes on Hold/UnHold * Is there any compatibility issues with the asterisk-java 1.0 with Asterisk 1.6 * as both are in beta releases, so can any one do let us know when these will be available with their final releases * We use MeetMe feature to create the conference of users * We were able to create the conference between the users, but when users joins the conference, after some time asterisk automatically hang-up all the connected users. * Please let us know if it requires any sort of settings in any configuration file. Thanks in Advance Sourabh |
From: Martin S. <ma...@be...> - 2008-04-22 16:15:36
|
Hello Sourabh, I don't run A-J against Asterisk 1.6, so I can't speak to that, but that timeout is often a result of an identier being changed on the Asterisk revision. As long as it reverts to 1.4 behvavior, it might be okay -- but keep us posted! And Re: the conference thing, it sounds like a bug. Hanging up on connected users is probably not the intention 8) Martin Smith, Systems Developer ma...@be... Bureau of Economic and Business Research University of Florida (352) 392-0171 Ext. 221 ________________________________ From: ast...@li... [mailto:ast...@li...] On Behalf Of Sourabh R. Jain Sent: Tuesday, April 22, 2008 10:34 AM To: ast...@li... Subject: [Asterisk-java-devel] Queries regarding Asterisk & Asterisk-javacompatibility Hi, We are exploring asterisk 1.6beta and asterisk-java 1.0. We do have following queries regarding the same * As we are using asterisk 1.6beta with asterisk-java 1.0 we found some peculiar behavior * We are getting TimeoutException on asterisk-java, when we send some actions from our asterisk-java program. though the actions are executed successfully on asterisk. (e.g SetVar() action) * We are not getting the Hold/UnHold events on the asterisk-Java when a phone call goes on Hold/UnHold * Is there any compatibility issues with the asterisk-java 1.0 with Asterisk 1.6 * as both are in beta releases, so can any one do let us know when these will be available with their final releases * We use MeetMe feature to create the conference of users * We were able to create the conference between the users, but when users joins the conference, after some time asterisk automatically hang-up all the connected users. * Please let us know if it requires any sort of settings in any configuration file. Thanks in Advance Sourabh |
From: Sourabh R. J. <sou...@im...> - 2008-04-23 08:23:03
|
Hi Stefan, Thanks for the prompt reply. Regarding, not getting the hold/un-hold event, we have already given all the rights to manager user (read/write) in the manager.conf file. Below is the excerpt from the manager.conf file that we are using currently Manager.conf =================================== [manager] secret = qwe permit=0.0.0.0/0.0.0.0 read=system,call,log,verbose,command,agent,user,config,originate,all write=system,call,log,verbose,command,agent,user,config,originate,all =================================== For your reference, the code snippet is like Java Code Snippet ================ ManagerConnectionFactory factory = new ManagerConnectionFactory("ape11", 5038, "manager", "qwe") this.managerConnection = factory.createManagerConnection(); managerConnection.addEventListener(this); managerConnection.login(); ================ Also, attached the Java program with this mail - To go through how we put a custmer on hold/un-hold Following is the few lines from dial-plan, written in extension.conf file to place a user on hold. To unhold we swicth the user to some other context Extension.conf ============================ exten => 2003,1,Answer() exten => 2003,n,Wait(2) exten => 2003,n,MusicOnHold(default) =========================== It will be great help if we can hear something from you on the above issue. Also, your suggestion to correct/improve the above scenario is welcome. Regards, Sourabh Jain Senior Software Engineer | Impetus infotech pvt. ltd. ________________________________________ From: ast...@li... [ast...@li...] On Behalf Of Stefan Reuter [ste...@re...] Sent: Wednesday, April 23, 2008 5:03 AM To: ast...@li... Subject: Re: [Asterisk-java-devel] Queries regarding Asterisk & Asterisk-java compatibility Sourabh R. Jain wrote: > o > We are getting TimeoutException on asterisk-java, when we > send some actions from our asterisk-java program. though the > actions are executed successfully on asterisk. (e.g SetVar() > action) Does that happen with all actions or only with a few? Does it also happen when you run your Asterisk-Java app and Asterisk on the same server? > o > We are not getting the Hold/UnHold events on the > asterisk-Java when a phone call goes on Hold/UnHold Make sure the section of your user in manager.conf contains read=all write=all Example: [general] enabled = yes port = 5038 [manager] secret=pa55w0rd read=all write=all > * > Is there any compatibility issues with the asterisk-java 1.0 with > Asterisk 1.6 > o > as both are in beta releases, so can any one do let us know > when these will be available with their final releases I can only speak for Asterisk-Java. It's 1.0.0 release will be available after Asterisk 1.6 has been released. > We use MeetMe feature to create the conference of users > o > We were able to create the conference between the users, but > when users joins the conference, after some time > asterisk automatically hang-up all the connected users. This seems to be more of an Asterisk issue than an Asterisk-Java one. I have not yet tested MeetMe in 1.6 extensivly. =Stefan -- reuter network consulting Neusser Str. 110 50760 Koeln Germany Telefon: +49 221 1305699-0 Telefax: +49 221 1305699-90 E-Mail: ste...@re... Jabber: ste...@re... WWW: http://www.reucon.com Steuernummern 215/5140/1791 USt-IdNr. DE220701760 |
From: Sourabh R. J. <sou...@im...> - 2008-04-23 08:24:11
Attachments:
CustomerHoldUnHold.java
|
oops!! missed to attached the Java file. ________________________________________ From: Sourabh R. Jain Sent: Wednesday, April 23, 2008 1:52 PM To: ast...@li... Cc: Sourabh R. Jain Subject: RE: [Asterisk-java-devel] Queries regarding Asterisk & Asterisk-java compatibility Hi Stefan, Thanks for the prompt reply. Regarding, not getting the hold/un-hold event, we have already given all the rights to manager user (read/write) in the manager.conf file. Below is the excerpt from the manager.conf file that we are using currently Manager.conf =================================== [manager] secret = qwe permit=0.0.0.0/0.0.0.0 read=system,call,log,verbose,command,agent,user,config,originate,all write=system,call,log,verbose,command,agent,user,config,originate,all =================================== For your reference, the code snippet is like Java Code Snippet ================ ManagerConnectionFactory factory = new ManagerConnectionFactory("ape11", 5038, "manager", "qwe") this.managerConnection = factory.createManagerConnection(); managerConnection.addEventListener(this); managerConnection.login(); ================ Also, attached the Java program with this mail - To go through how we put a custmer on hold/un-hold Following is the few lines from dial-plan, written in extension.conf file to place a user on hold. To unhold we swicth the user to some other context Extension.conf ============================ exten => 2003,1,Answer() exten => 2003,n,Wait(2) exten => 2003,n,MusicOnHold(default) =========================== It will be great help if we can hear something from you on the above issue. Also, your suggestion to correct/improve the above scenario is welcome. Regards, Sourabh Jain Senior Software Engineer | Impetus infotech pvt. ltd. ________________________________________ From: ast...@li... [ast...@li...] On Behalf Of Stefan Reuter [ste...@re...] Sent: Wednesday, April 23, 2008 5:03 AM To: ast...@li... Subject: Re: [Asterisk-java-devel] Queries regarding Asterisk & Asterisk-java compatibility Sourabh R. Jain wrote: > o > We are getting TimeoutException on asterisk-java, when we > send some actions from our asterisk-java program. though the > actions are executed successfully on asterisk. (e.g SetVar() > action) Does that happen with all actions or only with a few? Does it also happen when you run your Asterisk-Java app and Asterisk on the same server? > o > We are not getting the Hold/UnHold events on the > asterisk-Java when a phone call goes on Hold/UnHold Make sure the section of your user in manager.conf contains read=all write=all Example: [general] enabled = yes port = 5038 [manager] secret=pa55w0rd read=all write=all > * > Is there any compatibility issues with the asterisk-java 1.0 with > Asterisk 1.6 > o > as both are in beta releases, so can any one do let us know > when these will be available with their final releases I can only speak for Asterisk-Java. It's 1.0.0 release will be available after Asterisk 1.6 has been released. > We use MeetMe feature to create the conference of users > o > We were able to create the conference between the users, but > when users joins the conference, after some time > asterisk automatically hang-up all the connected users. This seems to be more of an Asterisk issue than an Asterisk-Java one. I have not yet tested MeetMe in 1.6 extensivly. =Stefan -- reuter network consulting Neusser Str. 110 50760 Koeln Germany Telefon: +49 221 1305699-0 Telefax: +49 221 1305699-90 E-Mail: ste...@re... Jabber: ste...@re... WWW: http://www.reucon.com Steuernummern 215/5140/1791 USt-IdNr. DE220701760 |
From: Stefan R. <ste...@re...> - 2008-04-22 23:33:57
Attachments:
signature.asc
|
Sourabh R. Jain wrote: > o > We are getting TimeoutException on asterisk-java, when we > send some actions from our asterisk-java program. though the > actions are executed successfully on asterisk. (e.g SetVar() > action) Does that happen with all actions or only with a few? Does it also happen when you run your Asterisk-Java app and Asterisk on the same server? > o > We are not getting the Hold/UnHold events on the > asterisk-Java when a phone call goes on Hold/UnHold Make sure the section of your user in manager.conf contains read=all write=all Example: [general] enabled = yes port = 5038 [manager] secret=pa55w0rd read=all write=all > * > Is there any compatibility issues with the asterisk-java 1.0 with > Asterisk 1.6 > o > as both are in beta releases, so can any one do let us know > when these will be available with their final releases I can only speak for Asterisk-Java. It's 1.0.0 release will be available after Asterisk 1.6 has been released. > We use MeetMe feature to create the conference of users > o > We were able to create the conference between the users, but > when users joins the conference, after some time > asterisk automatically hang-up all the connected users. This seems to be more of an Asterisk issue than an Asterisk-Java one. I have not yet tested MeetMe in 1.6 extensivly. =Stefan -- reuter network consulting Neusser Str. 110 50760 Koeln Germany Telefon: +49 221 1305699-0 Telefax: +49 221 1305699-90 E-Mail: ste...@re... Jabber: ste...@re... WWW: http://www.reucon.com Steuernummern 215/5140/1791 USt-IdNr. DE220701760 |
From: Sourabh R. J. <sou...@im...> - 2008-04-24 09:26:05
|
Hi Stefan, Below mail is related with the timeout when using Meetme feature of asterisk1.6. There is one parameters “schedule” in the meetme.conf is set to yes, the application by default sets up conferences for only 60 seconds even its hold true for the dynamic conference. So, setting it "schedule=no" in meetme.conf file help us to get rid from the issue. Sharing it, so that others can get benefit of it. ________________________________________ From: ast...@li... [ast...@li...] On Behalf Of Stefan Reuter [ste...@re...] Sent: Wednesday, April 23, 2008 5:03 AM To: ast...@li... Subject: Re: [Asterisk-java-devel] Queries regarding Asterisk & Asterisk-java compatibility Sourabh R. Jain wrote: > o > We are getting TimeoutException on asterisk-java, when we > send some actions from our asterisk-java program. though the > actions are executed successfully on asterisk. (e.g SetVar() > action) Does that happen with all actions or only with a few? Does it also happen when you run your Asterisk-Java app and Asterisk on the same server? > o > We are not getting the Hold/UnHold events on the > asterisk-Java when a phone call goes on Hold/UnHold Make sure the section of your user in manager.conf contains read=all write=all Example: [general] enabled = yes port = 5038 [manager] secret=pa55w0rd read=all write=all > * > Is there any compatibility issues with the asterisk-java 1.0 with > Asterisk 1.6 > o > as both are in beta releases, so can any one do let us know > when these will be available with their final releases I can only speak for Asterisk-Java. It's 1.0.0 release will be available after Asterisk 1.6 has been released. > We use MeetMe feature to create the conference of users > o > We were able to create the conference between the users, but > when users joins the conference, after some time > asterisk automatically hang-up all the connected users. This seems to be more of an Asterisk issue than an Asterisk-Java one. I have not yet tested MeetMe in 1.6 extensivly. =Stefan -- reuter network consulting Neusser Str. 110 50760 Koeln Germany Telefon: +49 221 1305699-0 Telefax: +49 221 1305699-90 E-Mail: ste...@re... Jabber: ste...@re... WWW: http://www.reucon.com Steuernummern 215/5140/1791 USt-IdNr. DE220701760 |
From: Stefan R. <ste...@re...> - 2008-04-23 09:53:56
Attachments:
signature.asc
|
Sourabh R. Jain wrote: > exten => 2003,n,MusicOnHold(default) The Hold event is to detect native on hold status, i.e. when you press the hold button on your sip phone, not for the MusicOnHold application which just plays some music to the users. =Stefan -- reuter network consulting Neusser Str. 110 50760 Koeln Germany Telefon: +49 221 1305699-0 Telefax: +49 221 1305699-90 E-Mail: ste...@re... Jabber: ste...@re... WWW: http://www.reucon.com Steuernummern 215/5140/1791 USt-IdNr. DE220701760 |
From: Sourabh R. J. <sou...@im...> - 2008-04-24 09:20:21
|
Hi Stefan, We also try to put hold/unhold using X-lite. But, even we were unable to capture the events. ________________________________________ From: ast...@li... [ast...@li...] On Behalf Of Stefan Reuter [ste...@re...] Sent: Wednesday, April 23, 2008 3:23 PM To: ast...@li... Subject: Re: [Asterisk-java-devel] Queries regarding Asterisk & Asterisk-java compatibility Sourabh R. Jain wrote: > exten => 2003,n,MusicOnHold(default) The Hold event is to detect native on hold status, i.e. when you press the hold button on your sip phone, not for the MusicOnHold application which just plays some music to the users. =Stefan -- reuter network consulting Neusser Str. 110 50760 Koeln Germany Telefon: +49 221 1305699-0 Telefax: +49 221 1305699-90 E-Mail: ste...@re... Jabber: ste...@re... WWW: http://www.reucon.com Steuernummern 215/5140/1791 USt-IdNr. DE220701760 |