Browse Source

remove newtran because it causes the 202 to go to the contact and not… (#137)

* remove newtran because it causes the 202 to go to the contact and not the nat corrected port

* remove left behind t_release

* remove the timeout_rm_subs parameter until we updated to kamailio that allows handling timeout_rm_subs in the event_route
4.1
bitbashing 9 years ago
committed by lazedo
parent
commit
cda462bdaa
2 changed files with 1 additions and 10 deletions
  1. +0
    -9
      kamailio/presence-role.cfg
  2. +1
    -1
      kamailio/presence_notify_sync-role.cfg

+ 0
- 9
kamailio/presence-role.cfg View File

@ -41,28 +41,20 @@ route[HANDLE_SUBSCRIBE]
route(NAT_TEST_AND_CORRECT);
#!endif
if (!t_newtran()) {
sl_reply_error();
exit;
}
if ($tU == $null) {
xlog("L_INFO", "$ci|stop|ignoring subscribe with empty TO username from a $ua\n");
sl_send_reply(400, "Missing TO username");
t_release();
exit;
}
if ($fU == $null) {
xlog("L_INFO", "$ci|stop|ignoring subscribe with empty FROM username from a $ua\n");
sl_send_reply(400, "Missing FROM username");
t_release();
exit;
}
if (!handle_subscribe()) {
xlog("L_INFO", "$ci|stop|unsupported subsribe\n");
t_release();
exit;
}
@ -84,7 +76,6 @@ route[HANDLE_SUBSCRIBE]
kazoo_publish("dialoginfo_subs", "dialoginfo_subs", $var(amqp_payload_request));
t_release();
exit;
}
}


+ 1
- 1
kamailio/presence_notify_sync-role.cfg View File

@ -1,5 +1,5 @@
kazoo.presence_notify = 1 descr "enable/disable sending notify callback to omnipresence"
kazoo.presence_notify_timeout = 1000 descr "timeout in ms waiting for notify reply"
kazoo.presence_notify_timeout = 3000 descr "timeout in ms waiting for notify reply"
kazoo.presence_notify_log_body = 0 descr "logs the body sent in the notification"
kazoo.presence_notify_log_resp_body = 0 descr "logs the body received from notification"
kazoo.presence_notify_log_to_table = 0 descr "logs notify/reply to active_watchers_log table"


Loading…
Cancel
Save