Browse Source

KAZOO-3357: if handle_subscribe failes dont publish a AMQP message

3.20
karl anderson 11 years ago
parent
commit
c2aabcab6f
2 changed files with 8 additions and 2 deletions
  1. +1
    -0
      kamailio/default.cfg
  2. +7
    -2
      kamailio/presence-role.cfg

+ 1
- 0
kamailio/default.cfg View File

@ -148,6 +148,7 @@ loadmodule "uac_redirect.so"
####### DB Text module ##########
loadmodule "db_text.so"
modparam("db_text", "db_mode", 1)
modparam("db_text", "emptystring", 1)
####### Kazoo Integration module ##########
loadmodule "kazoo.so"


+ 7
- 2
kamailio/presence-role.cfg View File

@ -9,7 +9,7 @@ loadmodule "presence_xml.so"
modparam("presence_dialoginfo", "force_dummy_dialog", 1)
modparam("presence_xml", "force_active", 1)
modparam("presence", "subs_db_mode", 1)
modparam("presence", "subs_db_mode", 3)
modparam("presence", "expires_offset", 60)
modparam("presence", "send_fast_notify", 1)
modparam("presence", "clean_period", 30)
@ -17,6 +17,7 @@ modparam("presence", "publ_cache", 0)
modparam("presence", "min_expires_action", 2)
modparam("presence", "min_expires", 300)
modparam("presence", "max_expires", 3600)
modparam("presence", "sip_uri_match", 1)
modparam("presence", "db_url", "text:///etc/kazoo/kamailio/dbtext")
modparam("kazoo", "db_url", "text:///etc/kazoo/kamailio/dbtext")
@ -51,7 +52,11 @@ route[HANDLE_SUBSCRIBE]
$ru = $(ru{s.tolower});
handle_subscribe();
if (!handle_subscribe()) {
xlog("L_INFO", "$ci|stop|unsupported subsribe");
t_release();
exit;
}
##RabbitMQ
$var(fs_path) = "%3C" + $rz + "%3A" + $Ri + "%3A" + $Rp + "%3Btransport=" + $proto + "%3Blr%3Breceived=" + $si+":"+$sp+"%3E";


Loading…
Cancel
Save