martin f krafft
2009-Sep-12 08:08 UTC
[asterisk-users] E65 fails registration, soft phone works
Hey folks, I am trying to get an E65 to connect to asterisk, and I would really appreciate a second set of eyes. The SIP dialog completes fine, but the phone subsequently says "Registration failed". I am in a network that has what seems to be a SIP-capable NAT gateway, but the asterisk is configured nat=yes anyway. Using a softphone (twinkle), I can connect just fine, SIP and RTP work. But when the E65 tries to connect, it seems to complete the SIP REGISTER dialog, but then it'll say "Registration failed": (using tshark, full log at end): 0.000000 86.197.113.72 -> 77.109.139.86 SIP Request: REGISTER sip:sip.madduck.net 0.000398 77.109.139.86 -> 86.197.113.72 SIP Status: 401 Unauthorized (0 bindings) 0.234836 86.197.113.72 -> 77.109.139.86 SIP Request: REGISTER sip:sip.madduck.net 0.250054 77.109.139.86 -> 86.197.113.72 SIP Request: OPTIONS sip:e65 at 86.197.113.72 0.250134 77.109.139.86 -> 86.197.113.72 SIP Status: 200 OK (1 bindings) 0.424722 86.197.113.72 -> 77.109.139.86 SIP Status: 200 OK asterisk will even see the peer: [Sep 12 09:56:32] NOTICE[18226]: chan_sip.c:17581 handle_response_peerpoke: Peer 'e65' is now Reachable. (174ms / 2000ms) but then subsequent OPTIONS packets don't reach the client and soon, the peer will be marked unreachable. As said before, SIP works out of this network though! I searched the web and found instances of this problem, but none of the solutions worked (changing realm, using or not using proxy server, ?). Here are the SIP details. Asterisk's realm is 'madduck.net'. As you can see, the dialog seems just fine. But there must be something wrong somewhere. Maybe you can spot where I am making an error? <--- SIP read from UDP:86.197.113.72:5060 ---> REGISTER sip:sip.madduck.net SIP/2.0 Via: SIP/2.0/UDP 86.197.113.72:5060;branch=z9hG4bKqpv7k6rtqdhc63f00hort0q;rport From: <sip:e65 at madduck.net>;tag=oqank6u9klhc7k0b0hor To: <sip:e65 at madduck.net> Contact: <sip:e65 at 86.197.113.72>;expires=3600 CSeq: 1395 REGISTER Call-ID: WWBW6W58oIes2whNLJyd_xxOEjFYl9 User-Agent: Nokia RM-208 2.0633.65.01 Max-Forwards: 70 Content-Length: 0 <--- Transmitting (NAT) to 86.197.113.72:5060 ---> SIP/2.0 401 Unauthorized Via: SIP/2.0/UDP 86.197.113.72:5060;branch=z9hG4bKqpv7k6rtqdhc63f00hort0q;received=86.197.113.72;rport=5060 From: <sip:e65 at madduck.net>;tag=oqank6u9klhc7k0b0hor To: <sip:e65 at madduck.net>;tag=as0ad61fc6 Call-ID: WWBW6W58oIes2whNLJyd_xxOEjFYl9 CSeq: 1395 REGISTER Server: madduck.net asterisk Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO Supported: replaces, timer WWW-Authenticate: Digest algorithm=MD5, realm="madduck.net", nonce="57cc0be7" Content-Length: 0 <--- SIP read from UDP:86.197.113.72:5060 ---> REGISTER sip:sip.madduck.net SIP/2.0 Via: SIP/2.0/UDP 86.197.113.72:5060;branch=z9hG4bKd5s6ucjf69cj5d7df8du9t3;rport From: <sip:e65 at madduck.net>;tag=oqank6u9klhc7k0b0hor To: <sip:e65 at madduck.net> Contact: <sip:e65 at 86.197.113.72>;expires=3600 CSeq: 1396 REGISTER Call-ID: WWBW6W58oIes2whNLJyd_xxOEjFYl9 User-Agent: Nokia RM-208 2.0633.65.01 Max-Forwards: 70 Authorization: Digest realm="madduck.net",nonce="57cc0be7",algorithm=MD5,username="e65",uri="sip:sip.madduck.net",response="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" Content-Length: 0 <--- Transmitting (NAT) to 86.197.113.72:5060 ---> OPTIONS sip:e65 at 86.197.113.72 SIP/2.0 Via: SIP/2.0/UDP 77.109.139.86:5060;branch=z9hG4bK63402845;rport Max-Forwards: 70 From: "asterisk" <sip:asterisk at 77.109.139.86>;tag=as1ea2786a To: <sip:e65 at 86.197.113.72> Contact: <sip:asterisk at 77.109.139.86> Call-ID: 42551854654a3fac7a4f56a66297ebbe at 77.109.139.86 CSeq: 102 OPTIONS User-Agent: madduck.net asterisk Date: Sat, 12 Sep 2009 07:56:31 GMT Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO Supported: replaces, timer Content-Length: 0 <--- Transmitting (NAT) to 86.197.113.72:5060 ---> SIP/2.0 200 OK Via: SIP/2.0/UDP 86.197.113.72:5060;branch=z9hG4bKd5s6ucjf69cj5d7df8du9t3;received=86.197.113.72;rport=5060 From: <sip:e65 at madduck.net>;tag=oqank6u9klhc7k0b0hor To: <sip:e65 at madduck.net>;tag=as0ad61fc6 Call-ID: WWBW6W58oIes2whNLJyd_xxOEjFYl9 CSeq: 1396 REGISTER Server: madduck.net asterisk Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO Supported: replaces, timer Expires: 3600 Contact: <sip:e65 at 86.197.113.72>;expires=3600 Date: Sat, 12 Sep 2009 07:56:31 GMT Content-Length: 0 <--- SIP read from UDP:86.197.113.72:5060 ---> SIP/2.0 200 OK Via: SIP/2.0/UDP 77.109.139.86:5060;branch=z9hG4bK63402845;rport=5060;received=77.109.139.86 To: <sip:e65 at 86.197.113.72>;tag=8497k6qgg9hc6ve50s89 From: "asterisk" <sip:asterisk at 77.109.139.86>;tag=as1ea2786a Call-ID: 42551854654a3fac7a4f56a66297ebbe at 77.109.139.86 CSeq: 102 OPTIONS Content-Length: 0 -- martin | http://madduck.net/ | http://two.sentenc.es/ "not the truth in whose possession any man is, or thinks he is, but the honest effort he has made to find out the truth, is what constitutes the worth of man." -- gotthold lessing spamtraps: madduck.bogus at madduck.net -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 198 bytes Desc: Digital signature (see http://martin-krafft.net/gpg/) Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20090912/cc24ecb8/attachment.pgp
Martin, sounds like the hiccup my E71 had once. I think the symptoms were identical. Changing the transport type from Auto to UDP solved the problem for me. The Auto setting worked, but only sometimes. Maybe the E65 is similar... Luki 2009/9/12 martin f krafft <madduck at madduck.net>:> Hey folks, > > I am trying to get an E65 to connect to asterisk, and I would really > appreciate a second set of eyes. The SIP dialog completes fine, but > the phone subsequently says "Registration failed". > > I am in a network that has what seems to be a SIP-capable NAT > gateway, but the asterisk is configured nat=yes anyway. Using > a softphone (twinkle), I can connect just fine, SIP and RTP work. > > But when the E65 tries to connect, it seems to complete the SIP > REGISTER dialog, but then it'll say "Registration failed":