[Home]

Summary:ASTERISK-17250: [patch] registration rejected - not a local domain
Reporter:Holger Hornung (netview)Labels:patch
Date Opened:2011-01-14 11:20:51.000-0600Date Closed:
Priority:MinorRegression?No
Status:Open/NewComponents:Channels/chan_sip/Registration
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) chan_sip.c.patch.txt
( 1) reg.patch
Description:I have an older phone from Siemens (S35) which sents the port number as a suffix together with the sip-uri. The registration is denied with message 'Registration from 'alix <sip:S35-WLAN@alix.mydomain.de:5060>' failed for '10.0.0.28:1036' - Not a local domain'
because allowguest is set to 'no'.
It seems that the whole string 'alix.mydomain.de:5060' is compared against the  'domain=alix.mydomain.de' which is not correct (* 1.6.2 doesn't reject the register).

REGISTER sip:alix.mydomain.de:5060 SIP/2.0
Max-Forwards: 70
Content-Length: 0
Via: SIP/2.0/UDP 10.0.0.28:5060;branch=z9hG4bK18aa37e0a
Call-ID: 383939451fefab8
From: alix <sip:S35-WLAN@alix.mydomain.de:5060>;tag=bd3cbcfcfdd2b02;epid=SC6770b0
To: alix <sip:S35-WLAN@alix.mydomain.de:5060>
CSeq: 1957876956 REGISTER
Contact: alix <sip:S35-WLAN@10.0.0.28:5060;transport=udp>;expires=3605
User-Agent: Gigaset S35 WLAN M5T SIP-UA SAFE/v3.6.4.8
Comments:By: Holger Hornung (netview) 2011-01-16 09:50:27.000-0600

The attached patch will fix this!

By: Holger Hornung (netview) 2011-01-19 09:57:38.000-0600

This patch was accepted for asterisk 1.6.
Should be also in 1.8?

By: Pimaal (arapaho) 2011-01-31 12:13:20.000-0600

We've got the same problem last week while migrating from 1.6.2.14 to 1.8.2.2.
The phones are Aastra 6755i, with november 2010 firmware.

The migration done, the phones were not able to register with asterisk; the debug message was:
[2011-01-27 19:15:17] NOTICE[7705] chan_sip.c: Registration from '<sip:1111@a.b.c.d:5060>' failed for 'w.x.y.z:5060' - Not a local domain

The only one SIP Domain was:
a.b.c.d
so we added
a.b.c.d:5060
as another SIP Domain and all registrations went right.

Sorry, we do not test the patch attached to this report.

By: SplatNIX (uxbod) 2012-02-13 09:00:26.652-0600

The issue still existed in 1.8.8.0 for which I created the following patch against the latest release 1.8.9.2 which appears to resolve the problem.