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
- Whether the domain is a domain we host
- 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@domain1 *and* barry@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@domain in the first invite, but thereafter for some reason OpenSER changes it to just _@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@domain.com to user_domain@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.