@david551 How do I increase the logging level?
The headers seem to match a different extension that works fine where the 2nd INVITE (with auth) doesn’t get ignored by Asterisk.
I’m taking the packet capture on the Asterisk server, so I know they are making it there.
Here are the full headers for the non-working extension:
1st INVITE from extension (without authorization):
Frame 404: 1433 bytes on wire (11464 bits), 1433 bytes captured (11464 bits)
Ethernet II, Src: xx:xx:xx:xx:xx:xx (xx:xx:xx:xx:xx:xx), Dst: yy:yy:yy:yy:yy:yy (yy:yy:yy:yy:yy:yy)
Internet Protocol Version 4, Src: x.x.x.x, Dst: y.y.y.y
User Datagram Protocol, Src Port: 5060, Dst Port: xx
Session Initiation Protocol (INVITE)
Request-Line: INVITE sip:xxx@xxxx:xx SIP/2.0
Message Header
Via: SIP/2.0/UDP 10.10.0.99:5060;branch=z9hG4bK968240927;rport
From: "xxx" <sip:1501@xxxx:xx>;tag=407085146
To: <sip:xxx@xxxx:xx>
Call-ID: 239187605-5060-4@BA.BA.A.JJ
[Generated Call-ID: 239187605-5060-4@BA.BA.A.JJ]
CSeq: 20 INVITE
Contact: "xxx" <sip:1501@10.10.0.99:5060>
Max-Forwards: 70
User-Agent: Grandstream HT801 1.0.19.11
Privacy: none
P-Preferred-Identity: "xxx" <sip:1501@xxxx:xx>
P-Access-Network-Info: IEEE-EUI-48;eui-48-addr=xx-xx-xx-xx-xx-xx
P-Emergency-Info: IEEE-EUI-48;eui-48-addr=yy-yy-yy-yy-yy-yy
Supported: replaces, path, timer, eventlist
Allow: INVITE, ACK, OPTIONS, CANCEL, BYE, SUBSCRIBE, NOTIFY, INFO, REFER, UPDATE
Content-Type: application/sdp
Accept: application/sdp, application/dtmf-relay
Content-Length: 448
Unauthorized response from Asterisk:
Frame 405: 567 bytes on wire (4536 bits), 567 bytes captured (4536 bits)
Ethernet II, Src: xx:xx:xx:xx:xx:xx (xx:xx:xx:xx:xx:xx), Dst: yy:yy:yy:yy:yy:yy (yy:yy:yy:yy:yy:yy)
Internet Protocol Version 4, Src: y.y.y.y, Dst: x.x.x.x
User Datagram Protocol, Src Port: xx, Dst Port: 5060
Session Initiation Protocol (401)
Status-Line: SIP/2.0 401 Unauthorized
Message Header
Via: SIP/2.0/UDP 10.10.0.99:5060;rport=5060;received=x.x.x.x;branch=z9hG4bK968240927
Call-ID: 239187605-5060-4@BA.BA.A.JJ
[Generated Call-ID: 239187605-5060-4@BA.BA.A.JJ]
From: "xxx" <sip:1501@xxxx>;tag=407085146
To: <sip:13058904001@xxxx>;tag=z9hG4bK968240927
CSeq: 20 INVITE
WWW-Authenticate: Digest realm="asterisk",nonce="xxxxx",opaque="yyyyy",algorithm=md5,qop="auth"
Server: VitalPBX
Content-Length: 0
ACK from extension:
Frame 407: 408 bytes on wire (3264 bits), 408 bytes captured (3264 bits)
Ethernet II, Src: xx:xx:xx:xx:xx:xx (xx:xx:xx:xx:xx:xx), Dst: yy:yy:yy:yy:yy:yy (yy:yy:yy:yy:yy:yy)
Internet Protocol Version 4, Src: x.x.x.x, Dst: y.y.y.y
User Datagram Protocol, Src Port: 5060, Dst Port: xx
Session Initiation Protocol (ACK)
Request-Line: ACK sip:xxx@xxxx:xx SIP/2.0
Message Header
Via: SIP/2.0/UDP 10.10.0.99:5060;branch=z9hG4bK968240927;rport
From: "xxx" <sip:1501@xxxx>;tag=407085146
To: <sip:xxx@xxxx>;tag=z9hG4bK968240927
Call-ID: 239187605-5060-4@BA.BA.A.JJ
[Generated Call-ID: 239187605-5060-4@BA.BA.A.JJ]
CSeq: 20 ACK
Content-Length: 0
2nd INVITE from extension (with authorization) - ignored by Asterisk:
Frame 408: 1514 bytes on wire (12112 bits), 1514 bytes captured (12112 bits)
Ethernet II, Src: xx:xx:xx:xx:xx:xx (xx:xx:xx:xx:xx:xx), Dst: yy:yy:yy:yy:yy:yy (yy:yy:yy:yy:yy:yy)
Internet Protocol Version 4, Src: x.x.x.x, Dst: y.y.y.y
User Datagram Protocol, Src Port: 5060, Dst Port: xx
Session Initiation Protocol (INVITE)
Request-Line: INVITE sip:xxx@xxxx:xx SIP/2.0
Message Header
Via: SIP/2.0/UDP 10.10.0.99:5060;branch=z9hG4bK1511636959;rport
From: "xxx" <sip:1501@xxxx:xx>;tag=407085146
To: <sip:xxx@xxxx:xx>
Call-ID: 239187605-5060-4@BA.BA.A.JJ
[Generated Call-ID: 239187605-5060-4@BA.BA.A.JJ]
CSeq: 21 INVITE
Contact: "xxx" <sip:1501@10.10.0.99:5060>
[truncated]Authorization: Digest username="1501", realm="asterisk", nonce="xxxxx", uri="sip:xxx@xxxx:xx", response="xxxxx", algorithm=md5
Max-Forwards: 70
User-Agent: Grandstream HT801 1.0.19.11
Privacy: none
P-Preferred-Identity: "xxx" <sip:1501@xxxx:xx>
P-Access-Network-Info: IEEE-EUI-48;eui-48-addr=xx-xx-xx-xx-xx-xx
P-Emergency-Info: IEEE-EUI-48;eui-48-addr=yy-yy-yy-yy-yy-yy
Supported: replaces, path, timer, eventlist
Allow: INVITE, ACK, OPTIONS, CANCEL, BYE, SUBSCRIBE, NOTIFY, INFO, REFER, UPDATE
Content-Type: application/sdp
Accept: application/sdp, application/dtmf-relay
Content-Length: 448