[Asterisk-Users] Failed to WWW-authenticate on INVITE

Atle Soma soma at netpower.no
Sat Nov 27 14:56:41 MST 2004


I'm having trouble connecting a asterisk server to a SIP Express router.

Inbound calls to my asterisk server works just fine, but when i try to
make outbound calls I get the following error message:

Nov 27 22:40:48 NOTICE[4687]: chan_sip2.c:7967 handle_response: Failed to
WWW-authenticate on INVITE to '"username"
<sip:username at mysipprovider>;tag=as5399a078'


I'm currently running Asterisk CVS-HEAD-11/27/04-15:07:27 and chan_sip2.c
downloaded today. I had the problem using chan_sip as well, but the
error message was slightly different.

Below is a packet dump from the SIP session.

My current sip.conf configuration is:

---
register => mynumber:mypass at mysipprovider/mynumber
[authentication]
auth=mynumber:mypass at mysipprovider

[mynumber]
type=peer
username=mynumber
fromuser=mynumber
secret=mypass
fromdomain=mysipprovider
host=mysipprovider
insecure=very
---

Any help would be deeply appreciated!

Best regards,
Atle Soma - soma at netpower.no
NetPower Int. AS



----
#
U myhost:5060 -> mysipprovider:5060
  INVITE sip:callednumber at mysipprovider SIP/2.0..Via: SIP/2.0/UDP
212.33.133.1
  95:5060;branch=z9hG4bK40e0db6c..From: "4721677891"
<sip:4721677891 at mysipprovider
  >;tag=as11f66db2..To: <sip:callednumber at mysipprovider>..Contact: <si
  p:4721677891 at myhost>..Call-ID:
5ae4b68378e5edf8081a79253ddf8aef at mysipprovider
  ..CSeq: 102 INVITE..User-Agent: Asterisk SIPv2 (http://www.ast
  erisk.org CVS-HEAD-11/27/04-15:07:27 ) ..Date: Sat, 27 Nov 2004 21:39:44
GM
  T..Diversion: ..Allow: INVITE, ACK, CANCEL, OPTIONS, BYE,
REFER..Content-Ty
  pe: application/sdp..Content-Length: 265....v=0..o=root 4687 4687 IN IP4
21
  2.33.133.195..s=session..c=IN IP4 myhost..t=0 0..m=audio 18634 RTP/
  AVP 8 0 3 101..a=rtpmap:8 PCMA/8000..a=rtpmap:0 PCMU/8000..a=rtpmap:3
GSM/8
  000..a=rtpmap:101 telephone-event/8000..a=fmtp:101
0-16..a=silenceSupp:off
  - - - -..
#
U mysipprovider:5060 -> myhost:5060
  SIP/2.0 401 Unauthorized..Via: SIP/2.0/UDP myhost:5060;branch=z9hG4
  bK40e0db6c..From: "4721677891" <sip:4721677891 at mysipprovider>;tag=as11f6
  6db2..To:
<sip:callednumber at mysipprovider>;tag=df9c5b694d4cbcea59a972372b22b
  47f.fc6c..Call-ID: 5ae4b68378e5edf8081a79253ddf8aef at mysipprovider..CSeq:
   102 INVITE..WWW-Authenticate: Digest realm="mysipprovider", nonce="41a8
  f5568b9013b1b0f4cc300b48cea6a58d6a63"..Server: Sip EXpress router
(0.8.14 (
  i386/freebsd))..Content-Length: 0....
#
U myhost:5060 -> mysipprovider:5060
  ACK sip:callednumber at mysipprovider SIP/2.0..Via: SIP/2.0/UDP myhost:
  5060;branch=z9hG4bK40e0db6c..From: "4721677891"
<sip:4721677891 at mysipprovider
  >;tag=as11f66db2..To: <sip:callednumber at mysipprovider>;tag=df9c5b694d4c
  bcea59a972372b22b47f.fc6c..Contact: <sip:4721677891 at myhost>..Call-I
  D: 5ae4b68378e5edf8081a79253ddf8aef at mysipprovider..CSeq: 102 ACK..User-A
  gent: Asterisk SIPv2 (http://www.asterisk.org CVS-HEAD-11/27/04-15:07:27
)
  ..Content-Length: 0....
#
U myhost:5060 -> mysipprovider:5060
  INVITE sip:callednumber at mysipprovider SIP/2.0..Via: SIP/2.0/UDP
212.33.133.1
  95:5060;branch=z9hG4bK251f9e48..From: "4721677891"
<sip:4721677891 at sip01.ph
  onect.no>;tag=as11f66db2..To: <sip:callednumber at mysipprovider>..Contact:
<si
  p:4721677891 at myhost>..Call-ID: 5ae4b68378e5edf8081a79253ddf8aef at sip
  01.phonect.no..CSeq: 103 INVITE..User-Agent: Asterisk SIPv2
(http://www.ast
  erisk.org CVS-HEAD-11/27/04-15:07:27 ) ..Authorization: Digest
username="47
  21677891", realm="mysipprovider", algorithm=MD5,
uri="sip:callednumber at 194.6
  .238.21", nonce="41a8f5568b9013b1b0f4cc300b48cea6a58d6a63",
response="f77b1
  2c34a2c56395cf7a4f9f6885636", opaque=""..Date: Sat, 27 Nov 2004 21:39:44
GM
  T..Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER..Content-Type:
applicati
  on/sdp..Content-Length: 265....v=0..o=root 4687 4688 IN IP4 myhost.
  .s=session..c=IN IP4 myhost..t=0 0..m=audio 18634 RTP/AVP 8 0 3 101
  ..a=rtpmap:8 PCMA/8000..a=rtpmap:0 PCMU/8000..a=rtpmap:3
GSM/8000..a=rtpmap
  :101 telephone-event/8000..a=fmtp:101 0-16..a=silenceSupp:off - - - -..
#
U mysipprovider:5060 -> myhost:5060
  SIP/2.0 401 Unauthorized..Via: SIP/2.0/UDP myhost:5060;branch=z9hG4
  bK251f9e48..From: "4721677891" <sip:4721677891 at mysipprovider>;tag=as11f6
  6db2..To:
<sip:callednumber at mysipprovider>;tag=df9c5b694d4cbcea59a972372b22b
  47f.0983..Call-ID: 5ae4b68378e5edf8081a79253ddf8aef at mysipprovider..CSeq:
   103 INVITE..WWW-Authenticate: Digest realm="mysipprovider", nonce="41a8
  f5568b9013b1b0f4cc300b48cea6a58d6a63"..Server: Sip EXpress router
(0.8.14 (
  i386/freebsd))..Content-Length: 0....
#




More information about the asterisk-users mailing list