Thread: [Asterisk-java-users] help setting properties file in fastagi
Brought to you by:
srt
From: Yelson V. <yv...@gm...> - 2006-10-06 18:34:01
|
Hi Guys I'm developing a fastagi program using asterisk-java 0.2 version and i need to change the port and pool size, but i don't know how, can somebody give a example about how does it look to add fastagi.properties file on the classpath. Thanks for your help Br Yelson -- Yelson E Vivas C MPC (571) 6500-800 |
From: Jonathan A. <jau...@st...> - 2006-10-07 20:24:47
|
I have a question about manager fax events. I see documented an event that notifies the arrival of an incoming fax. Is there a event to notify that txfax has successfully sent a fax (am I just missing it in the documentation)? If not, would it be difficult to implement this feature? Jonathan |
From: Stefan R. <ste...@re...> - 2006-10-07 20:59:08
Attachments:
signature.asc
|
Jonathan Augenstine wrote: > I have a question about manager fax events. I see documented an =20 > event that notifies the arrival of an incoming fax. Is there a event = > to notify that txfax has successfully sent a fax (am I just missing =20 > it in the documentation)?=20 No app_txfax does not currently send an event in that case. > If not, would it be difficult to implement =20 > this feature? No not really. It involves patching app_txfax, creating a class for the event an registering it with the ManagerConnection. =3DStefan --=20 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... |
From: Jonathan A. <jau...@st...> - 2006-10-08 16:11:51
|
Stefan, Thanks for the help. I have patched app_txfax and created the class, but I have a couple of questions. First, I used the FaxReceivedEvent as a template for creating FaxSentEvent. There is a UID variable in the class: private static final long serialVersionUID = -1409738380177538949L; // this is from FaxReceivedEvent I assume this is a unique value. My question is, where do I get a value for this variable? Second, I wanted to verify how to register the class with ManagerConnection. I edited EventBuilderImpl.java to import and register the class. Is there anything else I need to do? Jonathan On Oct 7, 2006, at 1:58 PM, Stefan Reuter wrote: > Jonathan Augenstine wrote: >> I have a question about manager fax events. I see documented an >> event that notifies the arrival of an incoming fax. Is there a event >> to notify that txfax has successfully sent a fax (am I just missing >> it in the documentation)? > > No app_txfax does not currently send an event in that case. > >> If not, would it be difficult to implement >> this feature? > > No not really. It involves patching app_txfax, creating a class for > the > event an registering it with the ManagerConnection. > > =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... > > ---------------------------------------------------------------------- > --- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to > share your > opinions on IT & business topics through brief surveys -- and earn > cash > http://www.techsay.com/default.php? > page=join.php&p=sourceforge&CID=DEVDEV________________________________ > _______________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users |
From: Stefan R. <ste...@re...> - 2006-10-08 16:25:35
Attachments:
signature.asc
|
Jonathan Augenstine wrote: > private static final long serialVersionUID =3D =20 > -1409738380177538949L; // this is from FaxReceivedEvent >=20 > I assume this is a unique value. My question is, where do I get a =20 > value for this variable? Its just the Java serial version identifier. You can remove it and your IDE will probably allow you to create a new one, or you use the serialver tool provided by the JDK. > Second, I wanted to verify how to register the class with =20 > ManagerConnection. I edited EventBuilderImpl.java to import and =20 > register the class. Is there anything else I need to do? This means you modified Asterisk-Java. It will work perfectly well but you have to recompile Asterisk-Java each time you update it. Therefore it might be easier to put your event class somewhere outside of Asterisk-Java (e.g. com.yourdomain.asterisk.event.FaxSentEvent) and register it with the ManagerConnection instead of modifying EventBuilderImpl: managerConnection.registerUserEventClass(FaxSentEvent.class) (registerUserEventClass might be a bit misleading because it was at first intended to be used with UserEvent events but it works for any even= t) =3DStefan --=20 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... |
From: Jonathan A. <jau...@st...> - 2006-10-08 17:39:13
|
Stefan, Thank you for clarifying that issue. I did misunderstand the registerUserEventClass. I thought this related only to client generated events. Jonathan > >> Second, I wanted to verify how to register the class with >> ManagerConnection. I edited EventBuilderImpl.java to import and >> register the class. Is there anything else I need to do? > > This means you modified Asterisk-Java. It will work perfectly well but > you have to recompile Asterisk-Java each time you update it. > Therefore it might be easier to put your event class somewhere outside > of Asterisk-Java (e.g. com.yourdomain.asterisk.event.FaxSentEvent) and > register it with the ManagerConnection instead of modifying > EventBuilderImpl: > managerConnection.registerUserEventClass(FaxSentEvent.class) > > (registerUserEventClass might be a bit misleading because it was at > first intended to be used with UserEvent events but it works for > any event) > |
From: Stefan R. <ste...@re...> - 2006-10-07 21:06:37
Attachments:
signature.asc
|
Yelson Vivas wrote: > Hi Guys > I'm developing a fastagi program using asterisk-java 0.2 version and i > need to change the port and pool size, but i don't know how, can > somebody give a example about how does it look to add > fastagi.properties file on the classpath. just put it into the same directory as your fastagi-mapping.properties. =3DStefan --=20 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... |