Discussion:
[SR-Users] KAMILIO-4.1.4 REGISTRATION ISSUE
Cibin Paul
2014-07-16 11:38:51 UTC
Permalink
I have kamailio 4.1.4 installed with DB Engine as mysql. I added users using the command kamctl add and I could see the entry in subscriber table. When I am trying to register, kamailio is accepting any combination of username and password not listed in the table. What could be wrong? I followed the INSTALLATION document provided in the source file. Please help me troubleshoot this. Kamailio is up and running and not throwing any errors. kamctl moni shows 1 user registered. But the registered user doesn’t even exist

Server Details

OS : Centos 5.5
Kamailio version - 4.1.4
MySQL version - 5.0.95

Cibin
g***@public.gmane.org
2014-07-16 12:15:20 UTC
Permalink
Hello,

And you have:

#!define WITH_MYSQL
and
#!define WITH_AUTH

in you kamailio.cfg?

Best,

Teijo
Post by Cibin Paul
I have kamailio 4.1.4 installed with DB Engine as mysql. I added users using the command kamctl add and I could see the entry in subscriber table. When I am trying to register, kamailio is accepting any combination of username and password not listed in the table. What could be wrong? I followed the INSTALLATION document provided in the source file. Please help me troubleshoot this. Kamailio is up and running and not throwing any errors. kamctl moni shows 1 user registered. But the registered user doesn’t even exist
Server Details
OS : Centos 5.5
Kamailio version - 4.1.4
MySQL version - 5.0.95
Cibin
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Cibin Paul
2014-07-16 12:21:43 UTC
Permalink
Hello,

I have the following configuration
#!ifdef WITH_MYSQL
loadmodule “db_mysql.so"

#!ifdef WITH_AUTH
loadmodule "auth.so"
loadmodule "auth_db.so"

#!ifdef WITH_USRLOCDB
modparam("usrloc", "db_url", DBURL)
modparam("usrloc", "db_mode", 2)
modparam("usrloc", "use_domain", MULTIDOMAIN)
#!endif

#!ifdef WITH_AUTH
modparam("auth_db", "db_url", DBURL)
modparam("auth_db", "calculate_ha1", yes)
modparam("auth_db", "password_column", "password")
modparam("auth_db", "load_credentials", "")
modparam("auth_db", "use_domain", MULTIDOMAIN)

Cibin
Post by g***@public.gmane.org
Hello,
#!define WITH_MYSQL
and
#!define WITH_AUTH
in you kamailio.cfg?
Best,
Teijo
Post by Cibin Paul
I have kamailio 4.1.4 installed with DB Engine as mysql. I added users using the command kamctl add and I could see the entry in subscriber table. When I am trying to register, kamailio is accepting any combination of username and password not listed in the table. What could be wrong? I followed the INSTALLATION document provided in the source file. Please help me troubleshoot this. Kamailio is up and running and not throwing any errors. kamctl moni shows 1 user registered. But the registered user doesn’t even exist
Server Details
OS : Centos 5.5
Kamailio version - 4.1.4
MySQL version - 5.0.95
Cibin
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
g***@public.gmane.org
2014-07-16 12:46:35 UTC
Permalink
Hello,

To get code within #!ifdef block to be executed, yo have to place
corresponding #!define statements on top of kamailio.cfg, just after
#!KAMAILIO line.

Best,

Teijo
Post by g***@public.gmane.org
Hello,
I have the following configuration
#!ifdef WITH_MYSQL
loadmodule “db_mysql.so"
#!ifdef WITH_AUTH
loadmodule "auth.so"
loadmodule "auth_db.so"
#!ifdef WITH_USRLOCDB
modparam("usrloc", "db_url", DBURL)
modparam("usrloc", "db_mode", 2)
modparam("usrloc", "use_domain", MULTIDOMAIN)
#!endif
#!ifdef WITH_AUTH
modparam("auth_db", "db_url", DBURL)
modparam("auth_db", "calculate_ha1", yes)
modparam("auth_db", "password_column", "password")
modparam("auth_db", "load_credentials", "")
modparam("auth_db", "use_domain", MULTIDOMAIN)
Cibin
Post by g***@public.gmane.org
Hello,
#!define WITH_MYSQL
and
#!define WITH_AUTH
in you kamailio.cfg?
Best,
Teijo
Post by Cibin Paul
I have kamailio 4.1.4 installed with DB Engine as mysql. I added users using the command kamctl add and I could see the entry in subscriber table. When I am trying to register, kamailio is accepting any combination of username and password not listed in the table. What could be wrong? I followed the INSTALLATION document provided in the source file. Please help me troubleshoot this. Kamailio is up and running and not throwing any errors. kamctl moni shows 1 user registered. But the registered user doesn’t even exist
Server Details
OS : Centos 5.5
Kamailio version - 4.1.4
MySQL version - 5.0.95
Cibin
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Cibin Paul
2014-07-16 12:53:34 UTC
Permalink
Hello,

It is working now. Thanks for your prompt help.

Regards
Cibin
Post by g***@public.gmane.org
Hello,
To get code within #!ifdef block to be executed, yo have to place corresponding #!define statements on top of kamailio.cfg, just after #!KAMAILIO line.
Best,
Teijo
Post by g***@public.gmane.org
Hello,
I have the following configuration
#!ifdef WITH_MYSQL
loadmodule “db_mysql.so"
#!ifdef WITH_AUTH
loadmodule "auth.so"
loadmodule "auth_db.so"
#!ifdef WITH_USRLOCDB
modparam("usrloc", "db_url", DBURL)
modparam("usrloc", "db_mode", 2)
modparam("usrloc", "use_domain", MULTIDOMAIN)
#!endif
#!ifdef WITH_AUTH
modparam("auth_db", "db_url", DBURL)
modparam("auth_db", "calculate_ha1", yes)
modparam("auth_db", "password_column", "password")
modparam("auth_db", "load_credentials", "")
modparam("auth_db", "use_domain", MULTIDOMAIN)
Cibin
Post by g***@public.gmane.org
Hello,
#!define WITH_MYSQL
and
#!define WITH_AUTH
in you kamailio.cfg?
Best,
Teijo
Post by Cibin Paul
I have kamailio 4.1.4 installed with DB Engine as mysql. I added users using the command kamctl add and I could see the entry in subscriber table. When I am trying to register, kamailio is accepting any combination of username and password not listed in the table. What could be wrong? I followed the INSTALLATION document provided in the source file. Please help me troubleshoot this. Kamailio is up and running and not throwing any errors. kamctl moni shows 1 user registered. But the registered user doesn’t even exist
Server Details
OS : Centos 5.5
Kamailio version - 4.1.4
MySQL version - 5.0.95
Cibin
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Loading...