<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'><div dir='ltr'>
Hello, <br>Is L6 a remote device? is there any firewall residing between the server and UA?<br><br><br>Tarek Sawah<br><br>Information Technology &nbsp;Adviser<br><br>Integrated Digital Systems<br><br>CCNP, MCSE, RHCE, TELECOM<br><br>USA: +1 386 492 9993<br><br><br><br><div>&gt; From: panych.y@gmail.com<br>&gt; Date: Tue, 25 Oct 2011 14:30:53 +0300<br>&gt; To: asterisk-users@lists.digium.com<br>&gt; Subject: [asterisk-users]  Asterisk does not accepts SIP registration<br>&gt; <br>&gt; Hello<br>&gt; <br>&gt; Always returns 401 Unauthorized, because of<br>&gt; [Oct 25 11:59:48] NOTICE[2501] chan_sip.c: Correct auth, but based on<br>&gt; stale nonce received from '"L6"<br>&gt; &lt;sip:L6@172.30.8.13:5060&gt;;tag=31b9dc9e-684902'<br>&gt; <br>&gt; L6 is realtime device of type FRIEND (DLINK DVG7022S)<br>&gt; <br>&gt; Reviewed SIP conversation - no results.<br>&gt; <br>&gt; SIP debug<br>&gt; &lt;--- SIP read from UDP:172.30.8.18:5060 ---&gt;<br>&gt; REGISTER sip:172.30.8.13:5060 SIP/2.0<br>&gt; v:SIP/2.0/UDP 172.30.8.18:5060;branch=z9hG4bKe3a0c285855ae0e5<br>&gt; f:"L6" &lt;sip:L6@172.30.8.13:5060&gt;;tag=31b9dc9e-684902<br>&gt; t:"L6" &lt;sip:L6@172.30.8.13:5060&gt;<br>&gt; i:BD2F-1923-466848179B9BEAA6258E-001@SipHost<br>&gt; CSeq:23 REGISTER<br>&gt; m:&lt;sip:L6@172.30.8.18:5060&gt;<br>&gt; Expires:0<br>&gt; Max-Forwards:70<br>&gt; User-Agent:dlink 12-36-9924913<br>&gt; l:0<br>&gt; <br>&gt; &lt;-------------&gt;<br>&gt; &lt;--- Transmitting (no NAT) to 172.30.8.18:5060 ---&gt;<br>&gt; SIP/2.0 401 Unauthorized<br>&gt; Via: SIP/2.0/UDP<br>&gt; 172.30.8.18:5060;branch=z9hG4bKe3a0c285855ae0e5;received=172.30.8.18<br>&gt; From: "L6" &lt;sip:L6@172.30.8.13:5060&gt;;tag=31b9dc9e-684902<br>&gt; To: "L6" &lt;sip:L6@172.30.8.13:5060&gt;;tag=as1a9dabcb<br>&gt; Call-ID: BD2F-1923-466848179B9BEAA6258E-001@SipHost<br>&gt; CSeq: 23 REGISTER<br>&gt; Server: Asterisk PBX<br>&gt; Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY,<br>&gt; INFO, PUBLISH<br>&gt; Supported: replaces, timer<br>&gt; WWW-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="1555e540"<br>&gt; Content-Length: 0<br>&gt; <br>&gt; <br>&gt; &lt;------------&gt;<br>&gt; REGISTER sip:172.30.8.13:5060 SIP/2.0<br>&gt; v:SIP/2.0/UDP 172.30.8.18:5060;branch=z9hG4bK629009e8cee7f7e3<br>&gt; f:"L6" &lt;sip:L6@172.30.8.13:5060&gt;;tag=31b9dc9e-684902<br>&gt; t:"L6" &lt;sip:L6@172.30.8.13:5060&gt;<br>&gt; i:BD2F-1923-466848179B9BEAA6258E-001@SipHost<br>&gt; CSeq:24 REGISTER<br>&gt; m:&lt;sip:L6@172.30.8.18:5060&gt;<br>&gt; Expires:0<br>&gt; Max-Forwards:70<br>&gt; Authorization:Digest<br>&gt; username="L6",realm="asterisk",nonce="1555e540",uri="sip:172.30.8.13:5060",response="f47b23120619eb9e6d184bafa48b92c9",algorithm=MD5<br>&gt; User-Agent:dlink 12-36-9924913<br>&gt; l:0<br>&gt; <br>&gt; &lt;-------------&gt;<br>&gt; [Oct 25 11:59:48] NOTICE[2501] chan_sip.c: Correct auth, but based on<br>&gt; stale nonce received from '"L6"<br>&gt; &lt;sip:L6@172.30.8.13:5060&gt;;tag=31b9dc9e-684902'<br>&gt; [Oct 25 11:59:48] VERBOSE[2501] chan_sip.c:<br>&gt; &lt;--- Transmitting (no NAT) to 172.30.8.18:5060 ---&gt;<br>&gt; SIP/2.0 401 Unauthorized<br>&gt; Via: SIP/2.0/UDP<br>&gt; 172.30.8.18:5060;branch=z9hG4bK629009e8cee7f7e3;received=172.30.8.18<br>&gt; From: "L6" &lt;sip:L6@172.30.8.13:5060&gt;;tag=31b9dc9e-684902<br>&gt; To: "L6" &lt;sip:L6@172.30.8.13:5060&gt;;tag=as014cd348<br>&gt; Call-ID: BD2F-1923-466848179B9BEAA6258E-001@SipHost<br>&gt; CSeq: 24 REGISTER<br>&gt; Server: Asterisk PBX<br>&gt; Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY,<br>&gt; INFO, PUBLISH<br>&gt; Supported: replaces, timer<br>&gt; WWW-Authenticate: Digest algorithm=MD5, realm="asterisk",<br>&gt; nonce="11195a41", stale=true<br>&gt; Content-Length: 0<br>&gt; <br>&gt; <br>&gt; &lt;------------&gt;<br>&gt; <br>&gt; sip.conf<br>&gt; [general]<br>&gt; context = default<br>&gt; <br>&gt; allowguest = no<br>&gt; bindport = 5060<br>&gt; bindaddr = 0.0.0.0<br>&gt; <br>&gt; allowexternaldomains = no<br>&gt; allowoverlap = yes<br>&gt; allowsubscribe = yes<br>&gt; allowtransfer = yes<br>&gt; alwaysauthreject = no<br>&gt; autodomain = no<br>&gt; callevents = no<br>&gt; canreinvite = no<br>&gt; checkmwi = 10<br>&gt; compactheaders = no<br>&gt; defaultexpiry = 120<br>&gt; domain=sop-korniychuk<br>&gt; domain=172.30.8.13<br>&gt; domain=172.30.8.13:5060<br>&gt; dumphistory = no<br>&gt; externrefresh = 10<br>&gt; g726nonstandard = no<br>&gt; notifyringing = yes<br>&gt; srvlookup = yes<br>&gt; t1min = 100<br>&gt; t38pt_udptl = no<br>&gt; ;tos_audio = none<br>&gt; ;tos_sip = none<br>&gt; ;tos_video = none<br>&gt; trustrpid = no<br>&gt; useragent = Asterisk PBX<br>&gt; usereqphone = no<br>&gt; videosupport = no<br>&gt; disallow = all<br>&gt; allow = alaw<br>&gt; type = friend<br>&gt; host=dynamic<br>&gt; context = noop-context<br>&gt; dtmfmode=rfc2833<br>&gt; ;language = ru<br>&gt; ;sipdebug=yes<br>&gt; nat=no<br>&gt; rtcachefriends=yes<br>&gt; qualify=10000<br>&gt; deny=0.0.0.0/0.0.0.0<br>&gt; permit=172.30.8.0/255.255.255.0<br>&gt; <br>&gt; sip show settings<br>&gt; <br>&gt; Global Settings:<br>&gt; ----------------<br>&gt;   UDP Bindaddress:        0.0.0.0:5060<br>&gt;   TCP SIP Bindaddress:    Disabled<br>&gt;   TLS SIP Bindaddress:    Disabled<br>&gt;   Videosupport:           No<br>&gt;   Textsupport:            No<br>&gt;   Ignore SDP sess. ver.:  No<br>&gt;   AutoCreate Peer:        No<br>&gt;   Match Auth Username:    No<br>&gt;   Allow unknown access:   No<br>&gt;   Allow subscriptions:    Yes<br>&gt;   Allow overlap dialing:  Yes<br>&gt;   Allow promisc. redir:   No<br>&gt;   Enable call counters:   No<br>&gt;   SIP domain support:     Yes<br>&gt;   Realm. auth:            No<br>&gt;   Our auth realm          asterisk<br>&gt;   Use domains as realms:  No<br>&gt;   Call to non-local dom.: No<br>&gt;   URI user is phone no:   No<br>&gt;   Always auth rejects:    No<br>&gt;   Direct RTP setup:       No<br>&gt;   User Agent:             Asterisk PBX<br>&gt;   SDP Session Name:       Asterisk PBX 1.8.5.0<br>&gt;   SDP Owner Name:         root<br>&gt;   Reg. context:           (not set)<br>&gt;   Regexten on Qualify:    No<br>&gt;   Legacy userfield parse: No<br>&gt;   Caller ID:              asterisk<br>&gt;   From: Domain:<br>&gt;   Record SIP history:     Off<br>&gt;   Call Events:            Off<br>&gt;   Auth. Failure Events:   Off<br>&gt;   T.38 support:           No<br>&gt;   T.38 EC mode:           Unknown<br>&gt;   T.38 MaxDtgrm:          -1<br>&gt;   SIP realtime:           Enabled<br>&gt;   Qualify Freq :          60000 ms<br>&gt;   Q.850 Reason header:    No<br>&gt; <br>&gt; Network QoS Settings:<br>&gt; ---------------------------<br>&gt;   IP ToS SIP:             CS0<br>&gt;   IP ToS RTP audio:       CS0<br>&gt;   IP ToS RTP video:       CS0<br>&gt;   IP ToS RTP text:        CS0<br>&gt;   802.1p CoS SIP:         4<br>&gt;   802.1p CoS RTP audio:   5<br>&gt;   802.1p CoS RTP video:   6<br>&gt;   802.1p CoS RTP text:    5<br>&gt;   Jitterbuffer enabled:   No<br>&gt; <br>&gt; Network Settings:<br>&gt; ---------------------------<br>&gt;   SIP address remapping:  Disabled, no localnet list<br>&gt;   Externhost:             &lt;none&gt;<br>&gt;   externaddr:               (null)<br>&gt;   Externrefresh:          10<br>&gt; <br>&gt; Global Signalling Settings:<br>&gt; ---------------------------<br>&gt;   Codecs:                 0x8 (alaw)<br>&gt;   Codec Order:            alaw:20<br>&gt;   Relax DTMF:             No<br>&gt;   RFC2833 Compensation:   No<br>&gt;   Symmetric RTP:          No<br>&gt;   Compact SIP headers:    No<br>&gt;   RTP Keepalive:          0 (Disabled)<br>&gt;   RTP Timeout:            0 (Disabled)<br>&gt;   RTP Hold Timeout:       0 (Disabled)<br>&gt;   MWI NOTIFY mime type:   application/simple-message-summary<br>&gt;   DNS SRV lookup:         Yes<br>&gt;   Pedantic SIP support:   Yes<br>&gt;   Reg. min duration       60 secs<br>&gt;   Reg. max duration:      3600 secs<br>&gt;   Reg. default duration:  120 secs<br>&gt;   Outbound reg. timeout:  20 secs<br>&gt;   Outbound reg. attempts: 0<br>&gt;   Notify ringing state:   Yes<br>&gt;     Include CID:          No<br>&gt;   Notify hold state:      No<br>&gt;   SIP Transfer mode:      open<br>&gt;   Max Call Bitrate:       384 kbps<br>&gt;   Auto-Framing:           No<br>&gt;   Outb. proxy:            &lt;not set&gt;<br>&gt;   Session Timers:         Accept<br>&gt;   Session Refresher:      uas<br>&gt;   Session Expires:        1800 secs<br>&gt;   Session Min-SE:         90 secs<br>&gt;   Timer T1:               500<br>&gt;   Timer T1 minimum:       100<br>&gt;   Timer B:                32000<br>&gt;   No premature media:     Yes<br>&gt;   Max forwards:           70<br>&gt; <br>&gt; Default Settings:<br>&gt; -----------------<br>&gt;   Allowed transports:     UDP<br>&gt;   Outbound transport:          UDP<br>&gt;   Context:                noop-context<br>&gt;   Force rport:            No<br>&gt;   DTMF:                   rfc2833<br>&gt;   Qualify:                10000<br>&gt;   Use ClientCode:         No<br>&gt;   Progress inband:        Never<br>&gt;   Language:<br>&gt;   MOH Interpret:          default<br>&gt;   MOH Suggest:<br>&gt;   Voice Mail Extension:   asterisk<br>&gt; <br>&gt; Realtime SIP Settings:<br>&gt; ----------------------<br>&gt;   Realtime Peers:         Yes<br>&gt;   Realtime Regs:          No<br>&gt;   Cache Friends:          Yes<br>&gt;   Update:                 Yes<br>&gt;   Ignore Reg. Expire:     No<br>&gt;   Save sys. name:         No<br>&gt;   Auto Clear:             120 (Disabled)<br>&gt; <br>&gt; ----<br>&gt; <br>&gt; <br>&gt; When registering soft SIP client - all okay.<br>&gt; What I'm doing wrong?<br>&gt; <br>&gt; regards, Yaroslav.<br>&gt; <br>&gt; --<br>&gt; _____________________________________________________________________<br>&gt; -- Bandwidth and Colocation Provided by http://www.api-digital.com --<br>&gt; New to Asterisk? Join us for a live introductory webinar every Thurs:<br>&gt;                http://www.asterisk.org/hello<br>&gt; <br>&gt; asterisk-users mailing list<br>&gt; To UNSUBSCRIBE or update options visit:<br>&gt;    http://lists.digium.com/mailman/listinfo/asterisk-users<br></div>                                               </div></body>
</html>