asterisk-java-users Mailing List for Asterisk-Java Library (Page 132)
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: Stefan R. <ste...@re...> - 2007-07-05 12:08:27
|
Daniel Gradecak wrote: > is there a way to know that the monitoring of a channel has been starte= d=20 > ? Something like an event or whatever? No I don't think so. Depending on how you are starting monitoring there might be other means to get that information though. =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: Stefan R. <ste...@re...> - 2007-07-05 12:07:04
|
> When initiating a call (using the Manager API and the Originate > command), set a variable on that call. Then track the events the Manage= r > API emits, if you encounter a NewChannelEvent get the variable from tha= t > channel and match it to a call. From there on you can use the channel > name to track events. You can also use the originateToXXXAsync methods in org.asteriskjava.live.DefaultAsteriskServer that does exactly what David describes. If anybody has a good example I am happy to include it in the tutorial. =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: David R. <dr...@in...> - 2007-07-05 11:04:16
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Silvio Bierman wrote: > Can anyone point us in the right direction (preferably a small code > sample) of how to initiate a call and then track the status of that call > (connecting, ringing, answered and various error statusses)? When initiating a call (using the Manager API and the Originate command), set a variable on that call. Then track the events the Manager API emits, if you encounter a NewChannelEvent get the variable from that channel and match it to a call. From there on you can use the channel name to track events. Hope that helps, David Roden - -- INA Service GmbH Papenreye 63 22453 Hamburg Germany Mail: in...@in... Phone: +49 (0)40 557 07-07 Fax: +49 (0)40 557 07-100 Geschäftsführer: Ines M. Hoerner Amtsgericht Hamburg HRB 96470 Ust-IdNr. DE248754961 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGjNAXah2J2g3uuwIRAtIKAJwL+/S6KwzZYN8mhE8veYxpW0/N0QCdHObv paHpMSmx/Dz+mSfbxbf/570= =vDFB -----END PGP SIGNATURE----- |
|
From: Silvio B. <sbi...@ja...> - 2007-07-05 10:28:31
|
Hello all, We are developing an Asterisk extension to a software system for automated telephonic interviewing. The sample management process feeds us telephone numbers and we have to respond with call status/progress information. Currently we are using asterisk-java to connect to Asterisk. Can anyone point us in the right direction (preferably a small code sample) of how to initiate a call and then track the status of that call (connecting, ringing, answered and various error statusses)? Thanks in advance, Kind regards, Silvio Bierman Jambo software |
|
From: Daniel G. <da...@gr...> - 2007-07-04 09:00:17
|
Hello, is there a way to know that the monitoring of a channel has been started ? Something like an event or whatever? I need that to be able to show in my application that the monitor was started/stopped by a third party. It can also be started/stopped by my application. http://sourceforge.net/projects/svarog/ Regards, Daniel |
|
From: Jesus J. <ap...@gm...> - 2007-07-03 15:34:38
|
Rodrigo Pimenta Carvalho escribió: > > Hi. > > > > I have installed TrixBox (Bootable) in my machine. > > Now, I intend to use Asterisk-Java jar and FastAgi. > > > > Does my Asterisk (from TrixBox) have FastAgi? > > How can I check if my Asterisk has FastAgi? > > If it doesn´t, how to find and install FastAgi? It it a kind of > executable server? > > > > What is the command line (linux prompt) to see the Asterisk version? > > > > Any hint will be very helpful. > > > > Thanks. > > > > Rodrigo Pimenta Carvalho. > > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > 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 > Hi Rodrigo, I think you are confused, FastAGI it's an asterisk protocol that use Asterisk-Java (AMI protocol too). at starting in Asterisk-Java , I suggest you to visit Asterisk-Java documentation , in the section of Tutorial there are a few examples that may help you. http://asterisk-java.org/0.3/tutorial.html Best regards, Jesus |
|
From: Rodrigo P. C. <pi...@in...> - 2007-07-03 15:01:37
|
Hi. =20 I have installed TrixBox (Bootable) in my machine. Now, I intend to use Asterisk-Java jar and FastAgi. =20 Does my Asterisk (from TrixBox) have FastAgi? How can I check if my Asterisk has FastAgi? If it doesn=B4t, how to find and install FastAgi? It it a kind of = executable server? =20 What is the command line (linux prompt) to see the Asterisk version? =20 Any hint will be very helpful. =20 Thanks. =20 Rodrigo Pimenta Carvalho. =20 |
|
From: Stefan R. <ste...@re...> - 2007-07-01 22:00:29
|
Asterisk-Java 0.3, a Java library for Asterisk PBX integration,
has been released.
The Asterisk-Java package consists of a set of Java classes that allow
you to easily build Java applications that interact with an Asterisk
PBX Server. Asterisk-Java supports both interfaces that Asterisk
provides for this scenario: The FastAGI protocol and the Manager API.
Asterisk-Java 0.3 is the new stable release with full support for
Asterisk 1.4 and the new Live API (org.asteriskjava.live).
The Live API takes care of the lowlevel action and event handling
of the Manager API and offers an intuitive API for Java developers.
Asterisk-Java takes advantage of the features of Java 5.0 and therfore
requires a Java Virtual Machine of at least version 1.5.0.
Asterisk-Java is used in several commercial environments and by
the following Open Source projects:
* Asterisk-JTAPI
JTAPI implementation for Asterisk.
http://asterisk-jtapi.sf.net/
* Asterisk-IM
A plugin for the Openfire XMPP (jabber) server. It provides
integrated presence between your IM client and phone, notification
of incoming calls by IM and originate calls from supported IM
clients.
http://www.igniterealtime.org/projects/openfire/
* Asterisk Desktop Manager (ADM)
A desktop application that will allow for automatic on-call volume
reduction, one click dial from clipboard, integrated phonebook
and more.
http://adm.hamnett.org/
Asterisk-Java is available under Apache 2.0 license at
http://asterisk-java.org
|
|
From: Ben A. <ben...@st...> - 2007-06-25 09:05:08
|
Hello there I would greatly appreciate a small amount of your time to assist with my doctoral research at The University of Newcastle. The research concerns open source licensing and we're seeking developers working on Java projects. The research is supervised, ethics-approved, anonymous and results will be freely available. Participation will also provide a custom licensing report for your project. To learn more, please visit: http://licensing-research.newcastle.edu.au Thanks for reading this email, and I hope you'll consider participating. Best regards Ben Alex (My apologies for being off-topic; this list will not be emailed again) |
|
From: Stefan R. <ste...@re...> - 2007-06-20 17:54:09
|
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 |
|
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: 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: 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: Stefan R. <ste...@re...> - 2007-06-13 06:52:07
|
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: 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: <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: <gm...@ea...> - 2007-06-01 07:44:57
|
Hi, I'm not using the manager directly, I retrieve vars through AstreriskChannel.getVariable(). Thanks Gaetan On 01 Jun 2007, at 03:11, Stefan Reuter wrote: > Hi > >> It seems that with ast 1.4.4 when a requested variables does not >> exist on a given channel, no error is returned anymore but instead >> the litteral string "(null)" is returned: >> > [..] >> Could this be handled globally in the ResponseEvent ? > > I would rather like to handle it in AsteriskServer. Would that be > ok for > you or are you using org.asteriskjava.manager directly? > > =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... > > Steuernummern 215/5140/1791 USt-IdNr. DE220701760 > > ---------------------------------------------------------------------- > --- > 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: Stefan R. <ste...@re...> - 2007-06-01 01:11:36
|
Hi > It seems that with ast 1.4.4 when a requested variables does not =20 > exist on a given channel, no error is returned anymore but instead =20 > the litteral string "(null)" is returned: >=20 [..] > Could this be handled globally in the ResponseEvent ? I would rather like to handle it in AsteriskServer. Would that be ok for you or are you using org.asteriskjava.manager directly? =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: Henrik B. <hen...@fr...> - 2007-05-31 15:11:51
|
Hi,
I'm trying to establish a call using OriginateAction with Asterisk 1.4.4
and asterisk-java svn HEAD.
Everything works fine so far, despite of the generation of ring-tones:
The calling party's phone rings, I pick up but I can't hear any
ring-tones while the called phone is ringing. This is quite annoying as
you can imagine. I tried to add the "r"-option to my dial-command - no
change. I also tried to use the Local channel as well as the SIP channel
the phone is connected to - no change.
I'm not sure if its an asterisk-java problem or more an asterisk
problem, but perhaps someone can help...
This is the way I establish the call:
originateAction = new OriginateAction();
originateAction.setChannel("Local/4315@default);
//originateAction.setChannel("SIP/test);
originateAction.setExten("4316");
originateAction.setContext("default");
originateAction.setPriority(1);
originateAction.setCallerId("Test <4315>);
originateAction.setAsync(true);
originateResponse = managerConnection.sendAction(originateAction,
10000);
When connecting to the asterisk-server asterisk-java reports that it has
determined an asterisk with version 1.2 (should be 1.4.4) - is there
perhaps a deeper problem?
thank you for your help
Henrik
|
|
From: <gm...@ea...> - 2007-05-31 14:04:27
|
Hi Stefan It seems that with ast 1.4.4 when a requested variables does not exist on a given channel, no error is returned anymore but instead the litteral string "(null)" is returned: ## T 127.0.0.1:33509 -> 127.0.0.1:5038 [AP] action: GetVar. actionid: 31662978_578#. variable: PROXYCALL. channel: SIP/285-08b1ff98. . # T 127.0.0.1:5038 -> 127.0.0.1:33509 [AP] Response: Success. Variable: PROXYCALL. Value: (null). # T 127.0.0.1:5038 -> 127.0.0.1:33509 [AP] ActionID: 31662978_578#. Could this be handled globally in the ResponseEvent ? Regards Gaetan |
|
From: S. B. S. <bs...@no...> - 2007-05-25 09:57:55
|
The code sample you supplied is not an asterisk database but something
that asterisk2billing layers on top of asterisk.
The closet thing you will get is the sip_buddies table which is used in
asterisk realtime.
Normally sip entries are kept in sip.conf but you can move these to a
sql db by using the asterisk realtime feature.
Having said that sip entries are not users/accounts but telephone
extensions.
If you are doing some sort of billing application you will have to
create/manage your own account tables.
Cord wrote:
> Hello list!
>
> I'm quite new to programming Asterisk-Java.
> I wrote a servlet which successfully calls an originate action with the given parameters.
>
> My problem is related to the setAccount method:
>
> I have to authenticate the account, so if the given password is not right, I reject calling the originate, else I do it.
>
> I would like to achive the same funcionality, which is in the Asterisk2Billing php goodness:
>
> function login ($user, $pass) {
> global $DBHandle;
> [...]
> $QUERY = "SELECT userid, perms, confaddcust, groupid FROM cc_ui_authen WHERE login = '".$user."' AND password = '".$pass."'";
> $res = $DBHandle -> query($QUERY);
> if (!$res) {
> $errstr = $DBHandle->ErrorMsg();
> return (false);
> }
> [...]
> }
>
> I don't understand PHP much, but I have read about the DB handling of asterisk-java, but no clue how to match the user password.
>
> How can I access Asterisk's database, where can I read about the scheme, etc.
>
>
> Thanks in advance!
>
>
>
> Attila
>
>
> -------------------------------------------------------------------------
> 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: Cord <co...@tv...> - 2007-05-25 08:58:13
|
=0D=0AHello list!
I'm quite new to programming Asterisk-Java.
I wrote a servlet which successfully calls an originate action with the giv=
en parameters.
My problem is related to the setAccount method:
I have to authenticate the account, so if the given password is not right, =
I reject calling the originate, else I do it.
I would like to achive the same funcionality, which is in the Asterisk2Bill=
ing php goodness:
function login ($user, $pass) {=20
=09global $DBHandle;
=09[...]=09
=09$QUERY =3D "SELECT userid, perms, confaddcust, groupid FROM cc_ui_authen=
WHERE login =3D '".$user."' AND password =3D '".$pass."'";
=09$res =3D $DBHandle -> query($QUERY);
=09if (!$res) {
=09=09$errstr =3D $DBHandle->ErrorMsg();
=09=09return (false);
=09}
=09[...]
}
=20
I don't understand PHP much, but I have read about the DB handling of aster=
isk-java, but no clue how to match the user password.
How can I access Asterisk's database, where can I read about the scheme, et=
c.
Thanks in advance!
=09Attila
|
|
From: Aaron F. <aa...@la...> - 2007-05-24 16:21:55
|
Ah, I see -- this is a way of queueing up a bunch of calls. I missed the manipulation of callThreads in the onManagerEvent method. -a > -----Original Message----- > From: ast...@li... > [mailto:ast...@li...] On > Behalf Of Aaron Freeman > Sent: Thursday, May 24, 2007 10:50 AM > To: ast...@li... > Subject: Re: [Asterisk-java-users] Dialer > > How would you do it in extensions.conf? I can probably > figure it out from comparing with yours. > > BTW what is callThreads? Is that a HashMap of threads? And > callState? > > Thanks, > > Aaron > > > -----Original Message----- > > From: ast...@li... > > [mailto:ast...@li...] > On Behalf > > Of Carlos G Mendioroz > > Sent: Thursday, May 24, 2007 10:41 AM > > To: ast...@li... > > Subject: Re: [Asterisk-java-users] Dialer > > > > I'll pass on that, I don't know about Trixbox... > > > > > > Aaron Freeman @ 24/05/2007 12:30 -0300 dixit: > > > Wow this looks very comprehensive. I will definitely use it as a > > > starting point. I have a stupid question though (I am new to > > > Trixbox): In FreePBX, how do I tie an extension to an IVR? > > I have a TestIVR menu that I created. > > > I don't see anywhere in the Extensions menu that I can > call TestIVR > > > when an extension is dialed. > > > > > > Thanks for your help on this. In the mean time I am > going to play > > > with the code below to get familiar with it. > > > > > > Aaron > > > > > > -- > > Carlos G Mendioroz <tr...@ac...> > > > > -------------------------------------------------------------- > > ----------- > > 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: Aaron F. <aa...@la...> - 2007-05-24 15:48:47
|
How would you do it in extensions.conf? I can probably figure it out from comparing with yours. BTW what is callThreads? Is that a HashMap of threads? And callState? Thanks, Aaron > -----Original Message----- > From: ast...@li... > [mailto:ast...@li...] On > Behalf Of Carlos G Mendioroz > Sent: Thursday, May 24, 2007 10:41 AM > To: ast...@li... > Subject: Re: [Asterisk-java-users] Dialer > > I'll pass on that, I don't know about Trixbox... > > > Aaron Freeman @ 24/05/2007 12:30 -0300 dixit: > > Wow this looks very comprehensive. I will definitely use it as a > > starting point. I have a stupid question though (I am new to > > Trixbox): In FreePBX, how do I tie an extension to an IVR? > I have a TestIVR menu that I created. > > I don't see anywhere in the Extensions menu that I can call TestIVR > > when an extension is dialed. > > > > Thanks for your help on this. In the mean time I am going to play > > with the code below to get familiar with it. > > > > Aaron > > > -- > Carlos G Mendioroz <tr...@ac...> > > -------------------------------------------------------------- > ----------- > 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: Carlos G M. <tr...@ac...> - 2007-05-24 15:40:48
|
I'll pass on that, I don't know about Trixbox... Aaron Freeman @ 24/05/2007 12:30 -0300 dixit: > Wow this looks very comprehensive. I will definitely use it as a starting > point. I have a stupid question though (I am new to Trixbox): In FreePBX, > how do I tie an extension to an IVR? I have a TestIVR menu that I created. > I don't see anywhere in the Extensions menu that I can call TestIVR when an > extension is dialed. > > Thanks for your help on this. In the mean time I am going to play with the > code below to get familiar with it. > > Aaron -- Carlos G Mendioroz <tr...@ac...> |