From 0ba5de6ae257a0e00e72a9f26b3bc7f21201f194 Mon Sep 17 00:00:00 2001 From: lazedo Date: Mon, 23 Jan 2017 23:03:54 +0000 Subject: [PATCH] presence: use sockinfo from subs to init uac for deployments with multiple ports where UAs subscribe to specific port and expect the notify from that port --- src/modules/presence/notify.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/modules/presence/notify.c b/src/modules/presence/notify.c index 18e5ce00a92..a9769d55d8d 100644 --- a/src/modules/presence/notify.c +++ b/src/modules/presence/notify.c @@ -5,7 +5,6 @@ * * This file is part of Kamailio, a free SIP server. * - * Kamailio is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version @@ -1625,6 +1624,9 @@ int send_notify_request(subs_t* subs, subs_t * watcher_subs, set_uac_req(&uac_r, &met, &str_hdr, notify_body, td, TMCB_LOCAL_COMPLETED, p_tm_callback, (void*)cb_param); + if (subs->sockinfo_str.len) { + uac_r.ssock = &subs->sockinfo_str; + } result = tmb.t_request_within(&uac_r); _pres_subs_last_sub = backup_subs; if(result< 0)