I have Kam207(192.168.100.207) and Kam208(192.168.100.208)
here is Kam207 route:
debug=2
log_stderror=yes
# mpath="/usr/local/lib/kamailio/modules/"
loadmodule "tm.so"
loadmodule "sl.so"
loadmodule "pv.so"
loadmodule "siputils.so"
loadmodule "xlog.so"
loadmodule "ctl.so"
loadmodule "textops.so"
loadmodule "dmq.so"
loadmodule "htable.so"
modparam("tm", "failure_reply_mode", 3)
modparam("tm", "fr_timer", 30000)
modparam("tm", "fr_inv_timer", 120000)
modparam("dmq", "server_address", "sip:192.168.100.207:5060")
modparam("dmq", "notification_address", "sip:192.168.100.208:5060")
modparam("dmq", "multi_notify", 1)
modparam("dmq", "num_workers", 4)
modparam("dmq", "ping_interval", 15)
modparam("htable", "htable", "bancc=>size=10;autoexpire=3600;dmqreplicate=1;")
modparam("htable", "enable_dmq", 1)
modparam("htable", "dmq_init_sync", 1)
request_route {
# xinfo("*** $sel(msg)\n");
if(is_method("KDMQ")) {
dmq_handle_message();
exit;
}
sl_send_reply("404", "Not here");
exit;
}
and here is Kam208 route:
debug=2
log_stderror=yes
# mpath="/usr/local/lib/kamailio/modules/"
loadmodule "tm.so"
loadmodule "sl.so"
loadmodule "pv.so"
loadmodule "siputils.so"
loadmodule "xlog.so"
loadmodule "ctl.so"
loadmodule "textops.so"
loadmodule "dmq.so"
loadmodule "htable.so"
modparam("tm", "failure_reply_mode", 3)
modparam("tm", "fr_timer", 30000)
modparam("tm", "fr_inv_timer", 120000)
modparam("dmq", "server_address", "sip:192.168.100.208:5060")
modparam("dmq", "notification_address", "sip:192.168.100.207:5060")
modparam("dmq", "multi_notify", 1)
modparam("dmq", "num_workers", 4)
modparam("dmq", "ping_interval", 15)
modparam("htable", "htable", "bancc=>size=10;autoexpire=3600;dmqreplicate=1;")
modparam("htable", "enable_dmq", 1)
modparam("htable", "dmq_init_sync", 1)
request_route {
# xinfo("*** $sel(msg)\n");
if(is_method("KDMQ")) {
dmq_handle_message();
exit;
}
sl_send_reply("404", "Not here");
exit;
}
at Kam207 run kamcmd htable.seti bancc TW 1
at Kam208 run kamcmd htable.dump bancc
, and got:
{
entry: 779
size: 1
slot: {
{
name: TW
value: -2147483648
type: int
}
}
}
kamailio -v
kamailio 5.7.3 (x86_64/linux)
Debian11
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.