Re: [Asterisk-java-devel] Call is not initiating between two extensions through Asterisk-Java progr
Brought to you by:
srt
|
From: Chandramouli P <mou...@gm...> - 2013-11-06 12:33:13
|
Hello Jacob,
Thank you for your quick reply. As you suggested, I executed the
generated class file like java HelloManager. I am getting the below errors:
Exception in thread "main" java.lang.NoClassDefFoundError:
org/asteriskjava/manager/action/ManagerAction
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Unknown Source)
at java.lang.Class.getMethod0(Unknown Source)
at java.lang.Class.getMethod(Unknown Source)
at sun.launcher.LauncherHelper.getMainMethod(Unknown Source)
at sun.launcher.LauncherHelper.checkAndLoadMain(Unknown Source)
Caused by: java.lang.ClassNotFoundException:
org.asteriskjava.manager.action.ManagerAction
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 6 more
Please note that I am getting the above errors with Step 6 and with out
Step 6 also.
Please let me know your thoughts.
Thank you.
Regards,
Chandra.
On 11/6/2013 5:44 PM, Jac...@L-... wrote:
>
> OK, after step 8 you now have a HelloManager.class file, you now need
> to tell Java to run that class file (java HellowManager) should be the
> command to have Java execute your code. I don't think step 6 is
> needed, as your code creates a new manager connection and handles the
> sending of the OriginateAction so there is no need to run "java --jar
> asterisk-java.jar".
>
> Jacob
>
> *From:*Chandramouli P [mailto:mou...@gm...]
> *Sent:* Wednesday, November 06, 2013 5:55 AM
> *To:* ast...@li...
> *Subject:* Re: Call is not initiating between two extensions through
> Asterisk-Java program
>
> Hello Jacob,
>
> Thank you for your reply. I tried as you suggested in both the below
> scenarios. But, I am not getting anything. Please find the below
> modified extensions.conf file:
>
> *Scenario 1:*
> [abcd]
> exten => 121,1,Dial(SIP/121,15)
> exten => 121,2,Hangup
>
> [abcd](+)
> exten => 115,1,Dial(SIP/115,15)
> exten => 115,2,Hangup
>
> *Scenario 2:*
> [abcd]
> exten => 121,1,Dial(SIP/121,15)
> exten => 121,2,Hangup
>
> exten => 115,1,Dial(SIP/115,15)
> exten => 115,2,Hangup
>
> I tested AMI through Telnet connected successfully. Please find the
> below output:
>
> # telnet 127.0.0.1 5038
> Trying 127.0.0.1...
> Connected to 127.0.0.1.
> Escape character is '^]'.
> Asterisk Call Manager/1.3
>
> Action: Login
> UserName: manager
> Secret: password
>
> I pressed "Enter" key two times and got the below output:
>
> Response: Success
> Message: Authentication accepted
>
> After Step 8 (I mean after creating the .class file), Do I need to
> execute any command?
>
> Any update would be appreciated. Thanks in advance.
>
> Regards,
> CMP
>
>
> On 11/5/2013 7:23 PM,
> ast...@li...
> <mailto:ast...@li...> wrote:
>
> Re: Call is not initiating between two extensions through
>
> Asterisk-Java program (Jac...@L-... <mailto:Jac...@L-...>)
>
|