[Serusers] Serweb does not auto increment numerical alias

Holden Hao holdenhao at gmail.com
Mon Jan 31 16:37:21 CET 2005


I have installed ser_0.8.14_i386.deb on Debian Testing (Sarge).  I
have also installed from CVS serweb rel_0_8_12. I found solutions to
some of the problems I encountered by searching the archives but I
just could not find a solution for my constant numerical alias
problem.

Serweb is supposed to automatically increment numerical aliases for
new users but the users that i tried adding, both have the same
numerical aliases (first_alias_number).  What coud be the problem?

Thanks in advance.


Holden


Diagnostics:
----------------------------------------------------
test# serctl alias show 82000
200 OK
<sip:johnny at test.net>;q=1.00;expires=567636634
<sip:kyne at test.net>;q=1.00;expires=567639620
----------------------------------------------------

test# serctl alias show johnny
404 Username johnny in table aliases not found
-----------------------------------------------------


Below are my configs:

ser.cfg
--------------------------------------------------
fifo="/tmp/ser_fifo"
fifo_mode=438
 
loadmodule "/usr/lib/ser/modules/mysql.so"
 
loadmodule "/usr/lib/ser/modules/sl.so"
loadmodule "/usr/lib/ser/modules/tm.so"
loadmodule "/usr/lib/ser/modules/rr.so"
loadmodule "/usr/lib/ser/modules/maxfwd.so"
loadmodule "/usr/lib/ser/modules/usrloc.so"
loadmodule "/usr/lib/ser/modules/registrar.so"
 
loadmodule "/usr/lib/ser/modules/auth.so"
loadmodule "/usr/lib/ser/modules/auth_db.so"
 
 
 
 
modparam("usrloc", "db_mode", 2)
 
modparam("auth_db", "calculate_ha1", yes)
modparam("auth_db", "password_column", "password")
 
modparam("rr", "enable_full_lr", 1)
 
 
 
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("test.net", "subscriber")) {
                                www_challenge("test.net", "0");
                                break;
                        };
 
                        save("location");
                        break;
                };
 
                if (!lookup("location")) {
                        sl_send_reply("404", "Not Found");
                        break;
                };
        };
        if (!t_relay()) {
                sl_reply_error();
        };
 
}

Portions of config.php
----------------------------------------------
 $this->db_host="localhost";             //database host
                $this->db_name="ser";                   //database name
                $this->db_user="ser";                   //database
conection user
                $this->db_pass="heslo";                 //database
conection password
 
 
                $this->root_path="/webser/html/";
                $this->root_uri="http://".$_SERVER['SERVER_NAME'];
 
               
                $this->zonetab_file =   "/usr/share/zoneinfo/zone.tab";
                $this->mail_header_from="registrar at test.net";
                $this->web_contact="sip:daemon at 192.168.2.16";
               
                $this->voice_silo_dir = '/var/spool/voicemail/';
              
                $this->greetings_spool_dir = '/var/greetings/';
               
                $this->fifo_server="/tmp/ser_fifo";
               
                $this->prolog="/webser/html/prolog.html";
                $this->separator="/webser/html/separator.html";
                $this->epilog="/webser/html/epilog.html";
 
                $this->title="iptel.org, the IP Telephony Site";
 
              
                $this->realm=$this->domainname=$this->default_domain="test.net";
              
                $this->first_alias_number=82000;
 
 
                $this->infomail =       "info at test.net";
              
                $this->regmail  =       "registrar at test.net";




More information about the sr-users mailing list