Fond the issue. The Orange part could NOT at the end of file. it will report the error: 1 more #!if[n]def as #!endif
Although the kamailio start and freeswitch working. But the SIP message is NOT process well. kamailio Always reply 480 Temoraritly Unavailable.
#!ifdef WITH_FREESWITCH
failure_route[FAIL_FSVBOX] {
#!ifdef WITH_NAT
if (is_method("INVITE")
&& (isbflagset(FLB_NATB) || isflagset(FLT_NATS))) {
unforce_rtp_proxy();
}
#!endif
if (t_is_canceled()) {
exit;
}
if (t_check_status("486|408")) {
# re-route to FreeSWITCH VoiceMail
$rU = $avp(callee);
route(FSVBOX);
}
}
#!endif
# Manage failure routing cases
failure_route[MANAGE_FAILURE] {
route(NATMANAGE);
if (t_is_canceled()) exit;
#!ifdef WITH_BLOCK3XX
# block call redirect based on 3xx replies.
if (t_check_status("3[0-9][0-9]")) {
t_reply("404","Not found");
exit;
}
#!endif
#!ifdef WITH_BLOCK401407
# block call redirect based on 401, 407 replies.
if (t_check_status("401|407")) {
t_reply("404","Not found");
exit;
}
#!endif
#!ifdef WITH_VOICEMAIL
# serial forking
# - route to voicemail on busy or no answer (timeout)
if (t_check_status("486|408")) {
$du = $null;
route(TOVOICEMAIL);
exit;
}
#!endif
return;
}
Hi Sir/Mada,
modified the kamailio.cfg file, add WITH_FREESWITCH parts, then kamailio could NOT start up.
Could you please help check, what should be modified to fit the version 5.6£¿
Thanks£¡
BR£¬
Sparkle Zou