|
From: | Jonas Kellens |
Subject: | Monitor Asterisk: SIP username |
Date: | Tue, 19 Oct 2010 12:13:04 +0200 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.12) Gecko/20100907 Fedora/3.0.7-1.fc12 Thunderbird/3.0.7 |
Hello, I'm new to this list. I hope you can help me a bit. I have the following : # Asterisk Monitoring rule set daemon 60 # Check every 60s set logfile /var/log/monit/messages set mailserver out.domain.be set alert address@hidden # ping 192.168.1.150 check host asterisk16 with address 192.168.1.150 if failed icmp type echo count 5 with timeout 15 seconds then alert # check host sip.voipcenter.be with address sip.voipcenter.be check host asterisk16SIP with address 192.168.1.150 if failed port 5060 type udp protocol SIP then alert About the second statement, the check fails because my Asterisk server rejects the SIP options packet : <--- SIP read from UDP:192.168.1.252:47146 ---> OPTIONS sip:address@hidden SIP/2.0 Via: SIP/2.0/UDP 192.168.1.252:47146;branch=z9hG4bKh899797803;rport Max-Forwards: 70 To: <sip:address@hidden> From: monit <sip:address@hidden>;tag=18570067 Call-ID: 1603956056 CSeq: 63104 OPTIONS Contact: <sip:192.168.1.252:47146> Accept: application/sdp Content-Length: 0 User-Agent: monit/5.2 <-------------> [Oct 19 13:16:46] --- (11 headers 0 lines) --- [Oct 19 13:16:46] Looking for monit in default (domain foo.bar) [Oct 19 13:16:46] <--- Transmitting (no NAT) to 192.168.1.252:47146 ---> SIP/2.0 404 Not Found Via: SIP/2.0/UDP 192.168.1.252:47146;branch=z9hG4bKh899797803;received=192.168.1.252;rport=47146 From: monit <sip:address@hidden>;tag=18570067 To: <sip:address@hidden>;tag=as74dc8170 Call-ID: 1603956056 CSeq: 63104 OPTIONS Server: Asterisk PBX 1.6.2.10 Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO Supported: replaces, timer Accept: application/sdp Content-Length: 0 How can I give a valid SIP username and secret with the SIP OPTION that is send by Monit ?? Kind regards, Jonas. |
[Prev in Thread] | Current Thread | [Next in Thread] |