Posted on 2007-03-26 00:24:34-07 by b0c1
Voipbuster login problem
Hi!

I try to send a simple SIP invite to my voipbuster account but I have a little autorization problem. (Same user/password works with Java implementation). I dunno what's the problem... maybe the algorithm "tag" is missing in the authentication?

The debug output:
1174866902.5208 DEBUG: Net::SIP::Util::create_socket_to[197]: Local IP is 192.168.0.11 1174866902.5210 DEBUG: Net::SIP::Util::create_socket_to[204]: try to listen on 192.168.0.11:5060 1174866902.5218 DEBUG: Net::SIP::Util::create_socket_to[222]: listen on 192.168.0.11:5060 1174866902.5414 DEBUG:<2> Net::SIP::Leg::deliver[288]: delivery from 192.168.0.11:5060 to udp:sip.v +oipbuster.com:5060 OK: 1174866902.5414 DEBUG:<2> REGISTER sip:sip.voipbuster.com SIP/2.0 1174866902.5414 DEBUG:<2> via: SIP/2.0/UDP 192.168.0.11;branch=z9hG4bK80c888d887d9c6a7e269792 +f976ab6ee7cb6c62d40c87df3cfaf4dd8ed3e8e24 1174866902.5414 DEBUG:<2> call-id: 36cca1ffddb5d4115d5c42ed9dd87956 1174866902.5414 DEBUG:<2> contact: sip:b0c115@192.168.0.11:5060 1174866902.5414 DEBUG:<2> cseq: 1 REGISTER 1174866902.5414 DEBUG:<2> expires: 900 1174866902.5414 DEBUG:<2> from: sip:b0c115@voipbuster.com;tag=d1b6287bd1cea0c03c19ffecd6809cb +9 1174866902.5414 DEBUG:<2> to: sip:b0c115@voipbuster.com 1174866902.5414 DEBUG:<2> Content-length: 0 1174866902.5414 DEBUG:<2> 1174866902.5414 DEBUG:<2> 1174866902.5923 DEBUG:<2> Net::SIP::Leg::receive[372]: received on 192.168.0.11:5060 from 194.120.0 +.202:5060 packet 1174866902.5923 DEBUG:<2> SIP/2.0 401 Unauthorized 1174866902.5923 DEBUG:<2> Via: SIP/2.0/UDP 192.168.0.11;branch=z9hG4bK80c888d887d9c6a7e269792 +f976ab6ee7cb6c62d40c87df3cfaf4dd8ed3e8e24 1174866902.5923 DEBUG:<2> From: <sip:b0c115@voipbuster.com>;tag=d1b6287bd1cea0c03c19ffecd6809 +cb9 1174866902.5923 DEBUG:<2> To: <sip:b0c115@voipbuster.com> 1174866902.5923 DEBUG:<2> Contact: sip:194.120.0.202:5060 1174866902.5923 DEBUG:<2> Call-ID: 36cca1ffddb5d4115d5c42ed9dd87956 1174866902.5923 DEBUG:<2> CSeq: 1 REGISTER 1174866902.5923 DEBUG:<2> Server: (Very nice Sip Registrar/Proxy Server) 1174866902.5923 DEBUG:<2> Allow: ACK,BYE,CANCEL,INVITE,REGISTER,OPTIONS,INFO 1174866902.5923 DEBUG:<2> WWW-Authenticate: Digest realm="voipbuster.com",nonce="3161090111", +algorithm=MD5 1174866902.5923 DEBUG:<2> Content-Length: 0 1174866902.5923 DEBUG:<2> 1174866902.5923 DEBUG:<2> 1174866902.6120 DEBUG:<2> Net::SIP::Leg::deliver[288]: delivery from 192.168.0.11:5060 to udp:sip.v +oipbuster.com:5060 OK: 1174866902.6120 DEBUG:<2> REGISTER sip:sip.voipbuster.com SIP/2.0 1174866902.6120 DEBUG:<2> via: SIP/2.0/UDP 192.168.0.11;branch=z9hG4bK80c888d887d9c6a7e269792 +f976ab6eeb0237d262658672f4f74ff606b132390 1174866902.6120 DEBUG:<2> call-id: 36cca1ffddb5d4115d5c42ed9dd87956 1174866902.6120 DEBUG:<2> contact: sip:b0c115@192.168.0.11:5060 1174866902.6120 DEBUG:<2> expires: 900 1174866902.6120 DEBUG:<2> from: sip:b0c115@voipbuster.com;tag=d1b6287bd1cea0c03c19ffecd6809cb +9 1174866902.6120 DEBUG:<2> to: sip:b0c115@voipbuster.com 1174866902.6120 DEBUG:<2> authorization: Digest nonce="3161090111" realm="voipbuster.com" res +ponse="bc2b1d568d05a2ed89769184e2dabcf8" uri="sip:sip.voipbuster.com" username="b0c115" 1174866902.6120 DEBUG:<2> cseq: 2 REGISTER 1174866902.6120 DEBUG:<2> Content-length: 0 1174866902.6120 DEBUG:<2> 1174866902.6120 DEBUG:<2> 1174866902.6684 DEBUG:<2> Net::SIP::Leg::receive[372]: received on 192.168.0.11:5060 from 194.120.0 +.203:5060 packet 1174866902.6684 DEBUG:<2> SIP/2.0 401 Unauthorized 1174866902.6684 DEBUG:<2> Via: SIP/2.0/UDP 192.168.0.11;branch=z9hG4bK80c888d887d9c6a7e269792 +f976ab6eeb0237d262658672f4f74ff606b132390 1174866902.6684 DEBUG:<2> From: <sip:b0c115@voipbuster.com>;tag=d1b6287bd1cea0c03c19ffecd6809 +cb9 1174866902.6684 DEBUG:<2> To: <sip:b0c115@voipbuster.com> 1174866902.6684 DEBUG:<2> Contact: sip:194.120.0.203:5060 1174866902.6684 DEBUG:<2> Call-ID: 36cca1ffddb5d4115d5c42ed9dd87956 1174866902.6684 DEBUG:<2> CSeq: 2 REGISTER 1174866902.6684 DEBUG:<2> Server: (Very nice Sip Registrar/Proxy Server) 1174866902.6684 DEBUG:<2> Allow: ACK,BYE,CANCEL,INVITE,REGISTER,OPTIONS,INFO 1174866902.6684 DEBUG:<2> WWW-Authenticate: Digest realm="voipbuster.com",nonce="1419298782", +algorithm=MD5 1174866902.6684 DEBUG:<2> Content-Length: 0 1174866902.6684 DEBUG:<2> 1174866902.6684 DEBUG:<2> ....
And more....
Direct Responses: 4938 | Write a response
Posted on 2007-04-20 12:00:29-07 by noxxi in response to 4685
Re: Voipbuster login problem
Should be solved in Net::SIP version >= 0.25.
There was a bug that the parameter for authorization where not delimited by ','.
If it still does not work or if you have other problem please contact the author of the module (me) directly or at least let me know that you've posted something to cpanforum, it was only luck that I saw your message.
Direct Responses: Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.