I know about it, but still have to make this work ( in order for that plugin to work if i was to use it ). And i asked another questin :) (no heart feelings). Sip will return via -N a nagios readable format, and that is all about that plugin, returning 0 or 2 error codes. But i'm not eperienced with SIP. I merged something like that with BigSister some time ago, it is easy.
Can somebody give me a real example (file included) that works ? the SIPproxy will not try to auth, and i still do not know why. I've been reading for the past 2 hours, but in vain. I guess i must mut some extra parms in a _file_ and pass them via -f switch, but hell knows what sould i write in there. :(.
---snip rhemaxos archive # sipsak -U -n -s sip:lol2185060@69.20.x.x -v SIP/2.0 401 Unauthorized Via: SIP/2.0/UDP 127.0.0.1:1677;received=193.230.x.x;rport=1677 From: sip:kayote2185060@69.20.x.x;tag=80321e2 To: sip:kayote2185060@69.20.x.x Kayote: ;seqNum=1;identifier=lol2185060;route-id=0;user=lol2185060;group=0;prev-ip=6 9.20.x.x ;orig-ip=69.20.x.x;NAT=0;orig-port=5070 CSeq: 1 REGISTER Call-ID: 134423010@127.0.0.1 WWW-Authenticate: DIGEST realm="x.com", nonce="515947f7824023019d8116c5f65668dc", algorithm=MD5, opaque="745949767" Content-Length: 0
error: couldn't find authentication method Digest in the 402 response above --snip
the problem is : SIP/2.0 401 Unauthorized and Digest in the 402 response above ???? i googled and find nothing cut crap. I read and ... u know, it's easier to read the RFC in a couple of days than reading all that whatever you want to call it about SIP. SIP and SDH/DWDM are poorely documended, and everybody know this, i guess.(no need for links like http://www.informatik.uni-bremen.de/~prelle/terena/cookbook/Cookbook_D2/ and Co, i already read them). The problem is taht this program must be done in about ... whow, 3 hours from now. And i still ain got a clue abou hou to see if authentificates ok, the rest is done.
I must generate smth like : Digest username="jan", realm="iptel.org", nonce="dcd98b7102dd2f0e8b11d0f600bfb0c093", uri="sip:iptel.org", qop=auth, nc=00000001, cnonce="0a4f113b", response="6629fae49393a05397450978507c4ef1", opaque="" but i do not know how to do that with sipsak (generate a (forced ???) Digest reponse).
Thank you in advance
Dragos
----- Original Message ----- From: "Atle Samuelsen" clona@camaro.no To: "Dragos CHIRIAC" dragos@pattco.ro Cc: serusers@lists.iptel.org Sent: Wednesday, November 10, 2004 8:15 AM Subject: Re: [Serusers] Newbie : SER and sipsak
Hey,
there is a Nagios plugin, I would look at it if I where you. it's kinda nice :-)
To find it.. use google. :-)
-Atle
- Dragos CHIRIAC dragos@pattco.ro [041110 03:40]:
Hello,
I must do a monitoring tool for a SER sip proxy. I have a user and a
pass to
it. I can make calls with the combination.
Tests I-ve ran: rhemaxos root # sipsak -n -s sip:me@myhost:5060 -v SIP/2.0 200 OK Via: SIP/2.0/UDP 127.0.0.1:1675;rport= From: sip:sipsak@127.0.0.1:1675;tag=2fbba8ac To: sip:**************:5060 CSeq: 1 OPTIONS Call-ID: 800827564@127.0.0.1 Content-Length: 0
All seem ok
but if i run:
rhemaxos root # sipsak -I -U -n -s sip:me@myhost:5060 -v -a mypass
i get smth like:
Call-ID: 2105779733@127.0.0.1 WWW-Authenticate: DIGEST realm="whatever.com", nonce="fde24b2e80f3f1c96ec8e962d34627d0", algorithm=MD5,
opaque="3251298552"
Content-Length: 0
error: couldn't find authentication method Digest in the 402 response
above
The dumps (i use nast) from Xlite look a lot different.
Well, really beats me, i'm new to voip, and i really need help with this one. It does not even try to AUTH me. I know that is my fault, but i need some help with this one. I would not like to read the SIP RFC just to monitor a SIP proxy. I have basic to
medium
theoretical knowledge of the protocols and no experience in the wild.
Thank you in advance
Dragos
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers