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 [EMAIL PROTECTED] *and* [EMAIL PROTECTED]


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 [EMAIL PROTECTED] in the first invite, but thereafter for some reason OpenSER changes it to just [EMAIL PROTECTED] 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 [EMAIL PROTECTED] to [EMAIL PROTECTED] 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

_______________________________________________
Users mailing list
[email protected]
http://openser.org/cgi-bin/mailman/listinfo/users

Reply via email to