Skip to content

Commit

Permalink
remove newtran because it causes the 202 to go to the contact and not… (
Browse files Browse the repository at this point in the history
#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
  • Loading branch information
k-anderson authored and lazedo committed Feb 6, 2017
1 parent 9b70c63 commit cda462b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
9 changes: 0 additions & 9 deletions kamailio/presence-role.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand All @@ -84,7 +76,6 @@ route[HANDLE_SUBSCRIBE]

kazoo_publish("dialoginfo_subs", "dialoginfo_subs", $var(amqp_payload_request));

t_release();
exit;
}
}
Expand Down
2 changes: 1 addition & 1 deletion kamailio/presence_notify_sync-role.cfg
Original file line number Diff line number Diff line change
@@ -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"
Expand Down

0 comments on commit cda462b

Please sign in to comment.