From 305543814da4452338cb3abaee12071685dfb9e2 Mon Sep 17 00:00:00 2001 From: Simon Wunderlich Date: Fri, 28 Feb 2014 14:06:22 +0100 Subject: [PATCH] mod_skinny: wait up to 5 seconds for OpenRecvChannelAck WiFi phones like the 7925g may take longer than just one second to acknowledge the open receive message. Increase the timeout to 5 seconds. Signed-off-by: Simon Wunderlich Signed-off-by: Nathan Neulinger --- src/mod/endpoints/mod_skinny/mod_skinny.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mod/endpoints/mod_skinny/mod_skinny.c b/src/mod/endpoints/mod_skinny/mod_skinny.c index 2d243fdc02..dfda8ad63a 100644 --- a/src/mod/endpoints/mod_skinny/mod_skinny.c +++ b/src/mod/endpoints/mod_skinny/mod_skinny.c @@ -1142,7 +1142,7 @@ switch_status_t channel_answer_channel(switch_core_session_t *session) /* Wait for media */ while(!switch_test_flag(tech_pvt, TFLAG_IO)) { switch_cond_next(); - if (++x > 1000) { + if (++x > 5000) { switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_WARNING, "Wait tooo long to answer %s:%s\n", switch_channel_get_variable(channel, "skinny_device_name"), switch_channel_get_variable(channel, "skinny_device_instance")); return SWITCH_STATUS_FALSE;