[Serusers] Newbie : SER and sipsak

Nils Ohlmeier nils at iptel.org
Wed Nov 10 22:21:54 CET 2004


Hello Dragos,

I guess it is too late, the three hours are over, but you should read the 
sipsak homepage: please contact me directly with questions about sipsak, 
because I do not have the time any more to read the iptel mailing lists all 
over (not to think about real time).

I do not understand your first problem report. If you resend the output of 
sipsak with -vvv I will take a look at output. BTW -f does not help you 
because with that parameter you can only load a SIP request from the given 
file, no options.

The 401 from below has simply the problem that the word 'Digest' is in capital 
letters and sipsak searches only for Digest with the first character as 
capital. Unfortunately this is not easy to fix, as there are no 
case-insensitive string search methods in glibc available (AFAIK).

Greetings
  Nils

On Wednesday 10 November 2004 08:58, Dragos CHIRIAC wrote:
> 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 at 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 at 69.20.x.x>;tag=80321e2
> To: <sip:kayote2185060 at 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 at 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 at camaro.no>
> To: "Dragos CHIRIAC" <dragos at pattco.ro>
> Cc: <serusers at 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 at 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 at myhost:5060 -v
> > > SIP/2.0 200 OK
> > > Via: SIP/2.0/UDP 127.0.0.1:1675;rport=
> > > From: <sip:sipsak at 127.0.0.1:1675>;tag=2fbba8ac
> > > To: <sip:**************:5060>
> > > CSeq: 1 OPTIONS
> > > Call-ID: 800827564 at 127.0.0.1
> > > Content-Length: 0
> > >
> > > All seem ok
> > >
> > > but if i run:
> > >
> > > rhemaxos root # sipsak -I -U -n -s sip:me at myhost:5060 -v -a mypass
> > >
> > > i get smth like:
> > >
> > > Call-ID: 2105779733 at 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 at lists.iptel.org
> > > http://lists.iptel.org/mailman/listinfo/serusers
>
> _______________________________________________
> Serusers mailing list
> serusers at lists.iptel.org
> http://lists.iptel.org/mailman/listinfo/serusers




More information about the sr-users mailing list