[Serusers] Error in routing

GMario gianmario.mereu at ca.infn.it
Tue Feb 13 09:41:59 CET 2007


Hi all, 
I'm trying to set-up a server ser. I have a basic installation with
mysql. My script is a basic script, but when i try to make a phone
between two user (or send a text message), the call isn't go and in the
standard output i read this error:

ERROR: parse_uri: uri too short: <NULL> (4)
ERROR: uri2proxy: bad_uri: NULL

With google i don't found anything.
(in attachment i put my config file)

Anyone can help me?

Tanks in advance.

-- 
GMario

PS: Sorry for my English, this one is my first email write in this
language.
-------------- next part --------------
#debug=3
fork=no
log_stderror=yes

listen=my-ip-address    # INSERT YOUR IP ADDRESS HERE
port=5060
children=4

dns=no
rev_dns=no
fifo="/tmp/ser_fifo"
fifo_mode=0777
fifo_db_url="mysql://user:password@hostname/dbname"


loadmodule "./lib/ser/modules/xlog.so"

loadmodule  "./lib/ser/modules/mysql.so"
loadmodule  "./lib/ser/modules/sl.so"
loadmodule  "./lib/ser/modules/tm.so"

loadmodule  "./lib/ser/modules/msilo.so"

loadmodule  "./lib/ser/modules/rr.so"
loadmodule  "./lib/ser/modules/maxfwd.so"
loadmodule  "./lib/ser/modules/usrloc.so"
loadmodule  "./lib/ser/modules/registrar.so"
loadmodule  "./lib/ser/modules/auth.so"
loadmodule  "./lib/ser/modules/auth_db.so"
loadmodule  "./lib/ser/modules/uri_db.so"

modparam("msilo|auth_db|uri_db|usrloc", "db_url", "mysql://user:password@hostname/dbname")
modparam("auth_db", "calculate_ha1", 1)
modparam("auth_db", "password_column", "password")
modparam("usrloc", "db_mode", 2)
modparam("rr", "enable_full_lr", 1)

# parametri per il modulo msilo
modparam("msilo", "db_table", "silo")
modparam("msilo", "registrar", "sip:registrar at hostname")

route{
        if (!mf_process_maxfwd_header("10")) {
                sl_send_reply("483","Too Many Hops");
                break;
        };

        if ( msg:len > max_len ) {
                sl_send_reply("513", "Message too big");
                break;
        };



        record_route(); 
        if (loose_route()) {
                t_relay();
                break;
        };

        if (uri==myself) {

                lookup("aliases");


                if (method=="REGISTER") {

                        if (!www_authorize("hostname", "subscriber")) {
                                www_challenge("hostname", "0");
                                break;
                        };
                        save("location");
        `               break;
                };

                if (!lookup("location")) {
                        sl_send_reply("404", "Not Found");
                        break;
                };
        }; 
        if (!t_relay()) {
                sl_reply_error();
        };
}



More information about the sr-users mailing list