[Users] Using uac_replace_from to munge username between ser and Asterisk?
Barry Flanagan
barryf-lists at flanagan.ie
Mon Jan 30 19:40:40 CET 2006
Bogdan-Andrei Iancu wrote:
> Hi Barry,
>
> I've seen some time ago a similar post - a suggested solution was to
> enable multidomain support into Asterisk in order to avoid user
> overlapping.
Apparently it is not possible yet in Asterisk. Answer from the Asterisk
list:
> 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.
So, the only way around it that I can see is to somehow have OpenSER
change the username to username_domain so that each will be unique.
It looks like uac_from_replace should handle this. I have tried it, and
I can see that Asterisk does in fact get user_domain at domain in the first
invite, but thereafter for some reason OpenSER changes it to just
_ at domain for subsequent requests.
Regards,
-Barry
>
> regards,
> bogdan
>
> Barry Flanagan wrote:
>
>> Hi,
>>
>> I am trying to get a multi-domain setup working between OpenSER and
>> Asterisk (PSTN gateway and Voicemail).
>>
>> It appears that I need to munge the username before it goes to
>> Asterisk so that it includes the domain element, otherwise there is
>> clashing in the username namespace on Asterisk.
>>
>> It looks like I should be able to use uac_replace_from to change the
>> From URI from user at domain.com to user_domain at domain.com so that then I
>> can set up the users in Asterisk as [user_domain]
>>
>> Does this sound sane, and could someone tell me how I can accomplish
>> this in OpenSER? I have tried a few things but they all end up as bad
>> headers.
>>
>> Thanks in advance.
>>
>
--
-Barry Flanagan
More information about the sr-users
mailing list