MuppetMaster, the 407 authentication isn’t an error in my understanding. it’s just part of the normal SIP authentication process. The phone sends the INVITE request, and Asterisk asks for authentication. The phone resends the INVITE with the correct credentials and all is ok.
Here’s another SIP output.
U 192.168.10.124:5060 -> 192.168.10.7:5060
INVITE sip:5000@voip.180internal.com;user=phone SIP/2.0.
Via: SIP/2.0/UDP 192.168.10.124;branch=z9hG4bK98546d5cE2752E0D.
From: “J. Wayne” sip:3250071@voip.180internal.com;tag=8B100DC6-8EC64109.
To: sip:5000@voip.180internal.com;user=phone.
CSeq: 1 INVITE.
Call-ID: 865a7dba-22476608-8643e973@192.168.10.124.
Contact: sip:3250071@192.168.10.124.
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, INFO, MESSAGE, SUBSCRIBE, NOTIFY, PRACK, UPDATE, REFER.
User-Agent: PolycomSoundPointIP-SPIP_600-UA/1.6.2.0041.
Supported: 100rel,replace.
Allow-Events: talk,hold,conference.
Max-Forwards: 70.
Content-Type: application/sdp.
Content-Length: 253.
.
v=0.
o=- 1131480428 1131480428 IN IP4 192.168.10.124.
s=Polycom IP Phone.
c=IN IP4 192.168.10.124.
t=0 0.
a=sendrecv.
m=audio 2260 RTP/AVP 0 8 18 101.
a=rtpmap:0 PCMU/8000.
a=rtpmap:8 PCMA/8000.
a=rtpmap:18 G729/8000.
a=rtpmap:101 telephone-event/8000.
U 192.168.10.124:5060 -> 192.168.10.7:5060
ACK sip:5000@voip.180internal.com SIP/2.0.
Via: SIP/2.0/UDP 192.168.10.124;branch=z9hG4bK98546d5cE2752E0D.
From: “J. Wayne” sip:3250071@voip.180internal.com;tag=8B100DC6-8EC64109.
To: sip:5000@voip.180internal.com;user=phone;tag=as3d5c6a74.
CSeq: 1 ACK.
Call-ID: 865a7dba-22476608-8643e973@192.168.10.124.
Contact: sip:3250071@192.168.10.124.
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, INFO, MESSAGE, SUBSCRIBE, NOTIFY, PRACK, UPDATE, REFER.
User-Agent: PolycomSoundPointIP-SPIP_600-UA/1.6.2.0041.
Max-Forwards: 70.
Content-Length: 0.
.
U 192.168.10.124:5060 -> 192.168.10.7:5060
INVITE sip:5000@voip.180internal.com;user=phone SIP/2.0.
Via: SIP/2.0/UDP 192.168.10.124;branch=z9hG4bK63849e4f98DDD874.
From: “J. Wayne” sip:3250071@voip.180internal.com;tag=8B100DC6-8EC64109.
To: sip:5000@voip.180internal.com;user=phone.
CSeq: 2 INVITE.
Call-ID: 865a7dba-22476608-8643e973@192.168.10.124.
Contact: sip:3250071@192.168.10.124.
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, INFO, MESSAGE, SUBSCRIBE, NOTIFY, PRACK, UPDATE, REFER.
User-Agent: PolycomSoundPointIP-SPIP_600-UA/1.6.2.0041.
Supported: 100rel,replace.
Allow-Events: talk,hold,conference.
Proxy-Authorization: Digest username=“3250071”, realm=“asterisk”, nonce=“597483e4”, uri="sip:5000@voip.180internal.com;user=phone", response=“583b2f6a2ae5630fafd62f8ebec3eefd”, algorithm=MD5.
Max-Forwards: 70.
Content-Type: application/sdp.
Content-Length: 253.
.
v=0.
o=- 1131480428 1131480428 IN IP4 192.168.10.124.
s=Polycom IP Phone.
c=IN IP4 192.168.10.124.
t=0 0.
a=sendrecv.
m=audio 2260 RTP/AVP 0 8 18 101.
a=rtpmap:0 PCMU/8000.
a=rtpmap:8 PCMA/8000.
a=rtpmap:18 G729/8000.
a=rtpmap:101 telephone-event/8000.
U 192.168.10.7:5060 -> 192.168.10.124:5060
SIP/2.0 100 Trying.
Via: SIP/2.0/UDP 192.168.10.124;branch=z9hG4bK63849e4f98DDD874.
From: “J. Wayne” sip:3250071@voip.180internal.com;tag=8B100DC6-8EC64109.
To: sip:5000@voip.180internal.com;user=phone.
Call-ID: 865a7dba-22476608-8643e973@192.168.10.124.
CSeq: 2 INVITE.
User-Agent: Asterisk PBX.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY.
Contact: sip:5000@192.168.10.7.
Content-Length: 0.
.
U 192.168.10.7:5060 -> 192.168.10.124:5060
SIP/2.0 200 OK.
Via: SIP/2.0/UDP 192.168.10.124;branch=z9hG4bK63849e4f98DDD874.
From: “J. Wayne” sip:3250071@voip.180internal.com;tag=8B100DC6-8EC64109.
To: sip:5000@voip.180internal.com;user=phone;tag=as2b22efce.
Call-ID: 865a7dba-22476608-8643e973@192.168.10.124.
CSeq: 2 INVITE.
User-Agent: Asterisk PBX.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY.
Contact: sip:5000@192.168.10.7.
Content-Type: application/sdp.
Content-Length: 261.
.
v=0.
o=root 6306 6306 IN IP4 192.168.10.7.
s=session.
c=IN IP4 192.168.10.7.
t=0 0.
m=audio 18632 RTP/AVP 3 0 8 101.
a=rtpmap:3 GSM/8000.
a=rtpmap:0 PCMU/8000.
a=rtpmap:8 PCMA/8000.
a=rtpmap:101 telephone-event/8000.
a=fmtp:101 0-16.
a=silenceSupp:off - - - -.
U 192.168.10.124:5060 -> 192.168.10.7:5060
ACK sip:5000@192.168.10.7 SIP/2.0.
Via: SIP/2.0/UDP 192.168.10.124;branch=z9hG4bK388710a0FD626B41.
From: “J. Wayne” sip:3250071@voip.180internal.com;tag=8B100DC6-8EC64109.
To: sip:5000@voip.180internal.com;user=phone;tag=as2b22efce.
CSeq: 2 ACK.
Call-ID: 865a7dba-22476608-8643e973@192.168.10.124.
Contact: sip:3250071@192.168.10.124.
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, INFO, MESSAGE, SUBSCRIBE, NOTIFY, PRACK, UPDATE, REFER.
User-Agent: PolycomSoundPointIP-SPIP_600-UA/1.6.2.0041.
Max-Forwards: 70.
Content-Length: 0.
.
U 192.168.10.124:5060 -> 192.168.10.7:5060
BYE sip:5000@192.168.10.7 SIP/2.0.
Via: SIP/2.0/UDP 192.168.10.124;branch=z9hG4bK214b911eFCDD8E47.
From: “J. Wayne” sip:3250071@voip.180internal.com;tag=8B100DC6-8EC64109.
To: sip:5000@voip.180internal.com;user=phone;tag=as2b22efce.
CSeq: 3 BYE.
Call-ID: 865a7dba-22476608-8643e973@192.168.10.124.
Contact: sip:3250071@192.168.10.124.
User-Agent: PolycomSoundPointIP-SPIP_600-UA/1.6.2.0041.
Proxy-Authorization: Digest username=“3250071”, realm=“asterisk”, nonce=“597483e4”, uri="sip:5000@voip.180internal.com;user=phone", response=“583b2f6a2ae5630fafd62f8ebec3eefd”, algorithm=MD5.
Max-Forwards: 70.
Content-Length: 0.
.
U 192.168.10.7:5060 -> 192.168.10.124:5060
SIP/2.0 200 OK.
Via: SIP/2.0/UDP 192.168.10.124;branch=z9hG4bK214b911eFCDD8E47.
From: “J. Wayne” sip:3250071@voip.180internal.com;tag=8B100DC6-8EC64109.
To: sip:5000@voip.180internal.com;user=phone;tag=as2b22efce.
Call-ID: 865a7dba-22476608-8643e973@192.168.10.124.
CSeq: 3 BYE.
User-Agent: Asterisk PBX.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY.
Contact: sip:5000@192.168.10.7.
Content-Length: 0.
.
This time I dialled 5000, and I modified my extensions.conf to
[c_3250071]
exten => 5000,1,Answer
exten => 5000,2,Playback(tt-weasels)
exten => 5000,3,Hangup
and it works. This very heavily implies to me that it IS getting to extensions.conf. Asterisk is just choosing not to execute the s extension.