Hi Team,
Getting error in auth modules during Kamalio 5.2 installation and doing SIP
routing, anyone know this why i am getting below error..??
Please support..!!
Error Snapshot
========================================
(2807) ERROR: <core> [core/cfg.y:3370]: yyparse(): cfg. parser: failed to
find command www_authorize (params 2)
0(2807) CRITICAL: <core> [core/cfg.y:3510]: yyerror_at(): parse error in
config file /etc/kamailio/kamailio.cfg, line 1081, column 48: unknown
command, missing loadmodule?
0(2807) ERROR: <core> [core/cfg.y:3370]: yyparse(): cfg. parser: failed to
find command www_challenge (params 2)
0(2807) CRITICAL: <core> [core/cfg.y:3510]: yyerror_at(): parse error in
config file /etc/kamailio/kamailio.cfg, line 1082, column 29: unknown
command, missing loadmodule?
0(2807) ERROR: <core> [core/cfg.y:3370]: yyparse(): cfg. parser: failed to
find command consume_credentials (params 0)
0(2807) CRITICAL: <core> [core/cfg.y:3510]: yyerror_at(): parse error in
config file /etc/kamailio/kamailio.cfg, line 1086, column 22: unknown
command, missing loadmodule?
0(2807) ERROR: <core> [core/cfg.y:3370]: yyparse(): cfg. parser: failed to
find command proxy_authorize (params 2)
0(2807) CRITICAL: <core> [core/cfg.y:3510]: yyerror_at(): parse error in
config file /etc/kamailio/kamailio.cfg, line 1097, column 41: unknown
command, missing loadmodule?
0(2807) ERROR: <core> [core/cfg.y:3370]: yyparse(): cfg. parser: failed to
find command proxy_challenge (params 2)
0(2807) CRITICAL: <core> [core/cfg.y:3510]: yyerror_at(): parse error in
config file /etc/kamailio/kamailio.cfg, line 1098, column 31: unknown
command, missing loadmodule?
0(2807) ERROR: <core> [core/cfg.y:3370]: yyparse(): cfg. parser: failed to
find command consume_credentials (params 0)
0(2807) CRITICAL: <core> [core/cfg.y:3510]: yyerror_at(): parse error in
config file /etc/kamailio/kamailio.cfg, line 1102, column 22: unknown
command, missing loadmodule?
========================================
Commands in Kamalio.cfg
===================================================
route[2] {
# -----------------------------------------------------------------
# REGISTER Message Handler
# ----------------------------------------------------------------
if (!www_authorize("192.168.1.67","subscriber")) {
www_challenge("$td","0");
break;
};
consume_credentials();
if (!save("location")) {
sl_reply_error();
};
}
route[3] {
# -----------------------------------------------------------------
# INVITE Message Handler
# -----------------------------------------------------------------
if (!proxy_authorize("$fd","subscriber")) {
proxy_challenge("$fd","0");
break;
};
consume_credentials();
# Forward to SDIN S3
rewritehostport("uk.sdin.bt.net:5060");
forward(uk.sdin.bt.net,5060);
break;
}
route[4] {
# -----------------------------------------------------------------
# CANCEL or ACK Message Handler
# -----------------------------------------------------------------
# Forward to SDIN S3
rewritehostport("uk.sdin.bt.net:5060");
forward(uk.sdin.bt.net,5060);
break;
}
========================================================