]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-4501 try this
authorAnthony Minessale <anthm@freeswitch.org>
Tue, 7 Aug 2012 00:38:56 +0000 (19:38 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Tue, 7 Aug 2012 00:38:56 +0000 (19:38 -0500)
src/mod/endpoints/mod_sofia/mod_sofia.c

index 5bf9eb7b24b700559fd7e8e051e7248f54acb755..52e7333607ce54332f3d8081e3cd122880231f20 100644 (file)
@@ -2398,13 +2398,14 @@ static switch_status_t sofia_receive_message(switch_core_session_t *session, swi
                        }
                        nua_refer(tech_pvt->nh, SIPTAG_REFER_TO_STR(ref_to), SIPTAG_REFERRED_BY_STR(tech_pvt->contact_url), TAG_END());
                        switch_mutex_unlock(tech_pvt->sofia_mutex);
-                       sofia_wait_for_reply(tech_pvt, 9999, 300);
+                       sofia_wait_for_reply(tech_pvt, 9999, 10);
                        switch_mutex_lock(tech_pvt->sofia_mutex);
                        if ((var = switch_channel_get_variable(tech_pvt->channel, "sip_refer_reply"))) {
                                msg->string_reply = switch_core_session_strdup(session, var);
                        } else {
                                msg->string_reply = "no reply";
                        }
+                       switch_channel_hangup(tech_pvt->channel, SWITCH_CAUSE_BLIND_TRANSFER);
                }
                break;