[asterisk-dev] Re: SIP domain support for authentication and
	virtual hosting
    Barry Flanagan 
    barryf-lists at flanagan.ie
       
    Mon Feb  6 05:23:10 MST 2006
    
    
  
Eric "ManxPower" Wieling wrote:
> Olle E Johansson wrote:
> 
>> Barry Flanagan wrote:
>>
>>> Hi,
>>>
>>> Can someone explain to me or point me in the direction of documentation
>>> for the domain support feature in 1.2.x?
>>>
>>> Specifically I need to be able to have sip users who are authenticated
>>> as user at domain.com.
>>>
>> For authentication, we only look at
>>
>> 1) Whether the domain is a domain we host
>> 2) If the user (regardless of domain) is a user we know
>>
>> The user namespace is common for all hosted domains, so you can't have 
>> barry at domain1 *and* barry at domain2.
> 
> 
> The workaround for this is to use the MAC address of the device as it's 
> SIP username, then deal with mapping barry at domain1 and barry at domain2 to 
> the correct SIP user by using extensions.conf.
> 
I have solved this by using the OpenSER uac_replace_from function to 
rewrite user at domain.com to user_domain.com and so in my sip.conf set up 
the users as user_domain.com. Appears to work fine.
Regards,
-- 
-Barry Flanagan
    
    
More information about the asterisk-dev
mailing list