Goal is to server multiple sip domains in one instance of OpenSer or Ser
Consider if you want to serve more domain on one server. Don't mess it with aliasing.
Alias: jan@software.cesnet.cz and jan@hardware.cesnet.cz lead to one identity
Multidomain: jan@software.cesnet.cz and jan@hardware.cesnet.cz can lead to diferent identity.
It also used for completely different domains like sipdomainA adn sipdomainB in one server.
loadmodule "/usr/local/lib/ser/modules/domain.so" |
modparam("usrloc|registrar|auth_db|avpops|group", "use_domain", 1) |
if (!proxy_authorize("", "subscriber")) { proxy_challenge("", "0"); break; }; if (!www_authorize("", "subscriber")) { www_challenge("", "0"); break; }; |
Domains can be added or removed by serctl without restarting the server.
Be careful if you set SIP_DOMAIN, rather delete it to avoid confusion. If you forget to use domain part when you manipulate with users SIP_DOMAIN is used. If it is not set you will warned.
Don't forget to set SRVs (and NAPTRs) for all server domains.
Set user accounts in different domains (with different passwords), register clients and try to call them.