Details
Assignee
UnassignedUnassignedReporter
RJ PersonalRJ PersonalComponents
Affects versions
Due date
Jun 05, 2015Priority
Major
Details
Details
Assignee
Unassigned
UnassignedReporter
RJ Personal
RJ PersonalComponents
Affects versions
Due date
Jun 05, 2015
Priority
PagerDuty
PagerDuty
PagerDuty
Created June 3, 2015 at 4:13 AM
Updated July 26, 2023 at 2:16 PM
OpenNMS is still using default port, 5038, even if it is set to 5083 in the ami-config.xml.
My ami-config.xml:
<?xml version="1.0"?>
<ami-config port="5083" retry="2" timeout="1500" username="OpenNMS" password="testing">
</ami-config>
LOGS:
RegusTrunk] using pkg example1
2015-06-03 16:04:56,060 DEBUG [Poller-Thread-14-of-30] o.o.n.a.m.AsteriskSIPPeerMonitor: SIP-RegusTrunk: Creating new AMI-Connection: 10.254.236.2:5038, OpenNMS/null
2015-06-03 16:04:56,060 DEBUG [Poller-Thread-14-of-30] o.o.n.a.m.AsteriskSIPPeerMonitor: SIP-RegusTrunk: Attempt 1
2015-06-03 16:04:56,060 DEBUG [Poller-Thread-14-of-30] o.o.n.a.m.AsteriskSIPPeerMonitor: SIP-RegusTrunk: AMI login
2015-06-03 16:04:58,062 ERROR [Poller-Thread-14-of-30] o.o.n.a.m.AsteriskSIPPeerMonitor: SIP-RegusTrunk: An Unknown Exception Occurred.
java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(SocketInputStream.java:209) ~[?:1.8.0_45]
at java.net.SocketInputStream.read(SocketInputStream.java:141) ~[?:1.8.0_45]
at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:284) ~[?:1.8.0_45]
at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:326) ~[?:1.8.0_45]
at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:178) ~[?:1.8.0_45]
at java.io.InputStreamReader.read(InputStreamReader.java:184) ~[?:1.8.0_45]
at java.io.BufferedReader.fill(BufferedReader.java:161) ~[?:1.8.0_45]
at java.io.BufferedReader.read1(BufferedReader.java:212) ~[?:1.8.0_45]
at java.io.BufferedReader.read(BufferedReader.java:286) ~[?:1.8.0_45]
at java.io.Reader.read(Reader.java:100) ~[?:1.8.0_45]
at java.util.Scanner.readInput(Scanner.java:804) ~[?:1.8.0_45]
at java.util.Scanner.next(Scanner.java:1369) ~[?:1.8.0_45]
at org.asteriskjava.util.internal.SocketConnectionFacadeImpl.readLine(SocketConnectionFacadeImpl.java:109) ~[asterisk-java-1.0.0-preview-20090427.jar:?]
at org.asteriskjava.manager.internal.ManagerReaderImpl.run(ManagerReaderImpl.java:150) ~[asterisk-java-1.0.0-preview-20090427.jar:?]
at java.lang.Thread.run(Thread.java:745) [?:1.8.0_45]
Here's the packet capture:
root@phnetaxs02 ~]# tcpdump -i eth0 port 5038
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth0, link-type EN10MB (Ethernet), capture size 65535 bytes
16:07:06.076779 IP 10.254.253.222.56205 > 10.254.236.2.5038: Flags [S], seq 3619609777, win 14600, options [mss 1460,sackOK,TS val 465426919 ecr 0,nop,wscale 6], length 0
16:07:06.076896 IP 10.254.236.2.5038 > 10.254.253.222.56205: Flags [S.], seq 3732697800, ack 3619609778, win 1480, length 0
16:07:06.076916 IP 10.254.253.222.56205 > 10.254.236.2.5038: Flags [.], ack 1, win 14600, length 0
16:07:06.080052 IP 10.254.236.2.5038 > 10.254.253.222.56205: Flags [R.], seq 1, ack 1, win 0, length 0
16:07:38.081417 IP 10.254.253.222.56216 > 10.254.236.2.5038: Flags [S], seq 1907933695, win 14600, options [mss 1460,sackOK,TS val 465458924 ecr 0,nop,wscale 6], length 0
16:07:38.081540 IP 10.254.236.2.5038 > 10.254.253.222.56216: Flags [S.], seq 206487430, ack 1907933696, win 1480, length 0
16:07:38.081556 IP 10.254.253.222.56216 > 10.254.236.2.5038: Flags [.], ack 1, win 14600, length 0
16:07:38.121963 IP 10.254.236.2.5038 > 10.254.253.222.56216: Flags [R.], seq 1, ack 1, win 0, length 0
Thank you!