asterisk-java-devel Mailing List for Asterisk-Java Library (Page 7)
Brought to you by:
srt
You can subscribe to this list here.
2005 |
Jan
|
Feb
(1) |
Mar
(1) |
Apr
|
May
|
Jun
(8) |
Jul
(3) |
Aug
(6) |
Sep
(5) |
Oct
|
Nov
|
Dec
|
---|---|---|---|---|---|---|---|---|---|---|---|---|
2006 |
Jan
(8) |
Feb
(6) |
Mar
(1) |
Apr
|
May
(2) |
Jun
|
Jul
(17) |
Aug
(21) |
Sep
(2) |
Oct
(7) |
Nov
(8) |
Dec
(12) |
2007 |
Jan
(10) |
Feb
(19) |
Mar
(2) |
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
(2) |
Sep
(5) |
Oct
(6) |
Nov
(1) |
Dec
(5) |
2008 |
Jan
(12) |
Feb
(15) |
Mar
(18) |
Apr
(34) |
May
(3) |
Jun
(34) |
Jul
(5) |
Aug
(1) |
Sep
(8) |
Oct
|
Nov
(2) |
Dec
(2) |
2009 |
Jan
(8) |
Feb
(2) |
Mar
(35) |
Apr
(16) |
May
(11) |
Jun
(2) |
Jul
(6) |
Aug
(2) |
Sep
(1) |
Oct
|
Nov
(4) |
Dec
|
2010 |
Jan
(43) |
Feb
(15) |
Mar
(1) |
Apr
(7) |
May
(3) |
Jun
(7) |
Jul
(1) |
Aug
(3) |
Sep
(5) |
Oct
|
Nov
|
Dec
|
2011 |
Jan
|
Feb
(2) |
Mar
(9) |
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(6) |
2012 |
Jan
(9) |
Feb
(2) |
Mar
(4) |
Apr
(1) |
May
(1) |
Jun
(3) |
Jul
(1) |
Aug
|
Sep
(1) |
Oct
(10) |
Nov
(10) |
Dec
|
2013 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(2) |
Jul
|
Aug
(2) |
Sep
|
Oct
|
Nov
(10) |
Dec
|
2014 |
Jan
|
Feb
(5) |
Mar
|
Apr
|
May
|
Jun
(5) |
Jul
(11) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2015 |
Jan
|
Feb
(2) |
Mar
(7) |
Apr
(39) |
May
(18) |
Jun
(6) |
Jul
(2) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2016 |
Jan
|
Feb
(9) |
Mar
(1) |
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Robin S. <lei...@gm...> - 2012-03-07 15:27:24
|
I would like to use asterisk-java into my project. But i have several questions since i am new using asterisk-java. My project is making a traffic generator (written in java) and make a connections to asterisk. So this traffic generator will be generate calls and asterisk will answer it. So is this possible to do? What supposed im going to know if i can make this project? Thank you for your help and i would like to hearing from you as soon as possible. Sincerely, Robin |
From: <Jac...@L-...> - 2012-02-22 13:41:03
|
I would try: channel.setVariable(“PARKINGEXTEN”,”9901); channel.exec(“Park”,”60000,,,,s”); Jacob From: Haamed Kouhfallah [mailto:k.h...@gm...] Sent: Wednesday, February 22, 2012 1:57 AM To: ast...@li... Subject: [Asterisk-java-devel] Use park() in AGI Hi every body, I am using asterisk-java version: 0.3.1 also writing AGI program. I have this code in my dial plan and i want to simulate it in my java AGI: exten = 8002,n,Set(PARKINGEXTEN=9901) exten = 8002,n,Park(60000,,,,s) I used this code in my java AGI program but it doesn't work: channel.exec("Set(PARKINGEXTEN=9901); channel.exec("Park(60000,,,,s)"); these two line have no action ! how can i use park() aplication in AGI program. thanks a lot Haamed Kouhfallah ----------------------------- The VoIP-IRAN Manager Email: k.h...@gm... Web: http://www.voip-iran.com <http://www.voip-iran.com> Forum: www.voip-iran.com/forum <http://www.voip-iran.com/forum> |
From: Haamed K. <k.h...@gm...> - 2012-02-22 07:57:27
|
Hi every body, I am using asterisk-java version: 0.3.1 also writing AGI program. I have this code in my dial plan and i want to simulate it in my java AGI: exten = 8002,n,Set(PARKINGEXTEN=9901) exten = 8002,n,Park(60000,,,,s) I used this code in my java AGI program but it doesn't work: channel.exec("Set(PARKINGEXTEN=9901); channel.exec("Park(60000,,,,s)"); these two line have no action ! how can i use park() aplication in AGI program. thanks a lot Haamed Kouhfallah ----------------------------- The VoIP-IRAN Manager Email: k.h...@gm... Web: http://www.voip-iran.com Forum: www.voip-iran.com/forum <http:///www.voip-iran.com/forum> |
From: <Jac...@L-...> - 2012-01-19 20:09:23
|
I am using asterisk-java to interface with the Asterisk AMI, but I use the chan_sccp-b channel driver, is there any way to get the Events and Actions specific to this driver added, as well as updating the existing events that the chan_sccp-b driver adds additional fields to? Another question: Is there a way to get the LinkedID from the AsteriskChannel? If not is there are way add this ID to the channel. This information is displayed on the Asterisk CLI when performing the command "core show channel <channel name>"? Jacob Miles Software Engineer L-3 Communications - Integrated Systems Greenville Jac...@L-... 903.457.4422 |
From: Yves A. <yv...@gm...> - 2012-01-06 20:55:55
|
Sure... but a listener would be more elegant, I think... yves Am 06.01.2012 17:34, schrieb Jeryes .: > Yves, > > " if your source channel is hung up, do not execute any commands on > this channel as it would end > up in an exception..." > > that worked... if the channel is alive no exception will be thrown, > and that is the characteristic of the FROM leg disconnection, or a > disconnection of an established call, otherwise it is a timeout or an > ignore sent from the TO leg. > > Thanks for your help!! > > []s > Jeryes > > > > > 2012/1/5 Yves A. <yv...@gm... <mailto:yv...@gm...>> > > I see. > Try to implement a listener that listens to the asterisk-events. > If you receive an unlink or hangup event, > check, if the corresponding channel is your agi-source channel and > if so, interrupt the outgoing dials, > that were originated from here.. > if your source channel is hung up, do not execute any commands on > this channel as it would end > up in an exception... > > regards, > yves > > > > ------------------------------------------------------------------------------ > Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex > infrastructure or vast IT resources to deliver seamless, secure access to > virtual desktops. With this all-in-one solution, easily deploy virtual > desktops for less than the cost of PCs and save 60% on VDI infrastructure > costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox > > > _______________________________________________ > Asterisk-java-devel mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-devel |
From: Jeryes . <je...@vo...> - 2012-01-06 16:34:40
|
Yves, " if your source channel is hung up, do not execute any commands on this channel as it would end up in an exception..." that worked... if the channel is alive no exception will be thrown, and that is the characteristic of the FROM leg disconnection, or a disconnection of an established call, otherwise it is a timeout or an ignore sent from the TO leg. Thanks for your help!! []s Jeryes 2012/1/5 Yves A. <yv...@gm...> > I see. > Try to implement a listener that listens to the asterisk-events. If you > receive an unlink or hangup event, > check, if the corresponding channel is your agi-source channel and if so, > interrupt the outgoing dials, > that were originated from here.. > if your source channel is hung up, do not execute any commands on this > channel as it would end > up in an exception... > > regards, > yves > |
From: Yves A. <yv...@gm...> - 2012-01-05 21:59:09
|
I see. Try to implement a listener that listens to the asterisk-events. If you receive an unlink or hangup event, check, if the corresponding channel is your agi-source channel and if so, interrupt the outgoing dials, that were originated from here.. if your source channel is hung up, do not execute any commands on this channel as it would end up in an exception... regards, yves Am 05.01.2012 22:37, schrieb Jeryes .: > Hi Yves, > > I'm sorry, it was a little confusing... Let me try again... > > I'm working with fast-agi, implementing > org.asterisk.java.fastagi.BaseAgiScript. > > Yes, I have an IVR, that receive a call (input channel) originated by > some owner, the application basically plays a file and then dial to > some destination, if that destination doesn't answer in 20 seconds > (timeout), the IVR must dial to another one. I did that using the > command Dial, and setting a timeout in that dial: > > int resultCode = channel.exec("Dial", "SIP/user1, *20*"); > > That is the way i found to establish a new outgoing connection on a > channel, and then link it to the existing input channel. > > The problem that I am facing is to distinguish a timeout event from > the disconnection of the owner, in other words, how can I > differentiate when the FROM leg disconencts (sendig the CANCEL > Request) from the timeout of the TO leg ou if the TO leg ignore (by > replying 480, 486, 500, 503 or 603 for example) a call that is in > DIALING state? > > > Thanks for your time!!! > > []s > Jeryes > > > > ------------------------------------------------------------------------------ > Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex > infrastructure or vast IT resources to deliver seamless, secure access to > virtual desktops. With this all-in-one solution, easily deploy virtual > desktops for less than the cost of PCs and save 60% on VDI infrastructure > costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox > > > _______________________________________________ > Asterisk-java-devel mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-devel |
From: Jeryes . <je...@vo...> - 2012-01-05 21:37:59
|
Hi Yves, I'm sorry, it was a little confusing... Let me try again... I'm working with fast-agi, implementing org.asterisk.java.fastagi.BaseAgiScript. Yes, I have an IVR, that receive a call (input channel) originated by some owner, the application basically plays a file and then dial to some destination, if that destination doesn't answer in 20 seconds (timeout), the IVR must dial to another one. I did that using the command Dial, and setting a timeout in that dial: int resultCode = channel.exec("Dial", "SIP/user1, *20*"); That is the way i found to establish a new outgoing connection on a channel, and then link it to the existing input channel. The problem that I am facing is to distinguish a timeout event from the disconnection of the owner, in other words, how can I differentiate when the FROM leg disconencts (sendig the CANCEL Request) from the timeout of the TO leg ou if the TO leg ignore (by replying 480, 486, 500, 503 or 603 for example) a call that is in DIALING state? Thanks for your time!!! []s Jeryes |
From: Yves A. <yv...@gm...> - 2012-01-05 10:46:09
|
Hi, unfortunately I do not understand you fully. What do you mean with "sufer"? What is the Event 4xx, 5xx ...? Please explain. And explain exactly what your Objective is. When To call who, And so on. I dont understand what you mean by cancel the dial on timeout...? After a timeout the dial IS finished... cancelling for me would be something like interrupting a running dial command. At First Reading it Looks like you're needing Something like a Queue...? Or an IVR? Regards, Yves Am 04.01.2012 um 22:23 schrieb "Jeryes ." <je...@vo...>: > Hi Yves, > > Happy new year and thanks for your quick reply!! > > Actually, I fixed the problem, sorry it was my fault... > > I'm working on an application based on fast-agi, and I've created an AsteriskServer that implements the interface BaseAgiScript, to receive and process calls from Asterisk. > After receive a new call, the application dial to some destination (e.g. user1), and in some situation, like timeout of dialing, the application must cancel that Dial and > create a new one to other destination, but I was doing in a wrong way, I was looking for a way to Cancel the Dial, and I guess that I can't do it, > so I fixed the problem adding the timeout value in the Dial command, now the Asterisk is sending that Cancel when the timeout expires, and it's working: > > Example code of implementation: > > public class AsteriskServer extends BaseAgiScript > { > > /** > * The service method is called whenever AgiAsteriskServer receive a new > * incoming AgiRequest. > */ > public void service(AgiRequest request, AgiChannel channel) throws AgiException > { > //Some code > > try > { > channel.exec("Dial", "SIP/user1, 20"); > > } catch (Exception e) { > //do something > } finally { > //do something > } > > //Some code > > } > } > > and 20 is the timeout to that destination. > > Now I'm facing another problem, the command Dial is not running on background, it keeps the Thread that executed the command in wait until the Dial sufers some dinconnection event (4xx, 5xx or 6xx) > So do I need to create a new Thread to execute the command Dial? > And is there another way besides the CLI to originate a new Call using fast-agi? > > > Thank you!! > > Best regards > Jeryes > > > 2012/1/3 Yves A. <yv...@gm...> > Hi, > > happy new year, welcome to the list and congrats... you´re the first in 2012! > reason enough for me to flood you with solutions, but.... > > you gave too little info...at least for me...: > - a few more lines of code would be helpful... full code would be best + part of the dialplan where you call the agi.. > - what is your objective? > - any exceptions / interesting logs? > - how do you define timeout? I don´t see any at your dial command. > - what did you try so far and what was the result? > > regards, > yves > > > Am 03.01.2012 21:55, schrieb Jeryes .: >> >> Hi All, >> >> I'm using java fast-agi protocol, >> and I'm dialing to new destinations based on the existing channel: >> >> channel.exec("Dial","SIP/extension1") >> >> and I'm facing a problem to cancel that dial if the call sufers a timeout, and originate new call to other destination. Do someone have faced that problem or have any idea to implement this scenario? >> >> I'm working with the versions below: >> asterisk 1.6.2.22 >> asterisk-java 1.0.0 >> >> Thanks in advance! >> >> Jeryes >> >> >> ------------------------------------------------------------------------------ >> Write once. Port to many. >> Get the SDK and tools to simplify cross-platform app development. Create >> new or port existing apps to sell to consumers worldwide. Explore the >> Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join >> http://p.sf.net/sfu/intel-appdev >> >> >> _______________________________________________ >> Asterisk-java-devel mailing list >> Ast...@li... >> https://lists.sourceforge.net/lists/listinfo/asterisk-java-devel > > > ------------------------------------------------------------------------------ > Write once. Port to many. > Get the SDK and tools to simplify cross-platform app development. Create > new or port existing apps to sell to consumers worldwide. Explore the > Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join > http://p.sf.net/sfu/intel-appdev > _______________________________________________ > Asterisk-java-devel mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-devel > > > ------------------------------------------------------------------------------ > Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex > infrastructure or vast IT resources to deliver seamless, secure access to > virtual desktops. With this all-in-one solution, easily deploy virtual > desktops for less than the cost of PCs and save 60% on VDI infrastructure > costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox > _______________________________________________ > Asterisk-java-devel mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-devel |
From: Jeryes . <je...@vo...> - 2012-01-04 21:23:23
|
Hi Yves, Happy new year and thanks for your quick reply!! Actually, I fixed the problem, sorry it was my fault... I'm working on an application based on fast-agi, and I've created an AsteriskServer that implements the interface BaseAgiScript, to receive and process calls from Asterisk. After receive a new call, the application dial to some destination (e.g. user1), and in some situation, like timeout of dialing, the application must cancel that Dial and create a new one to other destination, but I was doing in a wrong way, I was looking for a way to Cancel the Dial, and I guess that I can't do it, so I fixed the problem adding the timeout value in the Dial command, now the Asterisk is sending that Cancel when the timeout expires, and it's working: Example code of implementation: public class AsteriskServer extends BaseAgiScript { /** * The service method is called whenever AgiAsteriskServer receive a new * incoming AgiRequest. */ public void service(AgiRequest request, AgiChannel channel) throws AgiException { //Some code try { channel.exec("Dial", "SIP/user1, *20*"); } catch (Exception e) { //do something } finally { //do something } //Some code } } and *20* is the timeout to that destination. Now I'm facing another problem, the command Dial is not running on background, it keeps the Thread that executed the command in wait until the Dial sufers some dinconnection event (4xx, 5xx or 6xx) So do I need to create a new Thread to execute the command Dial? And is there another way besides the CLI to originate a new Call using fast-agi? Thank you!! Best regards Jeryes 2012/1/3 Yves A. <yv...@gm...> > Hi, > > happy new year, welcome to the list and congrats... you´re the first in > 2012! > reason enough for me to flood you with solutions, but.... > > you gave too little info...at least for me...: > - a few more lines of code would be helpful... full code would be best + > part of the dialplan where you call the agi.. > - what is your objective? > - any exceptions / interesting logs? > - how do you define timeout? I don´t see any at your dial command. > - what did you try so far and what was the result? > > regards, > yves > > > Am 03.01.2012 21:55, schrieb Jeryes .: > > Hi All, > > I'm using java fast-agi protocol, > and I'm dialing to new destinations based on the existing channel: > * > channel.exec("Dial","SIP/extension1")* > > and I'm facing a problem to cancel that dial if the call sufers a timeout, > and originate new call to other destination. Do someone have faced that > problem or have any idea to implement this scenario? > > I'm working with the versions below: > asterisk 1.6.2.22 > asterisk-java 1.0.0 > > Thanks in advance! > > Jeryes > > > ------------------------------------------------------------------------------ > Write once. Port to many. > Get the SDK and tools to simplify cross-platform app development. Create > new or port existing apps to sell to consumers worldwide. Explore the > Intel AppUpSM program developer opportunity. appdeveloper.intel.com/joinhttp://p.sf.net/sfu/intel-appdev > > > > _______________________________________________ > Asterisk-java-devel mailing lis...@li...https://lists.sourceforge.net/lists/listinfo/asterisk-java-devel > > > > > ------------------------------------------------------------------------------ > Write once. Port to many. > Get the SDK and tools to simplify cross-platform app development. Create > new or port existing apps to sell to consumers worldwide. Explore the > Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join > http://p.sf.net/sfu/intel-appdev > _______________________________________________ > Asterisk-java-devel mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-devel > > |
From: Yves A. <yv...@gm...> - 2012-01-03 21:46:23
|
Hi, happy new year, welcome to the list and congrats... you´re the first in 2012! reason enough for me to flood you with solutions, but.... you gave too little info...at least for me...: - a few more lines of code would be helpful... full code would be best + part of the dialplan where you call the agi.. - what is your objective? - any exceptions / interesting logs? - how do you define timeout? I don´t see any at your dial command. - what did you try so far and what was the result? regards, yves Am 03.01.2012 21:55, schrieb Jeryes .: > Hi All, > > I'm using java fast-agi protocol, > and I'm dialing to new destinations based on the existing channel: > * > channel.exec("Dial","SIP/extension1")* > > and I'm facing a problem to cancel that dial if the call sufers a > timeout, and originate new call to other destination. Do someone have > faced that problem or have any idea to implement this scenario? > > I'm working with the versions below: > asterisk 1.6.2.22 > asterisk-java 1.0.0 > > Thanks in advance! > > Jeryes > > > ------------------------------------------------------------------------------ > Write once. Port to many. > Get the SDK and tools to simplify cross-platform app development. Create > new or port existing apps to sell to consumers worldwide. Explore the > Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join > http://p.sf.net/sfu/intel-appdev > > > _______________________________________________ > Asterisk-java-devel mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-devel |
From: Jeryes . <je...@vo...> - 2012-01-03 21:24:15
|
Hi All, I'm using java fast-agi protocol, and I'm dialing to new destinations based on the existing channel: * channel.exec("Dial","SIP/extension1")* and I'm facing a problem to cancel that dial if the call sufers a timeout, and originate new call to other destination. Do someone have faced that problem or have any idea to implement this scenario? I'm working with the versions below: asterisk 1.6.2.22 asterisk-java 1.0.0 Thanks in advance! Jeryes |
From: Yves A. <yv...@gm...> - 2011-12-14 11:12:48
|
Hi, your code looks "comlicated" to me... what is your objective? Is this some kind of fax-polling?... no, than you would not use sendfax with -d option.. Correct me, if I am wrong...: you´re trying to distribute (maybe dynamically generated) faxes to (internal) numbers beginning with 99 and the rest is cut of somewhere from the current channel... but why do you want to park the call at all? why using a new variable for this..: exten = vagoofax,n,Set(PARKINGEXTEN=${PPOS}) if you can, you should upgrade to the latest asterisk-java (1.0) and take a look at the ParkAction -class regards, yves Am 14.12.2011 11:42, schrieb Haamed Kouhfallah: > Thanks for your you reply, > sorry but i thought My question was so clear ! then I will say > complete story, > there is a code on Dial plan to sending fax on current channel: > > ;;;;;;;;;;;;;;;;;;; FAX PART ;;;;;;;;;;;;;; > ;; > exten = vagoofax,1,PlayBack(startfax) > exten = > vagoofax,n,Set(FAXFILE=${BASE_PATH}${VAGOO_VOICE_MSGS}/${MSG_DIR}/${MSG_NUMBER}.${FAX_EXT}) > exten = vagoofax,n,Set(PPOS=99${CUT(CHANNEL:6,-,1)}) > exten = vagoofax,n,Set(PARKINGEXTEN=${PPOS}) > exten = vagoofax,n,System(sendfax -n -l -B 14400 -s a4 -t 1 -d > ${PARKINGEXTEN} ${FAXFILE}) > exten = vagoofax,n,Park(60000,,,,s) > ;exten = vagoofax,n,hangup() > > > > and now I wanna to do this on my AGI program with asterisk-java 0.3.1 ... > I did all of above command just i don't know how can i call "park()" > command in my AGI, > *: park() is a command to parking current channel > > I hope to say enough info with my poor English, > > thanks again. > > > Haamed Kouhfallah > ----------------------------- > The VoIP-IRAN Manager > Email: k.h...@gm... <mailto:k.h...@gm...> > Web: http://www.voip-iran.com > Forum: www.voip-iran.com/forum <http:///www.voip-iran.com/forum> > > > > > On Wed, Dec 14, 2011 at 2:03 PM, > <ast...@li... > <mailto:ast...@li...>> wrote: > > Send Asterisk-java-devel mailing list submissions to > ast...@li... > <mailto:ast...@li...> > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.sourceforge.net/lists/listinfo/asterisk-java-devel > or, via email, send a message with subject or body 'help' to > ast...@li... > <mailto:ast...@li...> > > You can reach the person managing the list at > ast...@li... > <mailto:ast...@li...> > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Asterisk-java-devel digest..." > > > Today's Topics: > > 1. Re: ChannelFactory for Live (Stefan Reuter) > 2. Dial using FastAGI (Jeryes .) > 3. use park() in AGI (Haamed Kouhfallah) > 4. Asterisk-java and Elastix (Multi Faces) > 5. Re: use park() in AGI (Haamed Kouhfallah) > 6. Re: use park() in AGI (Yves A.) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Mon, 07 Mar 2011 09:31:33 +0100 > From: Stefan Reuter <ste...@re... > <mailto:ste...@re...>> > Subject: Re: [Asterisk-java-devel] ChannelFactory for Live > To: ast...@li... > <mailto:ast...@li...> > Message-ID: <4D7...@re... > <mailto:4D7...@re...>> > Content-Type: text/plain; charset=ISO-8859-1 > > Hi, > > > As best as I can tell, it's mostly used to restrict access to > methods > > that generally shouldn't be called by programs using the API, > such as > > those responsible for firing Live Events, those responsible for > handling > > the direct ManagerEvents being handled, etc. > > Yes that was the idea behind it. The methods in the interface are for > users of the API and the methods of the *Impl classes that are not > part > of the interface are for the corresponding *Manager to update the > state > of the live object when the AMI events are processed. > > > I agree, it does provide a lot of nice default functionality. > However, > > it seems to me to be designed to be used internally only. Most > of the > > properties of the channel are read-only in actuality, such as name, > > unique id, caller id, etc, but have setters defined. It could be > > confusing to users to have these setters available publicly, > since they > > don't do anything to the channel itself, only to the java object > > representing it. > > Indeed. The "write" methods in the interface cause interaction with > Asterisk and actually modify the state of the corresponding > concept there. > > What is lacking currently is a clear and easy way of extending the > live > API. This would require extending the *Manager, the *Impl and the > interface. I would like to keep the interface for the "end user" > separate from what the *Manager uses to update the state. This can > either be done by the current interface/impl separation or maybe by > having some kind of a companion class for the live object. > > =Stefan > > > > ------------------------------ > > Message: 2 > Date: Tue, 10 May 2011 12:27:28 -0300 > From: "Jeryes ." <je...@vo... > <mailto:je...@vo...>> > Subject: [Asterisk-java-devel] Dial using FastAGI > To: ast...@li... > <mailto:ast...@li...> > Message-ID: <BANLkTi=3QqckDpMaJTdmVL2VTfkL=f0...@ma... > <mailto:f0...@ma...>> > Content-Type: text/plain; charset="iso-8859-1" > > Hi All! > > I have an application that is connected to Asterisk by > BaseAgiScript, and it > only answers, play a file and disconnect the call. > Now I am trying to dial to another destination after receive a new > call, > executing the command Dial: > > *agiChannel.exec("Dial", "SIP/otherUser@otherUserIp:5060");* > > *agiChannel* is the channel received in a new incoming AgiRequest > by the > event *service(AgiRequest request, AgiChannel agiChannel)*. > > But doing this way I am not able to change the domain on from or > to Header, > is there a way to change the domain dynamically? > > I've tried the option *o *to keep the original *from* received on > incoming > AgiRequest, but it had no effect: > > *agiChannel.exec("Dial", "SIP/otherUser@otherUserIp:5060|o"); > > *I couldn't do it with Manager Api eather.*** > * > Please, could some one help?* > * > > Thanks in advance! > > Regards > Jeryes > -------------- next part -------------- > An HTML attachment was scrubbed... > > ------------------------------ > > Message: 3 > Date: Tue, 13 Dec 2011 10:27:18 +0330 > From: Haamed Kouhfallah <k.h...@gm... > <mailto:k.h...@gm...>> > Subject: [Asterisk-java-devel] use park() in AGI > To: Ast...@li... > <mailto:Ast...@li...> > Message-ID: > <CA+...@ma... <mailto:CA%2BGSx8n-cfE8jpVyZBnPQOSQHf7YQ33QEqxha5A4kVER9%2B...@ma...>> > Content-Type: text/plain; charset="utf-8" > > Hi every body, > I want to use park() cmd in my java program, how can i use it? > in my AGI program I want to park my current Chanel. > > thanks in advanced > > > Haamed Kouhfallah > ----------------------------- > The VoIP-IRAN Manager > Email: k.h...@gm... <mailto:k.h...@gm...> > Web: http://www.voip-iran.com > Forum: www.voip-iran.com/forum <http://www.voip-iran.com/forum> > <http:///www.voip-iran.com/forum <http://www.voip-iran.com/forum>> > -------------- next part -------------- > An HTML attachment was scrubbed... > > ------------------------------ > > Message: 4 > Date: Wed, 14 Dec 2011 01:50:39 -0200 > From: Multi Faces <mn...@gm... <mailto:mn...@gm...>> > Subject: [Asterisk-java-devel] Asterisk-java and Elastix > To: ast...@li... > <mailto:ast...@li...> > Message-ID: > <CAKHsx97yt2WyRHi=A-1...@ma... <mailto:A-1...@ma...>> > Content-Type: text/plain; charset="iso-8859-1" > > Hi > > Im starting with asterisk-java lib and have a doubt: > > - my customer uses elastix. Then, is possible created application > using > asterisk-java for working together with Elastix? > > My application is a popup that identify the calling number and > shows in a > specific window. > > Regards > > Richard > -------------- next part -------------- > An HTML attachment was scrubbed... > > ------------------------------ > > Message: 5 > Date: Wed, 14 Dec 2011 13:34:57 +0330 > From: Haamed Kouhfallah <k.h...@gm... > <mailto:k.h...@gm...>> > Subject: Re: [Asterisk-java-devel] use park() in AGI > To: ast...@li... > <mailto:ast...@li...> > Message-ID: > <CA+...@ma... <mailto:CA%2BG...@ma...>> > Content-Type: text/plain; charset="utf-8" > > Hi, > How can i use park() command on AGI program.. > > thanks > > > Haamed Kouhfallah > ----------------------------- > The VoIP-IRAN Manager > Email: k.h...@gm... <mailto:k.h...@gm...> > Web: http://www.voip-iran.com > Forum: www.voip-iran.com/forum <http://www.voip-iran.com/forum> > <http:///www.voip-iran.com/forum <http://www.voip-iran.com/forum>> > -------------- next part -------------- > An HTML attachment was scrubbed... > > ------------------------------ > > Message: 6 > Date: Wed, 14 Dec 2011 11:35:53 +0100 > From: "Yves A." <yv...@gm... <mailto:yv...@gm...>> > Subject: Re: [Asterisk-java-devel] use park() in AGI > To: ast...@li... > <mailto:ast...@li...> > Message-ID: <4EE...@gm... <mailto:4EE...@gm...>> > Content-Type: text/plain; charset="iso-8859-1" > > Hi, > > when will people learn how to use a mailing list and how to ask for > help...?? > > This is definitely the wrong way... and to repeat the question > over and > over again, > even by using bold letters wont do it either. > > If you want anybody to support you, then it is always a good idea to > post as much information > as possible. This in turn reduces the number of questions of the > reader. > So in your case, > it would be nice to know - besides the always necessary info about > your > configuratin / versions etc..., > what you tried so for...if at all.. > > how did you setup parking? > does it work with normal phones? > how does your agi-sourcecode look like? > what happens at all - are there any error messages? > > and so on and so on. you can?t expect any effort from anyone, if > you are > not showing any effort yourself. > > regards, > yves > > > Am 14.12.2011 11:04, schrieb Haamed Kouhfallah: > > Hi, > > How can i use park() command on AGI program.. > > > > thanks > > > > > > Haamed Kouhfallah > > ----------------------------- > > The VoIP-IRAN Manager > > Email: k.h...@gm... <mailto:k.h...@gm...> > <mailto:k.h...@gm... <mailto:k.h...@gm...>> > > Web: http://www.voip-iran.com > > Forum: www.voip-iran.com/forum <http://www.voip-iran.com/forum> > <http:///www.voip-iran.com/forum <http://www.voip-iran.com/forum>> > > > > > > > > > > > ------------------------------------------------------------------------------ > > Cloud Computing - Latest Buzzword or a Glimpse of the Future? > > This paper surveys cloud computing today: What are the benefits? > > Why are businesses embracing it? What are its payoffs and pitfalls? > > http://www.accelacomm.com/jaw/sdnl/114/51425149/ > > > > > > _______________________________________________ > > Asterisk-java-devel mailing list > > Ast...@li... > <mailto:Ast...@li...> > > https://lists.sourceforge.net/lists/listinfo/asterisk-java-devel > > -------------- next part -------------- > An HTML attachment was scrubbed... > > ------------------------------ > > ------------------------------------------------------------------------------ > Cloud Computing - Latest Buzzword or a Glimpse of the Future? > This paper surveys cloud computing today: What are the benefits? > Why are businesses embracing it? What are its payoffs and pitfalls? > http://www.accelacomm.com/jaw/sdnl/114/51425149/ > > ------------------------------ > > _______________________________________________ > Asterisk-java-devel mailing list > Ast...@li... > <mailto:Ast...@li...> > https://lists.sourceforge.net/lists/listinfo/asterisk-java-devel > > > End of Asterisk-java-devel Digest, Vol 36, Issue 1 > ************************************************** > > > > > ------------------------------------------------------------------------------ > Cloud Computing - Latest Buzzword or a Glimpse of the Future? > This paper surveys cloud computing today: What are the benefits? > Why are businesses embracing it? What are its payoffs and pitfalls? > http://www.accelacomm.com/jaw/sdnl/114/51425149/ > > > _______________________________________________ > Asterisk-java-devel mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-devel |
From: Haamed K. <k.h...@gm...> - 2011-12-14 10:42:52
|
Thanks for your you reply, sorry but i thought My question was so clear ! then I will say complete story, there is a code on Dial plan to sending fax on current channel: ;;;;;;;;;;;;;;;;;;; FAX PART ;;;;;;;;;;;;;; > ;; > exten = vagoofax,1,PlayBack(startfax) > exten = > vagoofax,n,Set(FAXFILE=${BASE_PATH}${VAGOO_VOICE_MSGS}/${MSG_DIR}/${MSG_NUMBER}.${FAX_EXT}) > exten = vagoofax,n,Set(PPOS=99${CUT(CHANNEL:6,-,1)}) > exten = vagoofax,n,Set(PARKINGEXTEN=${PPOS}) > exten = vagoofax,n,System(sendfax -n -l -B 14400 -s a4 -t 1 -d > ${PARKINGEXTEN} ${FAXFILE}) > exten = vagoofax,n,Park(60000,,,,s) > ;exten = vagoofax,n,hangup() > and now I wanna to do this on my AGI program with asterisk-java 0.3.1 ... I did all of above command just i don't know how can i call "park()" command in my AGI, *: park() is a command to parking current channel I hope to say enough info with my poor English, thanks again. Haamed Kouhfallah ----------------------------- The VoIP-IRAN Manager Email: k.h...@gm... Web: http://www.voip-iran.com Forum: www.voip-iran.com/forum <http:///www.voip-iran.com/forum> On Wed, Dec 14, 2011 at 2:03 PM, < ast...@li...> wrote: > Send Asterisk-java-devel mailing list submissions to > ast...@li... > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.sourceforge.net/lists/listinfo/asterisk-java-devel > or, via email, send a message with subject or body 'help' to > ast...@li... > > You can reach the person managing the list at > ast...@li... > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Asterisk-java-devel digest..." > > > Today's Topics: > > 1. Re: ChannelFactory for Live (Stefan Reuter) > 2. Dial using FastAGI (Jeryes .) > 3. use park() in AGI (Haamed Kouhfallah) > 4. Asterisk-java and Elastix (Multi Faces) > 5. Re: use park() in AGI (Haamed Kouhfallah) > 6. Re: use park() in AGI (Yves A.) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Mon, 07 Mar 2011 09:31:33 +0100 > From: Stefan Reuter <ste...@re...> > Subject: Re: [Asterisk-java-devel] ChannelFactory for Live > To: ast...@li... > Message-ID: <4D7...@re...> > Content-Type: text/plain; charset=ISO-8859-1 > > Hi, > > > As best as I can tell, it's mostly used to restrict access to methods > > that generally shouldn't be called by programs using the API, such as > > those responsible for firing Live Events, those responsible for handling > > the direct ManagerEvents being handled, etc. > > Yes that was the idea behind it. The methods in the interface are for > users of the API and the methods of the *Impl classes that are not part > of the interface are for the corresponding *Manager to update the state > of the live object when the AMI events are processed. > > > I agree, it does provide a lot of nice default functionality. However, > > it seems to me to be designed to be used internally only. Most of the > > properties of the channel are read-only in actuality, such as name, > > unique id, caller id, etc, but have setters defined. It could be > > confusing to users to have these setters available publicly, since they > > don't do anything to the channel itself, only to the java object > > representing it. > > Indeed. The "write" methods in the interface cause interaction with > Asterisk and actually modify the state of the corresponding concept there. > > What is lacking currently is a clear and easy way of extending the live > API. This would require extending the *Manager, the *Impl and the > interface. I would like to keep the interface for the "end user" > separate from what the *Manager uses to update the state. This can > either be done by the current interface/impl separation or maybe by > having some kind of a companion class for the live object. > > =Stefan > > > > ------------------------------ > > Message: 2 > Date: Tue, 10 May 2011 12:27:28 -0300 > From: "Jeryes ." <je...@vo...> > Subject: [Asterisk-java-devel] Dial using FastAGI > To: ast...@li... > Message-ID: <BANLkTi=3QqckDpMaJTdmVL2VTfkL=f0...@ma...> > Content-Type: text/plain; charset="iso-8859-1" > > Hi All! > > I have an application that is connected to Asterisk by BaseAgiScript, and > it > only answers, play a file and disconnect the call. > Now I am trying to dial to another destination after receive a new call, > executing the command Dial: > > *agiChannel.exec("Dial", "SIP/otherUser@otherUserIp:5060");* > > *agiChannel* is the channel received in a new incoming AgiRequest by the > event *service(AgiRequest request, AgiChannel agiChannel)*. > > But doing this way I am not able to change the domain on from or to Header, > is there a way to change the domain dynamically? > > I've tried the option *o *to keep the original *from* received on incoming > AgiRequest, but it had no effect: > > *agiChannel.exec("Dial", "SIP/otherUser@otherUserIp:5060|o"); > > *I couldn't do it with Manager Api eather.*** > * > Please, could some one help?* > * > > Thanks in advance! > > Regards > Jeryes > -------------- next part -------------- > An HTML attachment was scrubbed... > > ------------------------------ > > Message: 3 > Date: Tue, 13 Dec 2011 10:27:18 +0330 > From: Haamed Kouhfallah <k.h...@gm...> > Subject: [Asterisk-java-devel] use park() in AGI > To: Ast...@li... > Message-ID: > <CA+...@ma... > > > Content-Type: text/plain; charset="utf-8" > > Hi every body, > I want to use park() cmd in my java program, how can i use it? > in my AGI program I want to park my current Chanel. > > thanks in advanced > > > Haamed Kouhfallah > ----------------------------- > The VoIP-IRAN Manager > Email: k.h...@gm... > Web: http://www.voip-iran.com > Forum: www.voip-iran.com/forum <http:///www.voip-iran.com/forum> > -------------- next part -------------- > An HTML attachment was scrubbed... > > ------------------------------ > > Message: 4 > Date: Wed, 14 Dec 2011 01:50:39 -0200 > From: Multi Faces <mn...@gm...> > Subject: [Asterisk-java-devel] Asterisk-java and Elastix > To: ast...@li... > Message-ID: > <CAKHsx97yt2WyRHi=A-1...@ma... > > > Content-Type: text/plain; charset="iso-8859-1" > > Hi > > Im starting with asterisk-java lib and have a doubt: > > - my customer uses elastix. Then, is possible created application using > asterisk-java for working together with Elastix? > > My application is a popup that identify the calling number and shows in a > specific window. > > Regards > > Richard > -------------- next part -------------- > An HTML attachment was scrubbed... > > ------------------------------ > > Message: 5 > Date: Wed, 14 Dec 2011 13:34:57 +0330 > From: Haamed Kouhfallah <k.h...@gm...> > Subject: Re: [Asterisk-java-devel] use park() in AGI > To: ast...@li... > Message-ID: > <CA+...@ma... > > > Content-Type: text/plain; charset="utf-8" > > Hi, > How can i use park() command on AGI program.. > > thanks > > > Haamed Kouhfallah > ----------------------------- > The VoIP-IRAN Manager > Email: k.h...@gm... > Web: http://www.voip-iran.com > Forum: www.voip-iran.com/forum <http:///www.voip-iran.com/forum> > -------------- next part -------------- > An HTML attachment was scrubbed... > > ------------------------------ > > Message: 6 > Date: Wed, 14 Dec 2011 11:35:53 +0100 > From: "Yves A." <yv...@gm...> > Subject: Re: [Asterisk-java-devel] use park() in AGI > To: ast...@li... > Message-ID: <4EE...@gm...> > Content-Type: text/plain; charset="iso-8859-1" > > Hi, > > when will people learn how to use a mailing list and how to ask for > help...?? > > This is definitely the wrong way... and to repeat the question over and > over again, > even by using bold letters wont do it either. > > If you want anybody to support you, then it is always a good idea to > post as much information > as possible. This in turn reduces the number of questions of the reader. > So in your case, > it would be nice to know - besides the always necessary info about your > configuratin / versions etc..., > what you tried so for...if at all.. > > how did you setup parking? > does it work with normal phones? > how does your agi-sourcecode look like? > what happens at all - are there any error messages? > > and so on and so on. you can?t expect any effort from anyone, if you are > not showing any effort yourself. > > regards, > yves > > > Am 14.12.2011 11:04, schrieb Haamed Kouhfallah: > > Hi, > > How can i use park() command on AGI program.. > > > > thanks > > > > > > Haamed Kouhfallah > > ----------------------------- > > The VoIP-IRAN Manager > > Email: k.h...@gm... <mailto:k.h...@gm...> > > Web: http://www.voip-iran.com > > Forum: www.voip-iran.com/forum <http:///www.voip-iran.com/forum> > > > > > > > > > > > ------------------------------------------------------------------------------ > > Cloud Computing - Latest Buzzword or a Glimpse of the Future? > > This paper surveys cloud computing today: What are the benefits? > > Why are businesses embracing it? What are its payoffs and pitfalls? > > http://www.accelacomm.com/jaw/sdnl/114/51425149/ > > > > > > _______________________________________________ > > Asterisk-java-devel mailing list > > Ast...@li... > > https://lists.sourceforge.net/lists/listinfo/asterisk-java-devel > > -------------- next part -------------- > An HTML attachment was scrubbed... > > ------------------------------ > > > ------------------------------------------------------------------------------ > Cloud Computing - Latest Buzzword or a Glimpse of the Future? > This paper surveys cloud computing today: What are the benefits? > Why are businesses embracing it? What are its payoffs and pitfalls? > http://www.accelacomm.com/jaw/sdnl/114/51425149/ > > ------------------------------ > > _______________________________________________ > Asterisk-java-devel mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-devel > > > End of Asterisk-java-devel Digest, Vol 36, Issue 1 > ************************************************** > |
From: Yves A. <yv...@gm...> - 2011-12-14 10:33:46
|
Hi, when will people learn how to use a mailing list and how to ask for help...?? This is definitely the wrong way... and to repeat the question over and over again, even by using bold letters wont do it either. If you want anybody to support you, then it is always a good idea to post as much information as possible. This in turn reduces the number of questions of the reader. So in your case, it would be nice to know - besides the always necessary info about your configuratin / versions etc..., what you tried so for...if at all.. how did you setup parking? does it work with normal phones? how does your agi-sourcecode look like? what happens at all - are there any error messages? and so on and so on. you can´t expect any effort from anyone, if you are not showing any effort yourself. regards, yves Am 14.12.2011 11:04, schrieb Haamed Kouhfallah: > Hi, > How can i use park() command on AGI program.. > > thanks > > > Haamed Kouhfallah > ----------------------------- > The VoIP-IRAN Manager > Email: k.h...@gm... <mailto:k.h...@gm...> > Web: http://www.voip-iran.com > Forum: www.voip-iran.com/forum <http:///www.voip-iran.com/forum> > > > > > ------------------------------------------------------------------------------ > Cloud Computing - Latest Buzzword or a Glimpse of the Future? > This paper surveys cloud computing today: What are the benefits? > Why are businesses embracing it? What are its payoffs and pitfalls? > http://www.accelacomm.com/jaw/sdnl/114/51425149/ > > > _______________________________________________ > Asterisk-java-devel mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-devel |
From: Haamed K. <k.h...@gm...> - 2011-12-14 10:05:08
|
Hi, How can i use park() command on AGI program.. thanks Haamed Kouhfallah ----------------------------- The VoIP-IRAN Manager Email: k.h...@gm... Web: http://www.voip-iran.com Forum: www.voip-iran.com/forum <http:///www.voip-iran.com/forum> |
From: Multi F. <mn...@gm...> - 2011-12-14 03:50:46
|
Hi Im starting with asterisk-java lib and have a doubt: - my customer uses elastix. Then, is possible created application using asterisk-java for working together with Elastix? My application is a popup that identify the calling number and shows in a specific window. Regards Richard |
From: Haamed K. <k.h...@gm...> - 2011-12-13 06:57:24
|
Hi every body, I want to use park() cmd in my java program, how can i use it? in my AGI program I want to park my current Chanel. thanks in advanced Haamed Kouhfallah ----------------------------- The VoIP-IRAN Manager Email: k.h...@gm... Web: http://www.voip-iran.com Forum: www.voip-iran.com/forum <http:///www.voip-iran.com/forum> |
From: Jeryes . <je...@vo...> - 2011-05-10 15:53:22
|
Hi All! I have an application that is connected to Asterisk by BaseAgiScript, and it only answers, play a file and disconnect the call. Now I am trying to dial to another destination after receive a new call, executing the command Dial: *agiChannel.exec("Dial", "SIP/otherUser@otherUserIp:5060");* *agiChannel* is the channel received in a new incoming AgiRequest by the event *service(AgiRequest request, AgiChannel agiChannel)*. But doing this way I am not able to change the domain on from or to Header, is there a way to change the domain dynamically? I've tried the option *o *to keep the original *from* received on incoming AgiRequest, but it had no effect: *agiChannel.exec("Dial", "SIP/otherUser@otherUserIp:5060|o"); *I couldn't do it with Manager Api eather.*** * Please, could some one help?* * Thanks in advance! Regards Jeryes |
From: Stefan R. <ste...@re...> - 2011-03-07 08:32:20
|
Hi, > As best as I can tell, it's mostly used to restrict access to methods > that generally shouldn't be called by programs using the API, such as > those responsible for firing Live Events, those responsible for handling > the direct ManagerEvents being handled, etc. Yes that was the idea behind it. The methods in the interface are for users of the API and the methods of the *Impl classes that are not part of the interface are for the corresponding *Manager to update the state of the live object when the AMI events are processed. > I agree, it does provide a lot of nice default functionality. However, > it seems to me to be designed to be used internally only. Most of the > properties of the channel are read-only in actuality, such as name, > unique id, caller id, etc, but have setters defined. It could be > confusing to users to have these setters available publicly, since they > don't do anything to the channel itself, only to the java object > representing it. Indeed. The "write" methods in the interface cause interaction with Asterisk and actually modify the state of the corresponding concept there. What is lacking currently is a clear and easy way of extending the live API. This would require extending the *Manager, the *Impl and the interface. I would like to keep the interface for the "end user" separate from what the *Manager uses to update the state. This can either be done by the current interface/impl separation or maybe by having some kind of a companion class for the live object. =Stefan |
From: Colin W. <co...@bi...> - 2011-03-07 07:03:20
|
> I did not discover the live packet yet, but I do not see the point in > defining interfaces but coding against concrete classes. The interface > is only useless overhead that does not give any advantage (like loose > coupling), so in my personal opinion the refactoring seems to be a > good idea. > As best as I can tell, it's mostly used to restrict access to methods that generally shouldn't be called by programs using the API, such as those responsible for firing Live Events, those responsible for handling the direct ManagerEvents being handled, etc. Why do you think it would be bad design to open the > AsteriskChannelImpl to public? It provides a lot of functionality that > I probably do not want to recode in custom channels, so allowing to > inherit from the class would make things easier. I agree, it does provide a lot of nice default functionality. However, it seems to me to be designed to be used internally only. Most of the properties of the channel are read-only in actuality, such as name, unique id, caller id, etc, but have setters defined. It could be confusing to users to have these setters available publicly, since they don't do anything to the channel itself, only to the java object representing it. -- Colin Williams |
From: daniel m. <dan...@go...> - 2011-03-05 11:32:07
|
Hi > as some methods may need to be moved from the AsteriskChannelImpl class to > the AsteriskChannel interface. from the docu: * channels). <p/> AsteriskServer is still in an early state of development. So, * when using AsteriskServer be aware that it might change in the future. I did not discover the live packet yet, but I do not see the point in defining interfaces but coding against concrete classes. The interface is only useless overhead that does not give any advantage (like loose coupling), so in my personal opinion the refactoring seems to be a good idea. Why do you think it would be bad design to open the AsteriskChannelImpl to public? It provides a lot of functionality that I probably do not want to recode in custom channels, so allowing to inherit from the class would make things easier. Daniel |
From: Colin W. <co...@bi...> - 2011-03-04 20:02:20
|
Following along on the recent addition of a ChannelFactory for the agi package, I was thinking of implementing something similar for the live package. I have a question regarding architecture before anything significant can be accomplished. It seems like in the actual meat of the live package, nothing uses the interfaces, they all use direct references to the *Impl classes. For example, in the ChannelManager.addNewChannel method, it directly creates an AsteriskChannelImpl object. For example, > final AsteriskChannelImpl channel = new AsteriskChannelImpl(server, name, > uniqueId, dateOfCreation); as opposed to > final AsteriskChannel channel = new AsteriskChannelImpl(server, name, > uniqueId, dateOfCreation); In addition, many of the methods called on these objects are only available in the AsteriskChannelImpl object, and so the objects are all stored as Impl's. This works great, but poses a problem with the addition of a ChannelFactory. In order to correctly implement a ChannelFactory, it must either: 1. return subclasses of AsteriskChannelImpl. This would force the AsteriskChannelImpl object into public scope, which is probably not a good idea. 2. return classes that implement the AsteriskChannel interface. This would be a more correct method to follow, but it would also require significant refactoring of at least the channel tracking portions of the live package, and possibly more. This could break backwards compatibility with the API, as some methods may need to be moved from the AsteriskChannelImpl class to the AsteriskChannel interface. If there are additional options, I'd love to hear them. I don't have a problem with doing all the refactoring mentioned in the second option, but I'd prefer to get confirmation that such sweeping changes have a chance of being accepted back into the master branch. I'd very much prefer to contribute the changes back into the project than keep them to myself or fork. Thanks for any advice, --Colin -- Colin Williams |
From: Stefan R. <ste...@re...> - 2011-03-04 10:04:06
|
Hi, Yes it would be nice if you could contribute live objects for extensions. Please clone our git repo at https://github.com/srt/asterisk-java so we can easily merge it back. Yours, Stefan |
From: Yves A. <yv...@gm...> - 2011-03-04 09:26:46
|
Hi Wolfgang, I´d appreciate if you could programm these classes. I did so before, and went the way you suggested, by listening to the events and "calculating" the state. I did not need every state and therefore my approach was not very generic, nor capsuled in a Class that implements "LiveObject". It would be nice, if you could share your code, so that maybe later it can also be taken in stefans´ svn-branch. If it is not too urgent, I could also support you with coding. regards, yves Am 04.03.2011 08:36, schrieb Wolfgang Pichler: > Hi all, > > i am looking for the best method to monitor the state of extensions - > it would be possible to do it by listening only to the manager events > - and calculating the current state of an extension out of it. But it > would be more elegant to have a Live Object which does that work. So, > is there already an implementation for this out there ? Or do i have > to implement it by myself ? > > best regards, > Wolfgang > > ------------------------------------------------------------------------------ > What You Don't Know About Data Connectivity CAN Hurt You > This paper provides an overview of data connectivity, details > its effect on application quality, and explores various alternative > solutions. http://p.sf.net/sfu/progress-d2d > _______________________________________________ > Asterisk-java-devel mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-devel > |