|
@@ -255,6 +255,11 @@ dberror:
|
|
*/
|
|
*/
|
|
int reload_address_table_cmd(void)
|
|
int reload_address_table_cmd(void)
|
|
{
|
|
{
|
|
|
|
+ if(!db_url.s) {
|
|
|
|
+ LM_ERR("db_url not set\n");
|
|
|
|
+ return -1;
|
|
|
|
+ }
|
|
|
|
+
|
|
if (!db_handle) {
|
|
if (!db_handle) {
|
|
db_handle = perm_dbf.init(&db_url);
|
|
db_handle = perm_dbf.init(&db_url);
|
|
if (!db_handle) {
|
|
if (!db_handle) {
|
|
@@ -621,4 +626,4 @@ int allow_address_group(struct sip_msg* _msg, char* _addr, char* _port)
|
|
}
|
|
}
|
|
|
|
|
|
return ki_allow_address_group(_msg, &ips, port);
|
|
return ki_allow_address_group(_msg, &ips, port);
|
|
-}
|
|
|
|
|
|
+}
|