Uploaded image for project: 'OpenNMS'
  1. OpenNMS
  2. NMS-8025

Global username/password for Asterisk AMI fails to authenticate

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 17.0.0
    • Fix Version/s: Backlog
    • Security Level: Default (Default Security Scheme)
    • Labels:
      None
    • Environment:
      CentOS 7.1 / Asterisk 11.13.0

      Description

      ami-config.xml:
      <?xml version="1.0"?>
      <ami-config port="5083" retry="2" timeout="1500" username="opennms" password="password">
      </ami-config>

      2015-12-08 01:03:08,344 DEBUG [Poller-Thread-12-of-30] o.o.n.a.m.AsteriskSIPPeerMonitor: t2-trunk: Creating new AMI-Connection: 10.15.240.32:5038, admin/null
      2015-12-08 01:03:08,344 DEBUG [Poller-Thread-12-of-30] o.o.n.a.m.AsteriskSIPPeerMonitor: t2-trunk: Attempt 1
      2015-12-08 01:03:08,344 DEBUG [Poller-Thread-12-of-30] o.o.n.a.m.AsteriskSIPPeerMonitor: t2-trunk: AMI login
      2015-12-08 01:03:09,374 DEBUG [Poller-Thread-12-of-30] o.o.n.a.m.AsteriskSIPPeerMonitor: t2-trunk: AMI AuthenticationError.
      org.asteriskjava.manager.AuthenticationFailedException: Authentication failed
      at org.asteriskjava.manager.internal.ManagerConnectionImpl.doLogin(ManagerConnectionImpl.java:578) ~[asterisk-java-1.0.0-preview-20090427.jar:?]
      at org.asteriskjava.manager.internal.ManagerConnectionImpl.login(ManagerConnectionImpl.java:438) ~[asterisk-java-1.0.0-preview-20090427.jar:?]
      at org.asteriskjava.manager.internal.ManagerConnectionImpl.login(ManagerConnectionImpl.java:423) ~[asterisk-java-1.0.0-preview-20090427.jar:?]
      at org.asteriskjava.manager.DefaultManagerConnection.login(DefaultManagerConnection.java:294) ~[asterisk-java-1.0.0-preview-20090427.jar:?]
      at org.opennms.netmgt.asterisk.monitor.AsteriskSIPPeerMonitor.poll(AsteriskSIPPeerMonitor.java:159) [opennms-asterisk-17.0.0.jar:?]
      at org.opennms.netmgt.poller.pollables.LatencyStoringServiceMonitorAdaptor.poll(LatencyStoringServiceMonitorAdaptor.java:118) [opennms-services-17.0.0.jar:?]
      at org.opennms.netmgt.poller.pollables.PollableServiceConfig.poll(PollableServiceConfig.java:119) [opennms-services-17.0.0.jar:?]
      at org.opennms.netmgt.poller.pollables.PollableService.poll(PollableService.java:191) [opennms-services-17.0.0.jar:?]
      at org.opennms.netmgt.poller.pollables.PollableElement.poll(PollableElement.java:293) [opennms-services-17.0.0.jar:?]
      at org.opennms.netmgt.poller.pollables.PollableContainer$5.run(PollableContainer.java:319) [opennms-services-17.0.0.jar:?]
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_45]
      at org.opennms.netmgt.poller.pollables.PollableElement.withTreeLock(PollableElement.java:264) [opennms-services-17.0.0.jar:?]
      at org.opennms.netmgt.poller.pollables.PollableElement.withTreeLock(PollableElement.java:250) [opennms-services-17.0.0.jar:?]
      at org.opennms.netmgt.poller.pollables.PollableElement.withTreeLock(PollableElement.java:228) [opennms-services-17.0.0.jar:?]
      at org.opennms.netmgt.poller.pollables.PollableContainer.poll(PollableContainer.java:326) [opennms-services-17.0.0.jar:?]
      at org.opennms.netmgt.poller.pollables.PollableInterface.poll(PollableInterface.java:224) [opennms-services-17.0.0.jar:?]
      at org.opennms.netmgt.poller.pollables.PollableContainer$5.run(PollableContainer.java:319) [opennms-services-17.0.0.jar:?]
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_45]
      at org.opennms.netmgt.poller.pollables.PollableElement.withTreeLock(PollableElement.java:264) [opennms-services-17.0.0.jar:?]
      at org.opennms.netmgt.poller.pollables.PollableElement.withTreeLock(PollableElement.java:250) [opennms-services-17.0.0.jar:?]
      at org.opennms.netmgt.poller.pollables.PollableElement.withTreeLock(PollableElement.java:228) [opennms-services-17.0.0.jar:?]
      at org.opennms.netmgt.poller.pollables.PollableContainer.poll(PollableContainer.java:326) [opennms-services-17.0.0.jar:?]
      at org.opennms.netmgt.poller.pollables.PollableNode$3.run(PollableNode.java:331) [opennms-services-17.0.0.jar:?]
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_45]
      at org.opennms.netmgt.poller.pollables.PollableElement.withTreeLock(PollableElement.java:264) [opennms-services-17.0.0.jar:?]
      at org.opennms.netmgt.poller.pollables.PollableElement.withTreeLock(PollableElement.java:250) [opennms-services-17.0.0.jar:?]
      at org.opennms.netmgt.poller.pollables.PollableElement.withTreeLock(PollableElement.java:228) [opennms-services-17.0.0.jar:?]
      at org.opennms.netmgt.poller.pollables.PollableNode.doPoll(PollableNode.java:334) [opennms-services-17.0.0.jar:?]
      at org.opennms.netmgt.poller.pollables.PollableElement.doPoll(PollableElement.java:184) [opennms-services-17.0.0.jar:?]
      at org.opennms.netmgt.poller.pollables.PollableService.doPoll(PollableService.java:226) [opennms-services-17.0.0.jar:?]
      at org.opennms.netmgt.poller.pollables.PollableService$PollRunner.run(PollableService.java:63) [opennms-services-17.0.0.jar:?]
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_45]
      at org.opennms.netmgt.poller.pollables.PollableElement.withTreeLock(PollableElement.java:264) [opennms-services-17.0.0.jar:?]
      at org.opennms.netmgt.poller.pollables.PollableElement.withTreeLock(PollableElement.java:250) [opennms-services-17.0.0.jar:?]
      at org.opennms.netmgt.poller.pollables.PollableService.doRun(PollableService.java:413) [opennms-services-17.0.0.jar:?]
      at org.opennms.netmgt.poller.pollables.PollableService.run(PollableService.java:388) [opennms-services-17.0.0.jar:?]
      at org.opennms.netmgt.scheduler.Schedule.run(Schedule.java:142) [opennms-services-17.0.0.jar:?]
      at org.opennms.netmgt.scheduler.Schedule$ScheduleEntry.run(Schedule.java:86) [opennms-services-17.0.0.jar:?]
      at org.opennms.netmgt.scheduler.LegacyScheduler$1.run(LegacyScheduler.java:209) [opennms-services-17.0.0.jar:?]
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_45]
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_45]
      at org.opennms.core.concurrent.LogPreservingThreadFactory$3.run(LogPreservingThreadFactory.java:124) [opennms-util-17.0.0.jar:?]
      at java.lang.Thread.run(Thread.java:745) [?:1.8.0_45]
      2015-12-08 01:03:09,375 DEBUG [Poller-Thread-12-of-30] o.o.n.p.p.PollableServiceConfig: Finish polling PollableService [PollableInterface [PollableNode [42]:10.15.240.32]:t2-trunk] using pkg example1 result = Down

      but with this:
      http://cpansearch.perl.org/src/JAMESGOL/asterisk-perl-1.03/examples/manager-test.pl
      i can connect using the same credentials.

      ./test.pl
      EventFullyBootedPrivilegesystem,allStatusFully BootedEvent: PeerlistComplete
      ListItems: 0
      EventList: Complete

      Event: PeerStatus
      Address: IP:1033
      Privilege: system,all
      PeerStatus: Registered
      Peer: SIP/341
      ChannelType: SIP
      etc.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jeffg Jeff Gehlbach
                Reporter:
                kristijanlecnik Kristijan Lecnik
              • Votes:
                1 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated: