*** sip.conf *** [7030] type=friend host=dynamic defaultip=192.168.4.2 username=7030 secret=7030 ;My sip phone [7031] type=friend host=dynamic defaultip=192.168.4.1 username=7031 secret=7031 ****** sip debug********** Marvin*CLI> sip show peer 7030 Marvin*CLI> * Name : 7030 Secret : MD5Secret : Context : default Language : FromUser : FromDomain : Callgroup : (0) Pickupgroup : (0) Mailbox : LastMsgsSent : -1 Dynamic : Yes Expire : -1 seconds Expiry : 900 Insecure : No Nat : No ACL : No CanReinvite : Yes PromiscRedir : No DTMFmode : rfc2833 LastMsg : 0 ToHost : Addr->IP : (Unspecified) Port 0 Defaddr->IP : 192.168.4.2 Port 5060 Username : 7030 Codecs : 0x8000e (gsm|ulaw|alaw|h263) Codec Order : (none) Status : UNKNOWN Useragent : Full Contact : Marvin*CLI> Marvin*CLI> sip show peer 7031 Marvin*CLI> * Name : 7031 Secret : MD5Secret : Context : default Language : FromUser : FromDomain : Callgroup : (0) Pickupgroup : (0) Mailbox : LastMsgsSent : -1 Dynamic : Yes Expire : -1 seconds Expiry : 900 Insecure : No Nat : No ACL : No CanReinvite : Yes PromiscRedir : No DTMFmode : rfc2833 LastMsg : 0 ToHost : Addr->IP : (Unspecified) Port 0 Defaddr->IP : 192.168.4.1 Port 5060 Username : 7031 Codecs : 0x8000e (gsm|ulaw|alaw|h263) Codec Order : (none) Status : UNKNOWN Useragent : Full Contact : Marvin*CLI> Marvin*CLI> Sip read: REGISTER sip:192.168.4.1;transport=UDP SIP/2.0 From: ;tag=c0a80402-13c4-19f72-12c-6db301 To: Call-ID: c0a80402-13c4-19f72-123-6bec15da CSeq: 1 REGISTER Via: SIP/2.0/UDP 192.168.4.2:5060;branch=z9hG4bK-19f72-12d-4f05b5a6 Max-Forwards: 70 Contact: Expires: 3600 Content-Length: 0 10 headers, 0 lines Using latest request as basis request Sending to 192.168.4.2 : 5060 (non-NAT) Transmitting (no NAT): SIP/2.0 100 Trying Via: SIP/2.0/UDP 192.168.4.2:5060;branch=z9hG4bK-19f72-12d-4f05b5a6 From: ;tag=c0a80402-13c4-19f72-12c-6db301 To: Call-ID: c0a80402-13c4-19f72-123-6bec15da CSeq: 1 REGISTER User-Agent: Asterisk PBX Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER Contact: Content-Length: 0 to 192.168.4.2:5060 Transmitting (no NAT): SIP/2.0 401 Unauthorized Via: SIP/2.0/UDP 192.168.4.2:5060;branch=z9hG4bK-19f72-12d-4f05b5a6 From: ;tag=c0a80402-13c4-19f72-12c-6db301 To: ;tag=as6c9428a3 Call-ID: c0a80402-13c4-19f72-123-6bec15da CSeq: 1 REGISTER User-Agent: Asterisk PBX Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER Contact: WWW-Authenticate: Digest realm="asterisk", nonce="5c5bc430" Content-Length: 0 to 192.168.4.2:5060 Scheduling destruction of call 'c0a80402-13c4-19f72-123-6bec15da' in 15000 ms Sip read: REGISTER sip:192.168.4.1;transport=UDP SIP/2.0 From: ;tag=c0a80402-13c4-19f72-135-69817e3d To: Call-ID: c0a80402-13c4-19f72-123-6bec15da CSeq: 2 REGISTER Via: SIP/2.0/UDP 192.168.4.2:5060;branch=z9hG4bK-19f72-136-c78632 Max-Forwards: 70 Contact: Expires: 3600 Content-Length: 0 10 headers, 0 lines Using latest request as basis request Sending to 192.168.4.2 : 5060 (non-NAT) Transmitting (no NAT): SIP/2.0 100 Trying Via: SIP/2.0/UDP 192.168.4.2:5060;branch=z9hG4bK-19f72-136-c78632 From: ;tag=c0a80402-13c4-19f72-135-69817e3d To: Call-ID: c0a80402-13c4-19f72-123-6bec15da CSeq: 2 REGISTER User-Agent: Asterisk PBX Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER Contact: Content-Length: 0 to 192.168.4.2:5060 Transmitting (no NAT): SIP/2.0 401 Unauthorized Via: SIP/2.0/UDP 192.168.4.2:5060;branch=z9hG4bK-19f72-136-c78632 From: ;tag=c0a80402-13c4-19f72-135-69817e3d To: ;tag=as6c9428a3 Call-ID: c0a80402-13c4-19f72-123-6bec15da CSeq: 2 REGISTER User-Agent: Asterisk PBX Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER Contact: WWW-Authenticate: Digest realm="asterisk", nonce="6dd2514c" Content-Length: 0 to 192.168.4.2:5060 Scheduling destruction of call 'c0a80402-13c4-19f72-123-6bec15da' in 15000 ms Marvin*CLI> Sip read: REGISTER sip:192.168.4.1;transport=UDP SIP/2.0 From: ;tag=c0a80402-13c4-19f72-12c-6db301 To: Call-ID: c0a80402-13c4-19f72-123-6bec15da CSeq: 3 REGISTER Via: SIP/2.0/UDP 192.168.4.2:5060;branch=z9hG4bK-19f72-148-7c103500 Max-Forwards: 70 Contact: Expires: 3600 Authorization: Digest username="7030", realm="asterisk", nonce="5c5bc430", uri="sip:192.168.4.1;transport=UDP", response="0912daf22a9bc29b43a83fbdb9b1a045", algorithm=MD5 Content-Length: 0 11 headers, 0 lines Using latest request as basis request Sending to 192.168.4.2 : 5060 (non-NAT) Transmitting (no NAT): SIP/2.0 100 Trying Via: SIP/2.0/UDP 192.168.4.2:5060;branch=z9hG4bK-19f72-148-7c103500 From: ;tag=c0a80402-13c4-19f72-12c-6db301 To: Call-ID: c0a80402-13c4-19f72-123-6bec15da CSeq: 3 REGISTER User-Agent: Asterisk PBX Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER Contact: Content-Length: 0 to 192.168.4.2:5060 Jun 28 20:46:17 WARNING[9982]: chan_sip.c:4826 check_auth: Stale nonce received from '' Transmitting (no NAT): SIP/2.0 401 Unauthorized Via: SIP/2.0/UDP 192.168.4.2:5060;branch=z9hG4bK-19f72-148-7c103500 From: ;tag=c0a80402-13c4-19f72-12c-6db301 To: ;tag=as6c9428a3 Call-ID: c0a80402-13c4-19f72-123-6bec15da CSeq: 3 REGISTER User-Agent: Asterisk PBX Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER Contact: WWW-Authenticate: Digest realm="asterisk", nonce="4907f483" Content-Length: 0 to 192.168.4.2:5060 Scheduling destruction of call 'c0a80402-13c4-19f72-123-6bec15da' in 15000 ms Sip read: REGISTER sip:192.168.4.1;transport=UDP SIP/2.0 From: ;tag=c0a80402-13c4-19f72-135-69817e3d To: Call-ID: c0a80402-13c4-19f72-123-6bec15da CSeq: 4 REGISTER Via: SIP/2.0/UDP 192.168.4.2:5060;branch=z9hG4bK-19f72-14f-63d37e Max-Forwards: 70 Contact: Expires: 3600 Authorization: Digest username="7031", realm="asterisk", nonce="6dd2514c", uri="sip:192.168.4.1;transport=UDP", response="3bbef0b970243aad0f30eba9b83a30e0", algorithm=MD5 Content-Length: 0 11 headers, 0 lines Using latest request as basis request Sending to 192.168.4.2 : 5060 (non-NAT) Transmitting (no NAT): SIP/2.0 100 Trying Via: SIP/2.0/UDP 192.168.4.2:5060;branch=z9hG4bK-19f72-14f-63d37e From: ;tag=c0a80402-13c4-19f72-135-69817e3d To: Call-ID: c0a80402-13c4-19f72-123-6bec15da CSeq: 4 REGISTER User-Agent: Asterisk PBX Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER Contact: Content-Length: 0 to 192.168.4.2:5060 Jun 28 20:46:17 WARNING[9982]: chan_sip.c:4826 check_auth: Stale nonce received from '' Transmitting (no NAT): SIP/2.0 401 Unauthorized Via: SIP/2.0/UDP 192.168.4.2:5060;branch=z9hG4bK-19f72-14f-63d37e From: ;tag=c0a80402-13c4-19f72-135-69817e3d To: ;tag=as6c9428a3 Call-ID: c0a80402-13c4-19f72-123-6bec15da CSeq: 4 REGISTER User-Agent: Asterisk PBX Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER Contact: WWW-Authenticate: Digest realm="asterisk", nonce="4cfe948a" Content-Length: 0 to 192.168.4.2:5060 Scheduling destruction of call 'c0a80402-13c4-19f72-123-6bec15da' in 15000 ms Destroying call 'c0a80402-13c4-19f72-123-6bec15da' Marvin*CLI>