Re: [Asterisk-java-users] Doesn't work with 1.6 yet ?
Brought to you by:
srt
From: T. L. P. T. <tom...@gm...> - 2008-05-21 18:16:10
|
On Wed, May 21, 2008 at 3:09 PM, Luc Desfosses <luc...@at...> wrote: > Is it possible the *Error* appear due bad parameter to originateAction ? > Yes, I tested the same code against my lab boxes (Asterisk 1.2 and Asterisk 1.6 trunk) and I receive the same error. You will need to change to parameters of the originate action according to your system. Here is what I get logged in Asterisk (1.2): May 21 15:11:26 VERBOSE[14124] logger.c: == Manager 'java' logged on from 127.0.0.1 May 21 15:11:26 DEBUG[14124] manager.c: Manager received command 'Command' May 21 15:11:26 DEBUG[14124] manager.c: Manager received command 'Command' May 21 15:11:26 DEBUG[14124] manager.c: Manager received command 'Originate' May 21 15:11:27 WARNING[14124] chan_sip.c: No such host: John May 21 15:11:27 NOTICE[14124] channel.c: Unable to request channel SIP/John May 21 15:11:27 DEBUG[14124] cdr_addon_mysql.c: cdr_mysql: inserting a CDR record. May 21 15:11:27 DEBUG[14124] cdr_addon_mysql.c: cdr_mysql: SQL command as follows: INSERT INTO cdr (calldate,clid,src,dst,dco ntext,channel,dstchannel,lastapp,lastdata,duration,billsec,disposition,amaflags,accountcode,uniqueid) VALUES ('2008-05-21 15: 11:27','','','s','default', '**Unknown**','','','',0,0,'FAILED',3,'','1211393487.0') May 21 15:11:27 DEBUG[14124] manager.c: Manager received command 'Logoff' May 21 15:11:27 VERBOSE[14124] logger.c: == Manager 'java' logged off from 127.0.0.1 As you can see, "Error" is the response to the originate action. The Manager API login and logout successfully. Best regards, Tomás. > originateAction = new OriginateAction(); > originateAction.setChannel("SIP/255263@AutoCom") ; > originateAction.setContext("external") ; > originateAction.setExten("Local/0624493277@AutoCom") ; > //originateAction.setApplication("Dial") ; > originateAction.setPriority(new Integer(1)); > originateAction.setTimeout(new Long(30000)); > > Tomorrow, I will put 1.4.* to test. > > Thanks for your time ( and the quick time of response :) ) > > Tomás Laureano Peralta Tormey a écrit : >> On Wed, May 21, 2008 at 3:00 PM, Luc Desfosses >> <luc...@at...> wrote: >> >>> The last one : >>> >>> asterisk-java-1.0.0-20080520.012814-155.jar >>> >> >> I will try it out in my lab and let you know the results. >> >> >>> I've take a look to the javadoc, and i see asterisk 1.6 is available >>> only for since 1.0.0 >>> >> >> Yes, the support for Asterisk 1.6 will be available in the version >> 1.0.0; but the snapshots of this version should be working as >> expected. >> >> Best regards, Tomás. >> >> >>> Tomás Laureano Peralta Tormey a écrit : >>> >>>> Hello Luc: >>>> Which version of Asterisk Java are you using? >>>> >>>> Best regards, Tomás. >>>> >>>> On Wed, May 21, 2008 at 2:44 PM, Luc Desfosses >>>> <luc...@at...> wrote: >>>> >>>> >>>>> hie all, >>>>> >>>>> This is my first mail here, so I first thank all the people who have create >>>>> or work on asterisk-java. >>>>> >>>>> Now, my problem :) >>>>> >>>>> i use asterisk 1.6.0-beta7.1 on Fedora9. >>>>> >>>>> I try HelloManager.java and i get this : >>>>> >>>>> 21 mai 2008 19:35:14 >>>>> org.asteriskjava.manager.internal.ManagerConnectionImpl connect >>>>> INFO: Connecting to localhost:5038 >>>>> 21 mai 2008 19:35:14 >>>>> org.asteriskjava.manager.internal.ManagerConnectionImpl >>>>> setProtocolIdentifier >>>>> INFO: Connected via Asterisk Call Manager/1.1 >>>>> 21 mai 2008 19:35:14 >>>>> org.asteriskjava.manager.internal.ManagerConnectionImpl doLogin >>>>> INFO: Successfully logged in >>>>> 21 mai 2008 19:35:14 >>>>> org.asteriskjava.manager.internal.ManagerConnectionImpl doLogin >>>>> INFO: Determined Asterisk version: Asterisk 1.6 >>>>> Error >>>>> 21 mai 2008 19:35:14 >>>>> org.asteriskjava.manager.internal.ManagerConnectionImpl disconnect >>>>> INFO: Closing socket. >>>>> 21 mai 2008 19:35:14 org.asteriskjava.manager.internal.ManagerReaderImpl run >>>>> INFO: Terminating reader thread: No more lines available: null >>>>> >>>>> As you can see, there is an *Error* just after the version was determine. >>>>> >>>>> Where i'm wrong ? >>>>> >>>>> >>>>> >>>>> ------------------------------------------------------------------------- >>>>> This SF.net email is sponsored by: Microsoft >>>>> Defy all challenges. Microsoft(R) Visual Studio 2008. >>>>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >>>>> _______________________________________________ >>>>> Asterisk-java-users mailing list >>>>> Ast...@li... >>>>> https://lists.sourceforge.net/lists/listinfo/asterisk-java-users >>>>> >>>>> >>>>> >>>> ------------------------------------------------------------------------- >>>> This SF.net email is sponsored by: Microsoft >>>> Defy all challenges. Microsoft(R) Visual Studio 2008. >>>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >>>> _______________________________________________ >>>> Asterisk-java-users mailing list >>>> Ast...@li... >>>> https://lists.sourceforge.net/lists/listinfo/asterisk-java-users >>>> >>>> >>>> >>>> >>> ------------------------------------------------------------------------- >>> This SF.net email is sponsored by: Microsoft >>> Defy all challenges. Microsoft(R) Visual Studio 2008. >>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >>> _______________________________________________ >>> Asterisk-java-users mailing list >>> Ast...@li... >>> https://lists.sourceforge.net/lists/listinfo/asterisk-java-users >>> >>> >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by: Microsoft >> Defy all challenges. Microsoft(R) Visual Studio 2008. >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> _______________________________________________ >> Asterisk-java-users mailing list >> Ast...@li... >> https://lists.sourceforge.net/lists/listinfo/asterisk-java-users >> >> >> > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > |