[SR-Users] About kamailio + freeswitch issue on Kamailio v5.6

SparkleZou sparklezou at 126.com
Mon Oct 10 10:30:06 CEST 2022


Hi Sir/Mada,


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


It's really weird.


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;
}




BR,
Sparkle Zou










At 2022-10-10 10:24:40, "SparkleZou" <sparklezou at 126.com> wrote:

Hi Sir/Mada,


I'm trying to integrate kamailio + freeswitch, according to the manual http://kb.asipto.com/freeswitch:kamailio-3.3.x-freeswitch-1.2.x-sbc on Kamailio v5.6


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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20221010/25ea65a0/attachment.htm>


More information about the sr-users mailing list