<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">I have opensips database in a separate machine and for the most part the connection work fine, but when I use credential opensips look at the localhost database not at the remote.<br><br>My config:<br><br>modparam("mi_fifo", "fifo_name", "/tmp/opensips_fifo")<br>modparam("usrloc", "db_mode", 2)<br>modparam("auth_db", "calculate_ha1", yes)<br>modparam("auth_db", "password_column", "password")<br>modparam("rr", "enable_full_lr", 1)<br>modparam("auth_db|permissions|uri_db|usrloc","db_url","mysql://opensips:opensipsrw@192.168.1.104/opensips")<br>modparam("permissions", "db_mode", 1)<br>modparam("permissions", "trusted_table", "trusted")<br>modparam("avpops", "avp_url", "mysql://opensips:opensipsrw@192.168.1.104/opensips")<br>modparam("avpops", "avp_table", "usr_preferences")<br>modparam("uri_db", "use_uri_table", 0)<br>modparam("uri_db", "db_url", "")<br><br>In the
following statement only look at the database of the local machine:<br><br> if (uri=~"^sip:[2-9][0-9]{9}@") {<br> if (is_user_in("credentials","local")) {<br> #prefix("+1");<br> route(4);<br> exit;<br> } else {<br> sl_send_reply("403", "No permissions for local calls");<br> exit;<br> };<br><br>Any Idea?<br><br>Thanks,<br><br>Gonzalo<br></td></tr></table><br>