]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
mod_skinny: wait up to 5 seconds for OpenRecvChannelAck
authorSimon Wunderlich <sw@simonwunderlich.de>
Fri, 28 Feb 2014 13:06:22 +0000 (14:06 +0100)
committerNathan Neulinger <nneul@neulinger.org>
Mon, 10 Mar 2014 20:25:02 +0000 (15:25 -0500)
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 <sw@simonwunderlich.de>
Signed-off-by: Nathan Neulinger <nneul@neulinger.org>
src/mod/endpoints/mod_skinny/mod_skinny.c

index 37edccafedf43d3d666241185ecf523b5052ba64..5ceac067484a4fd1a00663231e43af6ae4d65734 100644 (file)
@@ -1141,7 +1141,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;