• Post Reply Bookmark Topic Watch Topic
  • New Topic

manager api code  RSS feed

Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
this is code:

after compile and run getting this:

-bash-3.1# javac -cp servlet-api.jar:.:asterisk-java-0.3.1.jar hello.java
-bash-3.1# javac -cp servlet-api.jar:.:asterisk-java-0.3.1.jar HelloManager.java
Note: HelloManager.java uses or overrides a deprecated API.
Note: Recompile with -Xlint eprecation for details.
-bash-3.1# java -cp servlet-api.jar:.:asterisk-java-0.3.1.jar HelloManager
Jun 14, 2008 6:18:16 AM org.asteriskjava.manager.internal.ManagerConnectionImpl connect
INFO: Connecting to localhost:5038
Jun 14, 2008 6:18:17 AM org.asteriskjava.manager.internal.ManagerConnectionImpl setProtocolIdentifier
INFO: Connected via Asterisk Call Manager/1.0
Jun 14, 2008 6:18:18 AM org.asteriskjava.manager.internal.ManagerConnectionImpl disconnect
INFO: Closing socket.
Exception in thread "main" org.asteriskjava.manager.AuthenticationFailedException: Authentication failed
at org.asteriskjava.manager.internal.ManagerConnectionImpl.doLogin(ManagerConnectionImpl.java:574)
at org.asteriskjava.manager.internal.ManagerConnectionImpl.login(ManagerConnectionImpl.java:434)
at org.asteriskjava.manager.internal.ManagerConnectionImpl.login(ManagerConnectionImpl.java:419)
at org.asteriskjava.manager.DefaultManagerConnection.login(DefaultManagerConnection.java:266)
at HelloManager.run(HelloManager.java:36)
at HelloManager.main(HelloManager.java:54)

whats the error i have to make outbound call.please help me
[edit]Add code tags and disable smilies. CR[/edit]
[ June 15, 2008: Message edited by: Campbell Ritchie ]
Posts: 58456
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How are we supposed to know what the error is? Apart from the fact that you are using an out-of-date API, which -Xlint will tell you more about, you have some sort of code which is throwing an exception.

There is no way we can tell what.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!