[Users] Re: [Serusers] Multi-domain setup problem

Bogdan-Andrei Iancu bogdan at voice-system.ro
Tue Nov 15 12:44:27 CET 2005


Hi Daryl,

just setting a new domains in domain tables is not enough. You also need 
to perform some script changes like:
    replace all tests like: uri==myself with is_uri_host_local() and 
from==myself with is_from_local().
Please see http://www.openser.org/docs/modules/1.1.x/domain.html

If you still have problems, try to insert log messages (use xlog) in 
order to debug and trace your script.

regards,
bogdan

Daryl Sanders wrote:

>Hi Everyone,
>
>I just added a second domain to my openser box and screwed things up somehow.
>Maybe someone can help figure out what's going on.
>I'm using the new onsip config (unmodified except IPs & replacing
>breaks w/returns).
>I'm using mediaproxy for NAT. Everything worked properly prior to
>adding the new domain.
>I did add the new domain to the domain table, and have loaded the
>domain module with modparams as follows.
>
>modparam("domain", "db_url", "mysql://openser:mypass@myhost/openser")
>modparam("domain", "db_mode", 1)
>modparam("domain", "domain_table", "domain")
>modparam("domain", "domain_col", "domain")
>
>Existing domain: sip1.mydomain.com
>New domain: sip1.mydomain.com
>
>user1: X-Lite (behind NAT)
>private-IP (192.168.x.x)
>Registers using domain sip1.mydomain.com
>
>user2: Linksys PAP2-NA
>public-IP (same subnet as Utsarcom)
>Registers using domain sip1.mydomain.com
>
>user3: Utstarcom iAN-02EX
>public-IP (63.225.x.x)
>Registers using domain sip2.mydomain.com
>
>Here is what happens now...
>
>- All users can register fine.
>- user1 & user2 can only receives calls from user3 (can't call others
>or pstn , 407 Proxy Auth Required)
>- user3 is the only one who can call others (calls to user1,user2, &
>pstn are fine)
>
>It's probably just something simple I missed, but I can't seem to
>figure it out. As always, thanks for your assistance.
>
>- Daryl
>
>_______________________________________________
>Serusers mailing list
>Serusers at iptel.org
>http://mail.iptel.org/mailman/listinfo/serusers
>
>  
>





More information about the sr-users mailing list