]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-4079 please test
authorAnthony Minessale <anthm@freeswitch.org>
Mon, 6 Aug 2012 21:12:03 +0000 (16:12 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Mon, 6 Aug 2012 21:12:03 +0000 (16:12 -0500)
src/mod/endpoints/mod_sofia/mod_sofia.c

index c831721ffbedb63070a648714b3463773b24017b..5bf9eb7b24b700559fd7e8e051e7248f54acb755 100644 (file)
@@ -374,6 +374,11 @@ switch_status_t sofia_on_destroy(switch_core_session_t *session)
        switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "%s SOFIA DESTROY\n", switch_channel_get_name(channel));
 
        if (tech_pvt) {
+               
+               if (tech_pvt->respond_phrase) {
+                       switch_yield(100000);
+               }
+
                if (switch_core_codec_ready(&tech_pvt->read_codec)) {
                        switch_core_codec_destroy(&tech_pvt->read_codec);
                }
@@ -540,7 +545,8 @@ switch_status_t sofia_on_hangup(switch_core_session_t *session)
 
 
                                if (tech_pvt->respond_phrase) {
-                                       phrase = su_strdup(nua_handle_home(tech_pvt->nh), tech_pvt->respond_phrase);
+                                       //phrase = su_strdup(nua_handle_home(tech_pvt->nh), tech_pvt->respond_phrase);
+                                       phrase = tech_pvt->respond_phrase;
                                } else {
                                        phrase = sip_status_phrase(sip_cause);
                                }