This is the output of sip debug on (or what seems to be the relevant bits):
[code]<— SIP read from UDP:192.168.1.4:5060 —>
INVITE sip:192.168.1.3:5060;user=phone SIP/2.0
Via: SIP/2.0/UDP 192.168.1.4:5060;branch=z9hG4bK39db3614883f5a73475278f8cb6b340d;rport
From: sip:192.168.1.4:5060;tag=4060958407
To: sip:192.168.1.3:5060;user=phone
Call-ID: 1187424136@192_168_1_4
CSeq: 2 INVITE
Contact: sip:dec450@192.168.1.4:5060
Max-Forwards: 70
User-Agent: DP450/022270000000
Supported: replaces
Allow-Events: message-summary, refer
Allow: INVITE, ACK, CANCEL, BYE, OPTIONS, INFO, REFER, SUBSCRIBE, NOTIFY
Content-Type: application/sdp
Content-Length: 326
v=0
o=dec450 10016 15 IN IP4 192.168.1.4
s=Mapping
c=IN IP4 192.168.1.4
t=0 0
m=audio 10016 RTP/AVP 0 8 96 97 2 18 101
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:96 G726-32/8000
a=rtpmap:97 AAL2-G726-32/8000
a=rtpmap:2 G726-32/8000
a=rtpmap:18 G729/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
<------------->
— (14 headers 14 lines) —
Sending to 192.168.1.4:5060 (NAT)
Using INVITE request as basis request - 1187424136@192_168_1_4
Found peer ‘dec450’ for ‘192.168.1.4:5060’ from 192.168.1.4:5060
<— Reliably Transmitting (NAT) to 192.168.1.4:5060 —>
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 192.168.1.4:5060;branch=z9hG4bK39db3614883f5a73475278f8cb6b340d;received=192.168.1.4;rport=5060
From: sip:192.168.1.4:5060;tag=4060958407
To: sip:192.168.1.3:5060;user=phone;tag=as47d68a60
Call-ID: 1187424136@192_168_1_4
CSeq: 2 INVITE
Server: Asterisk PBX 1.8.3.2
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
WWW-Authenticate: Digest algorithm=MD5, realm=“asterisk”, nonce="6ededb54"
Content-Length: 0
<------------>
Scheduling destruction of SIP dialog ‘1187424136@192_168_1_4’ in 7232 ms (Method: INVITE)
<— SIP read from UDP:192.168.1.4:5060 —>
ACK sip:192.168.1.3:5060;user=phone SIP/2.0
Via: SIP/2.0/UDP 192.168.1.4:5060;branch=z9hG4bK39db3614883f5a73475278f8cb6b340d;rport
From: sip:192.168.1.4:5060;tag=4060958407
To: sip:192.168.1.3:5060;user=phone;tag=as47d68a60
Call-ID: 1187424136@192_168_1_4
CSeq: 2 ACK
Contact: sip:dec450@192.168.1.4:5060
Max-Forwards: 70
User-Agent: DP450/022270000000
Content-Length: 0
<------------->
— (10 headers 0 lines) —
<— SIP read from UDP:192.168.1.4:5060 —>
INVITE sip:192.168.1.3:5060;user=phone SIP/2.0
Via: SIP/2.0/UDP 192.168.1.4:5060;branch=z9hG4bK81b51973fe5d7bb9d4d49c896288ffd4;rport
From: sip:192.168.1.4:5060;tag=4060958407
To: sip:192.168.1.3:5060;user=phone
Call-ID: 1187424136@192_168_1_4
CSeq: 3 INVITE
Contact: sip:dec450@192.168.1.4:5060
Authorization: Digest username=“dec450”, realm=“asterisk”, algorithm=MD5, uri=“sip:192.168.1.3:5060;user=phone”, nonce=“6ededb54”, response="b2e421fcbe26037666561995087a034e"
Max-Forwards: 70
User-Agent: DP450/022270000000
Supported: replaces
Allow-Events: message-summary, refer
Allow: INVITE, ACK, CANCEL, BYE, OPTIONS, INFO, REFER, SUBSCRIBE, NOTIFY
Content-Type: application/sdp
Content-Length: 326
v=0
o=dec450 10016 15 IN IP4 192.168.1.4
s=Mapping
c=IN IP4 192.168.1.4
t=0 0
m=audio 10016 RTP/AVP 0 8 96 97 2 18 101
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:96 G726-32/8000
a=rtpmap:97 AAL2-G726-32/8000
a=rtpmap:2 G726-32/8000
a=rtpmap:18 G729/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
<------------->
— (15 headers 14 lines) —
Sending to 192.168.1.4:5060 (NAT)
Using INVITE request as basis request - 1187424136@192_168_1_4
Found peer ‘dec450’ for ‘192.168.1.4:5060’ from 192.168.1.4:5060
== Using SIP RTP CoS mark 5
Found RTP audio format 0
Found RTP audio format 8
Found RTP audio format 96
Found RTP audio format 97
Found RTP audio format 2
Found RTP audio format 18
Found RTP audio format 101
Found audio description format PCMU for ID 0
Found audio description format PCMA for ID 8
Found audio description format G726-32 for ID 96
Found audio description format AAL2-G726-32 for ID 97
Found audio description format G726-32 for ID 2
Found audio description format G729 for ID 18
Found audio description format telephone-event for ID 101
Capabilities: us - 0x80000008000e (gsm|ulaw|alaw|h263|testlaw), peer - audio=0x91c (ulaw|alaw|g726|g729|g726aal2)/video=0x0 (nothing)/text=0x0 (nothing), combined - 0xc (ulaw|alaw)
Non-codec capabilities (dtmf): us - 0x1 (telephone-event|), peer - 0x1 (telephone-event|), combined - 0x1 (telephone-event|)
Peer audio RTP is at port 192.168.1.4:10016
Peer doesn’t provide video
Peer doesn’t provide T.140
Looking for in external (domain 192.168.1.3:5060)
<— Reliably Transmitting (NAT) to 192.168.1.4:5060 —>
SIP/2.0 404 Not Found
Via: SIP/2.0/UDP 192.168.1.4:5060;branch=z9hG4bK81b51973fe5d7bb9d4d49c896288ffd4;received=192.168.1.4;rport=5060
From: sip:192.168.1.4:5060;tag=4060958407
To: sip:192.168.1.3:5060;user=phone;tag=as47d68a60
Call-ID: 1187424136@192_168_1_4
CSeq: 3 INVITE
Server: Asterisk PBX 1.8.3.2
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Length: 0
<------------>
<------------>
Scheduling destruction of SIP dialog ‘1187424136@192_168_1_4’ in 7232 ms (Method: INVITE)
Retransmitting #1 (NAT) to 192.168.1.4:5060:
SIP/2.0 404 Not Found
Via: SIP/2.0/UDP 192.168.1.4:5060;branch=z9hG4bK81b51973fe5d7bb9d4d49c896288ffd4;received=192.168.1.4;rport=5060
From: sip:192.168.1.4:5060;tag=4060958407
To: sip:192.168.1.3:5060;user=phone;tag=as47d68a60
Call-ID: 1187424136@192_168_1_4
CSeq: 3 INVITE
Server: Asterisk PBX 1.8.3.2
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Length: 0
<— SIP read from UDP:192.168.1.4:5060 —>
ACK sip:192.168.1.3:5060;user=phone SIP/2.0
Via: SIP/2.0/UDP 192.168.1.4:5060;branch=z9hG4bK81b51973fe5d7bb9d4d49c896288ffd4;rport
From: sip:192.168.1.4:5060;tag=4060958407
To: sip:192.168.1.3:5060;user=phone;tag=as47d68a60
Call-ID: 1187424136@192_168_1_4
CSeq: 3 ACK
Contact: sip:dec450@192.168.1.4:5060
Authorization: Digest username=“dec450”, realm=“asterisk”, algorithm=MD5, uri=“sip:192.168.1.3:5060;user=phone”, nonce=“6ededb54”, response="b2e421fcbe26037666561995087a034e"
Max-Forwards: 70
User-Agent: DP450/022270000000
Content-Length: 0
<------------->[/code]
and sip.conf:
[general]
alwaysauthreject=yes
canreinvite=yes
context=incoming
dtmfmode=auto
allowoverlap=no
bindport=5060
bindaddr=0.0.0.0
srvlookup=yes
limitonpeers=yes
videosupport=yes
textsupport=yes
callevents=yes
notifyringing=yes
notifyhold=yes
register =>
defaultuser=dave
fromuser=dave
call-limit=100
allowsubscribe=yes
nat=yes
localnet=192.168.1.0/255.255.255.0
externhost=xxxxxxxxxxx.net
mailbox=dave
; LAPTOP RUNNING EKIGA on 192.168.1.3
[davejunius]
type=friend
secret=
qualify=yes
canreinvite=yes
host=dynamic
context=external
defaultuser=dave
callerid=dave@XXXXXXXXX.net <dave>
call-limit=100
callcounter=yes
limitonpeers=yes
callgroup=1
pickupgroup=1
mailbox=dave
nat=yes
deny=0.0.0.0/0.0.0.0
permit=192.168.1.0/255.255.255.0
amaflags=billing
; PHONE on 192.168.1.4
[dec450]
type=friend
secret=
qualify=yes
canreinvite=yes
host=dynamic
context=external
defaultuser=dave
callerid=dave@xxxxxxxxxx <dave>
call-limit=100
callcounter=yes
limitonpeers=yes
callgroup=1
pickupgroup=1
mailbox=dave
nat=yes
deny=0.0.0.0/0.0.0.0
permit=192.168.1.0/255.255.255.0
amaflags=billing
I’m not really making any sense out of the debug info but hopefully someone can. The only thing that seems a little odd is the ‘user=phone’.