Dear Fred,
I already add module lcr, but found error when searching pvar "ddn" inside
source code core/pvapi.c at line 923, as shown captured below :
Apr 6 10:26:50 kamal /usr/sbin/kamailio[180954]: ERROR: <core>
[core/pvapi.c:923]: pv_parse_spec2(): error searching pvar "ddn"
Apr 6 10:26:50 kamal /usr/sbin/kamailio[180954]: ERROR: <core>
[core/pvapi.c:1126]: pv_parse_spec2(): wrong char [n/110] in [$ddn] at [3
(0)]
Apr 6 10:26:50 kamal /usr/sbin/kamailio[180954]: ERROR: xlog [xlog.c:511]:
xdbg_fixup_helper(): wrong format[Domain of destination: $ddn]
Apr 6 10:26:50 kamal /usr/sbin/kamailio[180954]: ERROR: <core>
[core/route.c:1166]: fix_actions(): fixing failed (code=-1) at
cfg:/etc/kamailio/kamailio.cfg:901
Apr 6 10:26:50 kamal /usr/sbin/kamailio[180954]: ERROR: <core>
[core/route.c:1166]: fix_actions(): fixing failed (code=-1) at
cfg:/etc/kamailio/kamailio.cfg:903
Apr 6 10:26:50 kamal /usr/sbin/kamailio[180954]: ERROR: <core>
[core/route.c:1166]: fix_actions(): fixing failed (code=-1) at
cfg:/etc/kamailio/kamailio.cfg:918
The question are, how to define correct "INVITE" methode inside route[LCR]
which I already defined inside kamailio.cfg:
route[LCR] {
if (status=="200")
{
xlog("LCR: Inside the LCR routen");
}
if(method=="INVITE")
{
xlog("We got an invite");
if(!load_gws(1, $rU, $var(caller_uri))) {
xlog("Couldn't load gateways");
sl_send_reply("500", "Server Internal Error - Cannot load
gateways");
exit;
} else {
xlog("GW Selected '$avp(i:709)'n");
xlog("Domain of destination: $ddn");
xlog("To URI: $tun");
}
if(!next_gw()) {
xlog("Couldn't proceed to next gateway");
sl_send_reply("503", "Service not available, no gateways found");
exit;
} else {
xlog("Calling the first matched gatewayn");
xlog("ruri_user_avp: '$avp(i:500)'n");
xlog("To URI after next_gw: $tun");
xlog("Request URI: $rUn");
}
}
}
Warm Regards,
Pada tanggal Jum, 1 Apr 2022 pukul 19.51 Fred Posner <fred(a)palner.com>
menulis:
On 4/1/22 06:48, bayu p wrote:
[snip]
but, i cannot found further tutorial how use kamctl.
Could you please share, the detail/further tutorial and example of
kamctl usage..
[...]
It looks like there are some aspects of the commands you're hitting
incorrectly as well as perhaps not having the modules loaded or configured.
You can also try with kamcmd... such as kamcmd core.uptime or kamcmd
core.info
Fred Posner |
palner.com
Matrix:
https://matrix.to/#/@fred:matrix.lod.com
o: +1 (212) 937-7844
__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
* sr-users(a)lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to
the sender!
Edit mailing list options or unsubscribe:
*
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users