asterisk-java-users Mailing List for Asterisk-Java Library (Page 168)
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: Gerwin B. <ger...@gm...> - 2005-11-08 11:47:47
|
Great, thanks very much. Gerwin On Nov 8, 2005, at 12:41 PM, Stefan Reuter wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Stefan Reuter schrieb: >> I just posted >> http://bugs.digium.com/view.php?id=5571 >> to fix the SetVar. > > That patch has been accepted by digium. > So when using latest CVS-HEAD of Asterisk the channel property of the > SetVarAction is optional. To set a global variable only set the > variable > and value properties of SetVarAction and leave channel empty. > I just updated Asterisk-Java's javadoc and added a convenience > constructor to SetVarAction that takes a variable and value. > > =Stefan > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.2 (MingW32) > Comment: GnuPT 2.7.2 > Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org > > iD8DBQFDcI7TTUZ7XZofpgURAq4LAKDAiWtVNpahbdpELxeUYll6Q+zv7QCgh9aF > am3AIWHrbzVVTWbGHuv8gng= > =1tGM > -----END PGP SIGNATURE----- > > > ------------------------------------------------------- > SF.Net email is sponsored by: > Tame your development challenges with Apache's Geronimo App Server. > Download > it for free - -and be entered to win a 42" plasma tv or your very own > Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users |
From: Brett S. <bs...@no...> - 2005-11-08 11:45:40
|
Thanks for the prompt reply. I'm using asterisk-java 0.2 rc2 and asterisk @ home 1.0.9. Here is the trace: login as: root root@10.0.5.55's password: Last login: Tue Nov 8 09:32:06 2005 from crystalreportsxi.cwmedia.com.au Welcome to Asterisk@Home ------------------------------------------------- For access to the Asterisk@Home web GUI use this URL http://10.0.5.55 For help on Asterisk@Home commands you can use from this command shell type help-aah. [root@asterisk1 root]# ngrep -s 4000 port 5038 interface: eth0 (10.0.0.0/255.255.0.0) filter: ip and ( port 5038 ) #### T 10.0.5.55:5038 -> 10.0.0.205:5164 [AP] Asterisk Call Manager/1.0.. # T 10.0.0.205:5164 -> 10.0.5.55:5038 [AP] action: Challenge..actionid: 16939420_0#..authtype: MD5.... ## T 10.0.5.55:5038 -> 10.0.0.205:5164 [AP] Response: Success..ActionID: 16939420_0#..Challenge: 680897534.... # T 10.0.0.205:5164 -> 10.0.5.55:5038 [AP] key: 99fa3b5002176ef1355028ca360e5c0d..action: Login..actionid: 16939420_1# ..authtype: MD5..username: admin.... # T 10.0.5.55:5038 -> 10.0.0.205:5164 [AP] Response: Success.. # T 10.0.5.55:5038 -> 10.0.0.205:5164 [AP] ActionID: 16939420_1#.. ## T 10.0.5.55:5038 -> 10.0.0.205:5164 [AP] Message: Authentication accepted.... # T 10.0.0.205:5164 -> 10.0.5.55:5038 [AP] command: show version files..action: Command..actionid: 16939420_2#.... # T 10.0.5.55:5038 -> 10.0.0.205:5164 [AP] Response: Follows.. # T 10.0.5.55:5038 -> 10.0.0.205:5164 [AP] ActionID: 16939420_2#.. # T 10.0.5.55:5038 -> 10.0.0.205:5164 [AP] Usage: show version. Shows Asterisk version information.. ## T 10.0.5.55:5038 -> 10.0.0.205:5164 [AP] --END COMMAND--.... # T 10.0.0.205:5164 -> 10.0.5.55:5038 [AP] action: Status..actionid: 16939420_3#.... # T 10.0.5.55:5038 -> 10.0.0.205:5164 [AP] Response: Success.. # T 10.0.5.55:5038 -> 10.0.0.205:5164 [AP] ActionID: 16939420_3#.. # T 10.0.5.55:5038 -> 10.0.0.205:5164 [AP] Message: Channel status will follow.... # T 10.0.5.55:5038 -> 10.0.0.205:5164 [AP] Event: Status..Channel: SIP/202-d2da..CallerID: <unknown>..Account: ..State : Up..Context: macro-vm..Extension: s-BUSY..Priority: 1..Seconds: 3483..Uni queid: 1131446599.1005..ActionID: 16939420_3#.... ## T 10.0.5.55:5038 -> 10.0.0.205:5164 [AP] Event: Status..Channel: SIP/202-dda4..CallerID: "brett" <202>..Account: ..S tate: Up..Context: macro-vm..Extension: s-CHANUNAVAIL..Priority: 1..Seconds : 5195..Uniqueid: 1131444894.829..ActionID: 16939420_3#....Event: Status..C hannel: SIP/202-fb58..CallerID: <unknown>..Account: ..State: Up..Context: m acro-vm..Extension: s-BUSY..Priority: 1..Seconds: 17593..Uniqueid: 11314324 90.18..ActionID: 16939420_3#....Event: StatusComplete..ActionID: 16939420_3 #.... ## T 10.0.0.205:5164 -> 10.0.5.55:5038 [AP] action: Originate..timeout: 30000..actionid: 16939420_4#..exten: 202..async : true..context: default..priority: 1..channel: SIP/202.... # T 10.0.5.55:5038 -> 10.0.0.205:5164 [AP] Event: Newchannel.. # T 10.0.5.55:5038 -> 10.0.0.205:5164 [AP] Channel: SIP/202-91c6..State: Down..CallerID: <unknown>..Uniqueid: 11314500 89.1011.. # T 10.0.5.55:5038 -> 10.0.0.205:5164 [AP] .. ## T 10.0.5.55:5038 -> 10.0.0.205:5164 [AP] Response: Success.. # T 10.0.5.55:5038 -> 10.0.0.205:5164 [AP] ActionID: 16939420_4#.. # T 10.0.5.55:5038 -> 10.0.0.205:5164 [AP] Message: Originate successfully queued.... ## T 10.0.5.55:5038 -> 10.0.0.205:5164 [AP] Event: Newchannel.. # T 10.0.5.55:5038 -> 10.0.0.205:5164 [AP] Channel: SIP/202-91c6..State: Ringing..CallerID: <unknown>..Uniqueid: 11314 50089.1011.. # T 10.0.5.55:5038 -> 10.0.0.205:5164 [AP] .. ## T 10.0.0.205:5164 -> 10.0.5.55:5038 [AP] action: Hangup..actionid: 16939420_5#..channel: SIP/202-91c6.... # T 10.0.5.55:5038 -> 10.0.0.205:5164 [AP] Response: Success.. # T 10.0.5.55:5038 -> 10.0.0.205:5164 [AP] ActionID: 16939420_5#.. # T 10.0.5.55:5038 -> 10.0.0.205:5164 [AP] Message: Channel Hungup.... ## T 10.0.5.55:5038 -> 10.0.0.205:5164 [AP] Event: Hangup.. # T 10.0.5.55:5038 -> 10.0.0.205:5164 [AP] Channel: SIP/202-91c6..Uniqueid: 1131450089.1011..Cause: 16.. # T 10.0.5.55:5038 -> 10.0.0.205:5164 [AP] .. # T 10.0.5.55:5038 -> 10.0.0.205:5164 [AP] Event: OriginateFailure.. ## T 10.0.5.55:5038 -> 10.0.0.205:5164 [AP] ActionID: 16939420_4#..Channel: SIP/202..Context: default..Exten: 202.. # T 10.0.5.55:5038 -> 10.0.0.205:5164 [AP] .. ### T 10.0.0.205:5164 -> 10.0.5.55:5038 [AP] action: Logoff..actionid: 16939420_6#.... # T 10.0.5.55:5038 -> 10.0.0.205:5164 [AP] Response: Goodbye.. # T 10.0.5.55:5038 -> 10.0.0.205:5164 [AP] ActionID: 16939420_6#.. # T 10.0.5.55:5038 -> 10.0.0.205:5164 [AP] Message: Thanks for all the fish..... #### Stefan Reuter wrote: >-----BEGIN PGP SIGNED MESSAGE----- >Hash: SHA1 > >Hi Brett, > >your code looks ok. >If you receive a TimeoutException this indicates that Astersik does not >return a Response to your Action. >I just tried your code with Asterisk CVS-HEAD and it I dont get any >timeout. What version of Asterisk and Asterisk-Java do you use? > >It would help if you could send me a trace of the conversation between >Asterisk and your application. >I usually generate them using ngrep on my Asterisk server >(ngrep -s 4000 port 5038 works well). >Then we can quickly see the cause of this problem. > >=Stefan >-----BEGIN PGP SIGNATURE----- >Version: GnuPG v1.4.2 (MingW32) >Comment: GnuPT 2.7.2 >Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org > >iD8DBQFDcIrSTUZ7XZofpgURAtaEAKCcVYMBzdjYOjJmxgvGW02B0JRi9QCgv+HM >OI5pyRbOG6hc0MoeqpyXLPk= >=cwpS >-----END PGP SIGNATURE----- > > >------------------------------------------------------- >SF.Net email is sponsored by: >Tame your development challenges with Apache's Geronimo App Server. Download >it for free - -and be entered to win a 42" plasma tv or your very own >Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php >_______________________________________________ >Asterisk-java-users mailing list >Ast...@li... >https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > |
From: Stefan R. <sr...@re...> - 2005-11-08 11:41:25
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Stefan Reuter schrieb: > I just posted > http://bugs.digium.com/view.php?id=5571 > to fix the SetVar. That patch has been accepted by digium. So when using latest CVS-HEAD of Asterisk the channel property of the SetVarAction is optional. To set a global variable only set the variable and value properties of SetVarAction and leave channel empty. I just updated Asterisk-Java's javadoc and added a convenience constructor to SetVarAction that takes a variable and value. =Stefan -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (MingW32) Comment: GnuPT 2.7.2 Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFDcI7TTUZ7XZofpgURAq4LAKDAiWtVNpahbdpELxeUYll6Q+zv7QCgh9aF am3AIWHrbzVVTWbGHuv8gng= =1tGM -----END PGP SIGNATURE----- |
From: Stefan R. <sr...@re...> - 2005-11-08 11:24:30
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi Brett, your code looks ok. If you receive a TimeoutException this indicates that Astersik does not return a Response to your Action. I just tried your code with Asterisk CVS-HEAD and it I dont get any timeout. What version of Asterisk and Asterisk-Java do you use? It would help if you could send me a trace of the conversation between Asterisk and your application. I usually generate them using ngrep on my Asterisk server (ngrep -s 4000 port 5038 works well). Then we can quickly see the cause of this problem. =Stefan -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (MingW32) Comment: GnuPT 2.7.2 Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFDcIrSTUZ7XZofpgURAtaEAKCcVYMBzdjYOjJmxgvGW02B0JRi9QCgv+HM OI5pyRbOG6hc0MoeqpyXLPk= =cwpS -----END PGP SIGNATURE----- |
From: Brett S. <bs...@id...> - 2005-11-08 09:15:33
|
I'm trying something which is probably a little unusual. Basically I want to check if a number is inservice or out of service. I do this by dialing the number and if it rings I instantly drop the connection by hanging up. The code basically works fine however the hangup action is throwing a timeout even though the line is successfully hung up. Even if I set the time to 30 seconds a timeout still occurs, where as the sip phone I'm dialing hangs up immediately. Interestingly as soon as the hangup times out I get a HangupEvent. So I thought it might be worth posting the code here for inspection and comment. /* * Created on 8/11/2005 * * To change the template for this generated file go to * Window - Preferences - Java - Code Generation - Code and Comments */ package Carma.voip.cleaner; import java.io.IOException; import net.sf.asterisk.manager.AuthenticationFailedException; import net.sf.asterisk.manager.ManagerConnection; import net.sf.asterisk.manager.ManagerConnectionFactory; import net.sf.asterisk.manager.ManagerEventHandler; import net.sf.asterisk.manager.ManagerResponseHandler; import net.sf.asterisk.manager.TimeoutException; import net.sf.asterisk.manager.action.HangupAction; import net.sf.asterisk.manager.action.OriginateAction; import net.sf.asterisk.manager.action.StatusAction; import net.sf.asterisk.manager.event.ManagerEvent; import net.sf.asterisk.manager.event.NewChannelEvent; import net.sf.asterisk.manager.response.ManagerResponse; public class Manager implements ManagerEventHandler, ManagerResponseHandler { private ManagerConnection managerConnection; public Manager() throws IOException { ManagerConnectionFactory factory = new ManagerConnectionFactory(); this.managerConnection = factory.getManagerConnection("10.0.5.55", "username", "password"); } public void run() throws IOException, AuthenticationFailedException, TimeoutException { OriginateAction originateAction; ManagerResponse originateResponse; originateAction = new OriginateAction(); originateAction.setChannel("SIP/202"); originateAction.setContext("default"); originateAction.setExten("202"); originateAction.setPriority(new Integer(1)); originateAction.setTimeout(new Integer(30000)); originateAction.setAsync(new Boolean(true)); // register for events managerConnection.addEventHandler(this); // connect to Asterisk and log in managerConnection.login(); // request channel state managerConnection.sendAction(new StatusAction()); managerConnection.sendAction(originateAction, this); try { Thread.sleep(10000); } catch (InterruptedException e) { // TODO Auto-generated catch block e.printStackTrace(); } // and finally log off and disconnect managerConnection.logoff(); } public void handleEvent(ManagerEvent event) { if (event instanceof NewChannelEvent) { NewChannelEvent cevent = (NewChannelEvent) event; System.out.println(cevent.getState()); if (cevent.getState().compareToIgnoreCase("Ringing") == 0) { HangupAction hangup = new HangupAction(); hangup.setChannel(cevent.getChannel()); try { // The problem is here, I've also tried explicit timeouts of upto 30seconds and an timeout exception is still thrown. managerConnection.sendAction(hangup); } catch (IllegalArgumentException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (IllegalStateException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (TimeoutException e) { // We ignore the timeout as for some reason hangup always times out. } } } // just print received events System.out.println("Event: " + event); } public void handleResponse(ManagerResponse response) { System.out.println("Response: " + response); } public static void main(String[] args) throws Exception { Manager helloManager; helloManager = new Manager(); helloManager.run(); } } |
From: Stefan R. <sr...@re...> - 2005-11-07 10:03:35
|
> I am using the Manager API to write an application. I would like to us= e > the > Asterisk java api to originate call, transfer, hold, record and hangup > calls. > Does Manager API provide support for the above functions originate: yes via OriginateAction transfer: yes via RedirectAction hold: not directly - but you can fake it by redirecting the channel to music on hold record: yes via MonitorAction and StopMonitorAction hangup: yes via HangupAction > and if so how has anybody got code examples. have a look at the tutorial at http://www.asteriskjava.org/latest/tutorial.html it has a very basic example on how to send an action via manager api and receive responses an= d events. For the specific actions that are available have a look at the javadoc at http://www.asteriskjava.org/latest/apidocs/net/sf/asterisk/manager/action= /package-summary.html hope that helps you get started =3DStefan |
From: Dharmesh C. <ch...@gm...> - 2005-11-07 09:40:11
|
Hi I am using the Manager API to write an application. I would like to use th= e Asterisk java api to originate call, transfer, hold, record and hangup calls. Does Manager API provide support for the above functions and if so how has anybody got code examples. I know the manager api can originate calls but I am not sure about the other functions. Thanks |
From: Stefan R. <sr...@re...> - 2005-11-04 12:18:20
|
So we finally found the cause for the "no agi script configured for ..." error when using Asterisk-Java's FastAGI modules: The Asterisk server was still at version 1.0.3 and that one misses some variables in the AGIContext that is needed to identify the java class tha= t should be run. So be sure to use a recent version of Asterisk with the AGI stuff (best i= s 1.0.9) or the new 1.2-beta2 if you are brave. =3DStefan |
From: <jcc...@is...> - 2005-11-04 10:42:35
|
First of all, I'm sorry for creating a new thread every time I write to = this list. My company must have a anti-spam tool that don't able me = receiving mails from this list, so I read the answers to my questions in = the web archive and then I write a new e-mail. > would you mind to show me the line of your dialplan = (extensions.conf) that triggers the AGI? This is "the line" of extensions.conf file (now, the machine that runs = asterisk-java is 192.168.0.199): exten =3D> _[*0-9],1,Agi(agi://192.168.0.199/hello.agi) Please give me a solution!!!! I'm going completely crazy!!!! |
From: Gerwin B. <ger...@gm...> - 2005-11-03 11:19:38
|
Thanks for the hint, I'll take a look at that. Gerwin On Nov 3, 2005, at 12:16 PM, Stefan Reuter wrote: > The best solution for the underlying requirement is probably to put > the > IAX accounts into a database that can be accessed from your > application > and Asterisk. You need Asterisk 1.2 and its realtime feature for > this to > work. > > =Stefan > >> Yes, that was what I meant. >> >> Thanks for your help. >> Gerwin >> >> >> On Nov 3, 2005, at 11:57 AM, Stefan Reuter wrote: >> >>> Hi Gerwin, >>> >>>> I've got another question: >>>> Can I create a IAX/IAX2 Extension via Manager API? >>> >>> what do you mean by "create an extension"? >>> Adding a new account to iax.conf? That is not possible via the >>> Manager API. >>> >>> =Stefan >>> >>> >>> >>> ------------------------------------------------------- >>> SF.Net email is sponsored by: >>> Tame your development challenges with Apache's Geronimo App Server. >>> Download >>> it for free - -and be entered to win a 42" plasma tv or your very >>> own >>> Sony(tm)PSP. Click here to play: http://sourceforge.net/ >>> geronimo.php >>> _______________________________________________ >>> Asterisk-java-users mailing list >>> Ast...@li... >>> https://lists.sourceforge.net/lists/listinfo/asterisk-java-users >> >> >> >> ------------------------------------------------------- >> SF.Net email is sponsored by: >> Tame your development challenges with Apache's Geronimo App Server. >> Download >> it for free - -and be entered to win a 42" plasma tv or your very own >> Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php >> _______________________________________________ >> Asterisk-java-users mailing list >> Ast...@li... >> https://lists.sourceforge.net/lists/listinfo/asterisk-java-users >> > > > > > ------------------------------------------------------- > SF.Net email is sponsored by: > Tame your development challenges with Apache's Geronimo App Server. > Download > it for free - -and be entered to win a 42" plasma tv or your very own > Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users |
From: Stefan R. <sr...@re...> - 2005-11-03 11:19:09
|
> The problem is still active... would you mind to show me the line of your dialplan (extensions.conf) tha= t triggers the AGI? |
From: Stefan R. <sr...@re...> - 2005-11-03 11:16:54
|
The best solution for the underlying requirement is probably to put the IAX accounts into a database that can be accessed from your application and Asterisk. You need Asterisk 1.2 and its realtime feature for this to work. =3DStefan > Yes, that was what I meant. > > Thanks for your help. > Gerwin > > > On Nov 3, 2005, at 11:57 AM, Stefan Reuter wrote: > >> Hi Gerwin, >> >>> I've got another question: >>> Can I create a IAX/IAX2 Extension via Manager API? >> >> what do you mean by "create an extension"? >> Adding a new account to iax.conf? That is not possible via the >> Manager API. >> >> =3DStefan >> >> >> >> ------------------------------------------------------- >> SF.Net email is sponsored by: >> Tame your development challenges with Apache's Geronimo App Server. >> Download >> it for free - -and be entered to win a 42" plasma tv or your very own >> Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php >> _______________________________________________ >> Asterisk-java-users mailing list >> Ast...@li... >> https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > > > ------------------------------------------------------- > SF.Net email is sponsored by: > Tame your development challenges with Apache's Geronimo App Server. > Download > it for free - -and be entered to win a 42" plasma tv or your very own > Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > |
From: Gerwin B. <ger...@gm...> - 2005-11-03 11:05:04
|
Yes, that was what I meant. Thanks for your help. Gerwin On Nov 3, 2005, at 11:57 AM, Stefan Reuter wrote: > Hi Gerwin, > >> I've got another question: >> Can I create a IAX/IAX2 Extension via Manager API? > > what do you mean by "create an extension"? > Adding a new account to iax.conf? That is not possible via the > Manager API. > > =Stefan > > > > ------------------------------------------------------- > SF.Net email is sponsored by: > Tame your development challenges with Apache's Geronimo App Server. > Download > it for free - -and be entered to win a 42" plasma tv or your very own > Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users |
From: <jcc...@is...> - 2005-11-03 10:59:20
|
The problem is still active... I have downloaded all your files, and the = latest version of JDK, but I continue having the same problem... Yes, I = noticed the line "INFO: Added mapping for 'hello.agi' to class class = HelloAGIScript", but in the next line my problem appears again... Here = is the trace of the execution. H:\AJ>"\Archivos de programa\Java\jdk1.5.0_05\bin\javac.exe" -cp = asterisk-java-0 .2-SNAPSHOT.jar HelloAGIScript.java H:\AJ>"\Archivos de programa\Java\jdk1.5.0_05\bin\java.exe" -cp = asterisk-java-0. 2-SNAPSHOT.jar;. net.sf.asterisk.fastagi.DefaultAGIServer 03-nov-2005 10:50:25 net.sf.asterisk.util.impl.JavaLoggingLog info INFO: Thread pool started. 03-nov-2005 10:50:25 net.sf.asterisk.util.impl.JavaLoggingLog info INFO: Listening on *:4573. 03-nov-2005 10:50:46 net.sf.asterisk.util.impl.JavaLoggingLog info INFO: Received connection. 03-nov-2005 10:50:46 net.sf.asterisk.util.impl.JavaLoggingLog info INFO: Added mapping for 'hello.agi' to class class HelloAGIScript 03-nov-2005 10:50:46 net.sf.asterisk.util.impl.JavaLoggingLog error GRAVE: No script configured for agi://192.168.0.199/hello.agi |
From: Stefan R. <sr...@re...> - 2005-11-03 10:58:06
|
Hi Gerwin, > I've got another question: > Can I create a IAX/IAX2 Extension via Manager API? what do you mean by "create an extension"? Adding a new account to iax.conf? That is not possible via the Manager AP= I. =3DStefan |
From: Gerwin B. <ger...@ro...> - 2005-11-03 09:54:17
|
Hi, I've got another question: Can I create a IAX/IAX2 Extension via Manager API? Thank, Gerwin |
From: Stefan R. <sr...@re...> - 2005-11-02 20:28:17
|
Ok, lets try to hunt it down :) > Yes, fastapi-mapping.properties is in C:\ASTERISK-JAVA\ directory. If I > don't have this file in this directory, I get other error in the console > (the server doesn't find the mapping file), but that is not my real > problem. Thats what i find so strange. If there is no fastagi-mapping.properties you get an error and if you put a wrong class into the mapping file you get an error, too. So if there is no error it should be fine. > I have thought about the problem, and there are two differences between > your example and my problem. The first difference is that you are running > asterisk-java in the same machine that asterisk. I run AGIs from a different server most of the time... > The second one is that > you are running asterisk-java in a unix-linux machine, and I am running i= t > in a windows... Perhaps its a windows problem? I don't understand it > because java is multi-platform, or not? Yes that was my idea, too. So I just tried it on windows and it works fine, too. Here is what I did and what I got: C:\temp\asterisk-java>"\Program Files\Java\jdk1.5.0_03\bin\javac.exe" -cp asterisk-java-0.2-SNAPSHOT.jar HelloAGIScript.java C:\temp\asterisk-java>java -cp asterisk-java-0.2-SNAPSHOT.jar;. net.sf.asterisk.fastagi.DefaultAGIServer Nov 2, 2005 8:16:51 PM net.sf.asterisk.util.impl.JavaLoggingLog info INFO: Thread pool started. Nov 2, 2005 8:16:51 PM net.sf.asterisk.util.impl.JavaLoggingLog info INFO: Listening on *:4573. Nov 2, 2005 8:16:54 PM net.sf.asterisk.util.impl.JavaLoggingLog info INFO: Received connection. Nov 2, 2005 8:16:55 PM net.sf.asterisk.util.impl.JavaLoggingLog info INFO: Added mapping for 'hello.agi' to class class HelloAGIScript Nov 2, 2005 8:16:55 PM net.sf.asterisk.util.impl.JavaLoggingLog info INFO: Begin AGIScript HelloAGIScript on AGIServer-TaskThread-0 Nov 2, 2005 8:16:57 PM net.sf.asterisk.util.impl.JavaLoggingLog info INFO: End AGIScript HelloAGIScript on AGIServer-TaskThread-0 You might have noticed the additional line "Added mapping for 'hello.agi' to class class HelloAGIScript" - I just added that to the latest Asterisk-Java snapshot to help debugging. You can find the jar file at http://null.reucon.net/~srt/asterisk-java-0.2-SNAPSHOT.jar You can find the files I used for testing on windows at http://null.reucon.= net/~srt/test.zip. =3DStefan |
From: <jcc...@is...> - 2005-11-02 15:04:35
|
Yes, fastapi-mapping.properties is in C:\ASTERISK-JAVA\ directory. If I = don't have this file in this directory, I get other error in the console = (the server doesn't find the mapping file), but that is not my real = problem. I also think my problem is very very strange... I also have tried a lot = of things, one of these were including a newline at the end of the = fastapi-mapping.properties (that only contain hello.agi =3D = HelloAGIScript), and also repeating the same line twice in that file. Te = results were the same. I have thought about the problem, and there are two differences between = your example and my problem. The first difference is that you are = running asterisk-java in the same machine that asterisk. The second one = is that you are running asterisk-java in a unix-linux machine, and I am = running it in a windows... Perhaps its a windows problem? I don't = understand it because java is multi-platform, or not? |
From: Stefan R. <sr...@re...> - 2005-11-02 12:55:34
|
Hi, > C:\ASTERISK-JAVA>java -classpath asterisk-java-0.2-rc2.jar;. > net.sf.asterisk.fa > tagi.DefaultAGIServer > 02-nov-2005 9:45:18 net.sf.asterisk.util.impl.JavaLoggingLog info > INFO: Thread pool started. > 02-nov-2005 9:45:19 net.sf.asterisk.util.impl.JavaLoggingLog info > INFO: Listening on *:4573. > 02-nov-2005 9:45:20 net.sf.asterisk.util.impl.JavaLoggingLog info > INFO: Received connection. > 02-nov-2005 9:45:21 net.sf.asterisk.util.impl.JavaLoggingLog error > GRAVE: No script configured for agi://192.168.0.202/hello.agi > > I think this means the connection between my machine and asterisk's > machine works well, yes the agi connection works fine. > but not the script... Asterisk runs in a linux > machine, and asterisk-java DefaultAGIServer runs in a Windows one. The > fastagi-mapping.properties is located in the directory where I started > running the AGIserver. The content of this file is: > > hello.agi =3D HelloAGIScript thats fine, too. > Somebody can help me? your problem sounds really strange. Are you sure you are looking at the right fastagi-mapping.properties file (that is the one in C:\ASTERISK-JAVA)? Maybe you need a trailing newline in properties files or sth like that on windows. If it still doesnt work we'll have to add some debugging code and try it that way. =3DStefan |
From: Stefan R. <sr...@re...> - 2005-11-02 12:20:27
|
> Found this bug report: > http://bugs.digium.com/view.php?id=3D5429 > > Seems to be the problem? yep, that's the patch that fixed the GetVar action. I just posted http://bugs.digium.com/view.php?id=3D5571 to fix the SetVar. We'll see if we get positive feedback ;) =3DStefan > > > Gerwin > > On Nov 2, 2005, at 12:33 PM, Stefan Reuter wrote: > >>> Hi, >>> >>> currently I'm using 1.0.9 >> >> I just had a look at the Asterisk sources. >> >> Its kinda strange: >> 1.0.x does only support local (channel) variables for both GetVar >> and SetVar >> 1.2 supports local and global variables for GetVar but local variables >> only for SetVar. >> >> Maybe its time for another asterisk patch ;) >> >> =3DStefan >> >>> >>> >>> On Nov 2, 2005, at 12:17 PM, Stefan Reuter wrote: >>> >>>> Hi, >>>> >>>>> is there a way to set a global variable via the Manager API? >>>>> I use the global variable to enable/disable a number of extensions. >>>> >>>> Which version of Asterisk do you use? >>>> At least with the 1.2 series it should be possible to use the >>>> SetVarAction whith channel set to null to set a global variable. >>>> The comments javadoc are not really up to date. >>>> >>>> If you try it, please tell us about success or failure. >>>> >>>> =3DStefan >>>> >>>> >>>> >>>> ------------------------------------------------------- >>>> SF.Net email is sponsored by: >>>> Tame your development challenges with Apache's Geronimo App Server. >>>> Download >>>> it for free - -and be entered to win a 42" plasma tv or your very >>>> own >>>> Sony(tm)PSP. Click here to play: http://sourceforge.net/ >>>> geronimo.php >>>> _______________________________________________ >>>> Asterisk-java-users mailing list >>>> Ast...@li... >>>> https://lists.sourceforge.net/lists/listinfo/asterisk-java-users >>> >>> >>> >>> ------------------------------------------------------- >>> SF.Net email is sponsored by: >>> Tame your development challenges with Apache's Geronimo App Server. >>> Download >>> it for free - -and be entered to win a 42" plasma tv or your very own >>> Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php >>> _______________________________________________ >>> Asterisk-java-users mailing list >>> Ast...@li... >>> https://lists.sourceforge.net/lists/listinfo/asterisk-java-users >>> >> >> >> >> >> ------------------------------------------------------- >> SF.Net email is sponsored by: >> Tame your development challenges with Apache's Geronimo App Server. >> Download >> it for free - -and be entered to win a 42" plasma tv or your very own >> Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php >> _______________________________________________ >> Asterisk-java-users mailing list >> Ast...@li... >> https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > > > ------------------------------------------------------- > SF.Net email is sponsored by: > Tame your development challenges with Apache's Geronimo App Server. > Download > it for free - -and be entered to win a 42" plasma tv or your very own > Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > |
From: Gerwin B. <ger...@gm...> - 2005-11-02 12:11:21
|
Found this bug report: http://bugs.digium.com/view.php?id=5429 Seems to be the problem? Gerwin On Nov 2, 2005, at 12:33 PM, Stefan Reuter wrote: >> Hi, >> >> currently I'm using 1.0.9 > > I just had a look at the Asterisk sources. > > Its kinda strange: > 1.0.x does only support local (channel) variables for both GetVar > and SetVar > 1.2 supports local and global variables for GetVar but local variables > only for SetVar. > > Maybe its time for another asterisk patch ;) > > =Stefan > >> >> >> On Nov 2, 2005, at 12:17 PM, Stefan Reuter wrote: >> >>> Hi, >>> >>>> is there a way to set a global variable via the Manager API? >>>> I use the global variable to enable/disable a number of extensions. >>> >>> Which version of Asterisk do you use? >>> At least with the 1.2 series it should be possible to use the >>> SetVarAction whith channel set to null to set a global variable. >>> The comments javadoc are not really up to date. >>> >>> If you try it, please tell us about success or failure. >>> >>> =Stefan >>> >>> >>> >>> ------------------------------------------------------- >>> SF.Net email is sponsored by: >>> Tame your development challenges with Apache's Geronimo App Server. >>> Download >>> it for free - -and be entered to win a 42" plasma tv or your very >>> own >>> Sony(tm)PSP. Click here to play: http://sourceforge.net/ >>> geronimo.php >>> _______________________________________________ >>> Asterisk-java-users mailing list >>> Ast...@li... >>> https://lists.sourceforge.net/lists/listinfo/asterisk-java-users >> >> >> >> ------------------------------------------------------- >> SF.Net email is sponsored by: >> Tame your development challenges with Apache's Geronimo App Server. >> Download >> it for free - -and be entered to win a 42" plasma tv or your very own >> Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php >> _______________________________________________ >> Asterisk-java-users mailing list >> Ast...@li... >> https://lists.sourceforge.net/lists/listinfo/asterisk-java-users >> > > > > > ------------------------------------------------------- > SF.Net email is sponsored by: > Tame your development challenges with Apache's Geronimo App Server. > Download > it for free - -and be entered to win a 42" plasma tv or your very own > Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users |
From: Stefan R. <sr...@re...> - 2005-11-02 11:33:57
|
> Hi, > > currently I'm using 1.0.9 I just had a look at the Asterisk sources. Its kinda strange: 1.0.x does only support local (channel) variables for both GetVar and Set= Var 1.2 supports local and global variables for GetVar but local variables only for SetVar. Maybe its time for another asterisk patch ;) =3DStefan > > > On Nov 2, 2005, at 12:17 PM, Stefan Reuter wrote: > >> Hi, >> >>> is there a way to set a global variable via the Manager API? >>> I use the global variable to enable/disable a number of extensions. >> >> Which version of Asterisk do you use? >> At least with the 1.2 series it should be possible to use the >> SetVarAction whith channel set to null to set a global variable. >> The comments javadoc are not really up to date. >> >> If you try it, please tell us about success or failure. >> >> =3DStefan >> >> >> >> ------------------------------------------------------- >> SF.Net email is sponsored by: >> Tame your development challenges with Apache's Geronimo App Server. >> Download >> it for free - -and be entered to win a 42" plasma tv or your very own >> Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php >> _______________________________________________ >> Asterisk-java-users mailing list >> Ast...@li... >> https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > > > ------------------------------------------------------- > SF.Net email is sponsored by: > Tame your development challenges with Apache's Geronimo App Server. > Download > it for free - -and be entered to win a 42" plasma tv or your very own > Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > |
From: Gerwin B. <ger...@gm...> - 2005-11-02 11:22:17
|
Hi, currently I'm using 1.0.9 GB* On Nov 2, 2005, at 12:17 PM, Stefan Reuter wrote: > Hi, > >> is there a way to set a global variable via the Manager API? >> I use the global variable to enable/disable a number of extensions. > > Which version of Asterisk do you use? > At least with the 1.2 series it should be possible to use the > SetVarAction whith channel set to null to set a global variable. > The comments javadoc are not really up to date. > > If you try it, please tell us about success or failure. > > =Stefan > > > > ------------------------------------------------------- > SF.Net email is sponsored by: > Tame your development challenges with Apache's Geronimo App Server. > Download > it for free - -and be entered to win a 42" plasma tv or your very own > Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users |
From: Stefan R. <sr...@re...> - 2005-11-02 11:17:23
|
Hi, > is there a way to set a global variable via the Manager API? > I use the global variable to enable/disable a number of extensions. Which version of Asterisk do you use? At least with the 1.2 series it should be possible to use the SetVarAction whith channel set to null to set a global variable. The comments javadoc are not really up to date. If you try it, please tell us about success or failure. =3DStefan |
From: Gerwin B. <ger...@gm...> - 2005-11-02 10:45:08
|
Hi, is there a way to set a global variable via the Manager API? I use the global variable to enable/disable a number of extensions. Thx, Gerwin |