From b77ae81aff93d2c028d2e06755362f50ac8eea9e Mon Sep 17 00:00:00 2001 From: Grzegorz Sluja <grzegorz.sluja@iopsys.eu> Date: Mon, 8 Mar 2021 16:47:30 +0100 Subject: [PATCH] Fix issue with attended call transfer In pjsip the attended call transfer has an issue that connection between transferee and transferor is not finished immediately but after 60s timeout. Not sure why it is implemented this way (defer termination) but changing the timeout into 1s makes the attended call transfer work the same as it was with chan_sip driver. Signed-off-by: Grzegorz Sluja <grzegorz.sluja@iopsys.eu> --- res/res_pjsip_session.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/res/res_pjsip_session.c b/res/res_pjsip_session.c index 1dd635f124..912c2bcfc4 100644 --- a/res/res_pjsip_session.c +++ b/res/res_pjsip_session.c @@ -3567,7 +3567,7 @@ static void session_termination_cb(pj_timer_heap_t *timer_heap, struct pj_timer_ int ast_sip_session_defer_termination(struct ast_sip_session *session) { - pj_time_val delay = { .sec = 60, }; + pj_time_val delay = { .sec = 1, }; int res; /* The session should not have an active deferred termination request. */ -- GitLab