Thread: [Asterisk-java-users] Other manager behavior modification
Brought to you by:
srt
From: <gm...@ea...> - 2007-06-01 07:54:18
|
Hi Stefan While I'm on it, I have another older pending modification related to asterisk 1.2 (I made this change as a workaround for 1.2.9 + BRIStuff iirc). I think this modification comes from the Bristuff patches. In the DbGetRespnse, the value is not returned after "Val" but after "Value". So I just added an additional extra setter to have it work with both versions. Gaetan Index: /Users/Gaetan/Documents/workspace/asterisk-java-trunk/src/main/ java/org/asteriskjava/manager/event/DbGetResponseEvent.java =================================================================== --- /Users/Gaetan/Documents/workspace/asterisk-java-trunk/src/main/ java/org/asteriskjava/manager/event/DbGetResponseEvent.java (revision 650) +++ /Users/Gaetan/Documents/workspace/asterisk-java-trunk/src/main/ java/org/asteriskjava/manager/event/DbGetResponseEvent.java (working copy) @@ -104,4 +104,16 @@ { this.val = val; } + + /** + * Sets the value of the database entry that was queried. + * It seems that in ast 1.2 ( 1.2.9 +BRIStuff ? ) at least the key is + * not val anymore but value. + * + * @param val the value of the database entry that was queried. + */ + public void setValue(String val) + { + this.val = val; + } } |
From: Jesus J. <ap...@gm...> - 2007-06-12 21:04:47
|
hi to all, I have a few questions about fastagi protocol, i searched information for "security of fastaagi over internet" but i didn't found . My question is if the fastagi protocol has authetication and encryption, or we need to add this services externally ( VPN , X.509). I'll appreciate all your's suggests or information ... thanks! P.D.: Sorry for my english.. |
From: Stefan R. <ste...@re...> - 2007-06-13 06:52:07
Attachments:
signature.asc
|
Hi, the FastAGI protocol itself has no support for authentication and encryption. You can add authentication at the application level using a username and password parameter and checking for that. For encryption you have to revert to VPN or similar. =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... Steuernummern 215/5140/1791 USt-IdNr. DE220701760 |
From: Brett S. <bs...@no...> - 2007-06-13 07:07:09
|
You could consider writing a fastagi 'proxy' which sits on the Asterisk server so that the clear unauthenticated text is only transmitted locally. The proxy could then demand authentication/encryption using something like SOAP to the actual end point. You would probably want the remote end point to register for 'events' by providing a soap end point for your proxy to call into. Your fastagi proxy could then pass events to the external/remote process over soap as required. When using soap you can use both a client and server SSL cert. Have a look at the Axis libraries from apache. Be careful, the client certs seem to really slow the system down which can be a problem if you are in the middle of handling a telephone call. Regards, Brett Stefan Reuter wrote: > Hi, > > the FastAGI protocol itself has no support for authentication and > encryption. You can add authentication at the application level using a > username and password parameter and checking for that. For encryption > you have to revert to VPN or similar. > > =Stefan > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > ------------------------------------------------------------------------ > > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > |
From: Jesus J. <ap...@gm...> - 2007-06-13 20:28:37
|
Hi, ok, thanks for the information. Regards, Jesus. Brett Sutton escribió: > You could consider writing a fastagi 'proxy' which sits on the Asterisk > server so that the clear unauthenticated text is only transmitted > locally. The proxy could then demand authentication/encryption using > something like SOAP to the actual end point. > You would probably want the remote end point to register for 'events' by > providing a soap end point for your proxy to call into. > Your fastagi proxy could then pass events to the external/remote process > over soap as required. > When using soap you can use both a client and server SSL cert. > Have a look at the Axis libraries from apache. Be careful, the client > certs seem to really slow the system down which can be a problem if you > are in the middle of handling a telephone call. > > Regards, > Brett > > Stefan Reuter wrote: > >> Hi, >> >> the FastAGI protocol itself has no support for authentication and >> encryption. You can add authentication at the application level using a >> username and password parameter and checking for that. For encryption >> you have to revert to VPN or similar. >> >> =Stefan >> >> >> ------------------------------------------------------------------------ >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by DB2 Express >> Download DB2 Express C - the FREE version of DB2 express and take >> control of your XML. No limits. Just data. Click to get it now. >> http://sourceforge.net/powerbar/db2/ >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> Asterisk-java-users mailing list >> Ast...@li... >> https://lists.sourceforge.net/lists/listinfo/asterisk-java-users >> >> > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > |
From: Jason W. <ja...@cl...> - 2007-06-20 13:21:34
|
Hello, I must apologize up front because I've asked this question before but I cannot locate the response. I am using Asterisk Java to originate calls through the manager interface, SIP and IAX. I use a PSTN termination provider and of course, the IAX and SIP channels are assigned dynamically. This means that when I send an originate action then only way I can know what channel the call is on is to 'register' it back to my program in the first line of the extensions, using a user event. Basically, I send an event from asterisk that tells java Manager the new channel with the recorded that I originally passed in a map. Then I can update a structure in my java program. So, big problem is this... when there is a busy, the extensions the program never enters the extensions, and therefore I don't know what channel it was, or that the call has failed. The response event doesn't tell me the call status. Is there a better way to handle this in the new version? Some new kind of origination that will keep some kind of communication between asterisk and java so that I know that the line was busy, and what channel was used? Thanks! Jason |
From: Stefan R. <ste...@re...> - 2007-06-20 17:54:09
Attachments:
signature.asc
|
Jason Wolfe wrote: > Is there a better way to handle this in the new version? Some new kind = of > origination that will keep some kind of communication between asterisk = and > java so that I know that the line was busy, and what channel was used? Yes, have a look at the originateAsync method in org.asteriskjava.live.AsteriskServer. You can provide a callback object with methods called when the call has been successfully established, or busy or failed otherwise. =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... Steuernummern 215/5140/1791 USt-IdNr. DE220701760 |