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:
Versions:Frequency of
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 '' - 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;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@;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 to
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:
so we added
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 for which I created the following patch against the latest release which appears to resolve the problem.