Hi ,
I have beeen configuring imc for quite some time and
finally i got some error message that is related to IMC. thanks to you
for helping me reach this point. With the error message, i think i
should be able to rectify it with your help.My error message reads the
following ,
ERROR:imc:imc_handle_message: room [q] does not exist!
ERROR:imc:imc_manager: failed to handle 'message' .
kindly guide me how to rectify the error..
--
Regards,
Rajesh
Dear Experts,
Iam configuring IMC and i would like to know
what does the following line mean.
xdbg("script: message from [$fu] chatroom000 [$ru] msg [$rb]\n");
.I get error in this line when i start kamailio. what does $fu ,$ru ,
$rb mean.
Thanks
Hi List,
I am using kamailio 1.4 and authenticating INVITE if the source ip address
is not in trusted table but one of the IP which is not in the trusted table
was able to bypass INVITE authentication, . I don’t have SIP traces saved
from the called but when that was happening I could see that the INVITE
didn’t have auth credentials but caller was able to bypass authentication
and was sending calls to my upstream gateway.
Caller’s IP is definitely not in the trusted table, I am just wondering is
it something wrong in my script or similar issue has reported before ;
Thanks in Advance
Asim
route[2] {
xlog("L_INFO", "[ROUTE-2] Received initial INVITE from $si\n");
setflag(2);
setflag(3);
if(is_from_local()) {
if(!allow_trusted()) {
xlog("L_INFO", "[ROUTE-2 !] Issuing proxy
challenge\n");
if(!proxy_authorize("", "subscriber")) {
proxy_challenge("", "1");
exit;
}
else if(!check_from()) {
xlog("L_INFO", "[ROUTE-2 !] From URI
denied\n");
sl_send_reply("403", "Forbidden");
exit;
}
}
else {
xlog("L_INFO", "[ROUTE-2 !] From URI domain not
local - denied\n");
sl_send_reply("403", "Forbidden");
exit;
}
}
consume_credentials();
xlog("L_INFO", "[ROUTE-2 ->] Authentication credentials valid\n");
if(nat_uac_test("1")) {
xlog("L_INFO", "[ROUTE-2 ->] RFC1918 contact found - fixing
up\n");
fix_nated_contact();
force_rport();
setbflag(7);
}
if(nat_uac_test("8") && search("Content-Type: application/sdp")) {
xlog("L_INFO", "[ROUTE-2 ->] RFC1918 SDP endpoint found -
fixing up\n");
fix_nated_sdp("10");
}
# Apply outbound translations and figure out where to route the
call.
route(4); # this route the calls to upstream gateway.
}
These messages i was getting in syslog
[ROUTE-2] Received initial INVITE from xxx.xxx.xxx.xxx(Caller_IP)
ERROR:auth:consume_credentials: no authorized credentials found (error in
scripts)
[ROUTE-2 ->] Authentication credentials valid
[ROUTE-4] Applying outbound translations to: 0022334455
[ROUTE-4 ->] Translated RURI user part to: 22334455
[ROUTE-4 ->] Gateway election: my_upstream_gateway
[ROUTE-5] Accounting translation: sip:0022334455@my_upstream_gateway
[ROUTE-2 ->] Relaying
On Montag, 7. September 2009, Rajesh wrote:
> > can you do issue a mysql "desc imc_rooms;" on your openser/ kamailio
> > DB to check if the table is correctly setup? And do you configured a
> > database url for the imc module?
>
> Thanks Henning for your prompt reply.
>
> I did give the command desc imc_rooms and found that the table do exist,
> indeed i created them manually before setting up imc module.What else
> could be the cause of the problem.
Hi Rajesh,
please always CC to the list. As hinted in some other mail, perhaps the module
use not the correct DB URL?
I just checked it on my system with 1.5 branch, it loads ok:
Sep 7 12:56:14 ca ../kamailio[9312]: INFO:core:init_mod: initializing module
imc
Sep 7 12:56:14 ca ../kamailio[9312]: DBG:imc:mod_init:
db_url=mysql://XXXX:XXXX@localhost/openser/43/0xb7dd4cac
Sep 7 12:56:14 ca ../kamailio[9312]: DBG:core:find_mod_export: found
<db_bind_api> in module db_mysql [../modules/]
Sep 7 12:56:14 ca ../kamailio[9312]: DBG:core:db_bind_mod: using db bind api
for db_mysql
Sep 7 12:56:14 ca ../kamailio[9312]: DBG:core:db_do_init: connection
0x816ca10 not found in pool
Sep 7 12:56:14 ca ../kamailio[9312]: DBG:db_mysql:db_mysql_new_connection:
opening connection: mysql://xxxx:xxxx@localhost/openser
Sep 7 12:56:14 ca ../kamailio[9312]: DBG:db_mysql:db_mysql_new_connection:
connection type is Localhost via UNIX socket
Sep 7 12:56:14 ca ../kamailio[9312]: DBG:db_mysql:db_mysql_new_connection:
protocol version is 10
Sep 7 12:56:14 ca ../kamailio[9312]: DBG:db_mysql:db_mysql_new_connection:
server version is 5.0.75-0ubuntu10.2
Sep 7 12:56:14 ca ../kamailio[9312]: DBG:core:db_new_result: allocate 28
bytes for result set at 0x816c8f8
Sep 7 12:56:14 ca ../kamailio[9312]: DBG:db_mysql:db_mysql_get_columns: 3
columns returned from the query
Sep 7 12:56:14 ca ../kamailio[9312]: DBG:core:db_allocate_columns: allocate
12 bytes for result names at 0x816caa8
Sep 7 12:56:14 ca ../kamailio[9312]: DBG:core:db_allocate_columns: allocate
12 bytes for result types at 0x816c988
Sep 7 12:56:14 ca ../kamailio[9312]: DBG:db_mysql:db_mysql_get_columns:
allocate 8 bytes for RES_NAMES[0] at 0x816cb60
Sep 7 12:56:14 ca ../kamailio[9312]: DBG:db_mysql:db_mysql_get_columns:
RES_NAMES(0x816cb60)[0]=[name]
Sep 7 12:56:14 ca ../kamailio[9312]: DBG:db_mysql:db_mysql_get_columns: use
DB_STRING result type
Sep 7 12:56:14 ca ../kamailio[9312]: DBG:db_mysql:db_mysql_get_columns:
allocate 8 bytes for RES_NAMES[1] at 0x816cb40
Sep 7 12:56:14 ca ../kamailio[9312]: DBG:db_mysql:db_mysql_get_columns:
RES_NAMES(0x816cb40)[1]=[domain]
Sep 7 12:56:14 ca ../kamailio[9312]: DBG:db_mysql:db_mysql_get_columns: use
DB_STRING result type
Sep 7 12:56:14 ca ../kamailio[9312]: DBG:db_mysql:db_mysql_get_columns:
allocate 8 bytes for RES_NAMES[2] at 0x816c858
Sep 7 12:56:14 ca ../kamailio[9312]: DBG:db_mysql:db_mysql_get_columns:
RES_NAMES(0x816c858)[2]=[flag]
Sep 7 12:56:14 ca ../kamailio[9312]: DBG:db_mysql:db_mysql_get_columns: use
DB_INT result type
Sep 7 12:56:14 ca ../kamailio[9312]: DBG:db_mysql:db_mysql_convert_rows: no
rows returned from the query
Sep 7 12:56:14 ca ../kamailio[9312]: INFO:imc:add_from_db: the query returned
no result
Sep 7 12:56:14 ca ../kamailio[9312]: DBG:core:db_free_columns: freeing 3
columns
Sep 7 12:56:14 ca ../kamailio[9312]: DBG:core:db_free_columns: freeing
RES_NAMES[0] at 0x816cb60
Sep 7 12:56:14 ca ../kamailio[9312]: DBG:core:db_free_columns: freeing
RES_NAMES[1] at 0x816cb40
Sep 7 12:56:14 ca ../kamailio[9312]: DBG:core:db_free_columns: freeing
RES_NAMES[2] at 0x816c858
Sep 7 12:56:14 ca ../kamailio[9312]: DBG:core:db_free_columns: freeing result
names at 0x816caa8
Sep 7 12:56:14 ca ../kamailio[9312]: DBG:core:db_free_columns: freeing result
types at 0x816c988
Sep 7 12:56:14 ca ../kamailio[9312]: DBG:core:db_free_rows: freeing 0 rows
Sep 7 12:56:14 ca ../kamailio[9312]: DBG:core:db_free_result: freeing result
set at 0x816c8f8
Sep 7 12:56:14 ca ../kamailio[9312]: DBG:core:find_cmd_export_t: found
<load_tm>(0) in module tm [../modules/]
Sep 7 12:56:14 ca ../kamailio[9312]: DBG:core:pool_remove: removing
connection from the pool
Sep 7 12:56:14 ca ../kamailio[9312]: DBG:core:init_mod: registering stats for
imc
Sep 7 12:56:14 ca ../kamailio[9312]: DBG:core:init_mod: register MI for imc
Sep 7 12:56:14 ca ../kamailio[9312]: INFO:core:init_mod: initializing module
maxfwd
[..]
I'd suggest that you increase the debug level to '4' in your cfg, and take a
look to the output if the DB credentials are correct.
Regards,
Henning
Dear All,
I havae been trying to configure imc for quite some
time..If any of you have configured IMC successfully, kindly send me the
cfg file .Iam pretty sure that it would help me greatly and reduce my
time taken to implement the module,IMC.I would appreciate your efforts
for sending me the cfg file
Thanks in advance!!!
Dear All,
Am configuring imc for kamailio and i would like to
know , why am i getting the error on starting kamailio.My error is as
follows
" ERROR:db_mysql:db_mysql_submit_query: driver error on query: Unknown
column 'name' in 'field list'
Sep 7 14:23:25 [4034] ERROR:core:db_do_query: error while submitting query
Sep 7 14:23:25 [4034] ERROR:imc:add_from_db: failed to querry table
Sep 7 14:23:25 [4034] ERROR:imc:mod_init: failed to get information from db
Sep 7 14:23:25 [4034] ERROR:core:init_mod: failed to initialize module imc
Sep 7 14:23:25 [4034] ERROR:core:main: error while initializing modules
"
--
Thanks in advance