]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-4481 --resolve seg is fixed but just utf-8 will not work. you need type/subtype...
authorAnthony Minessale <anthm@freeswitch.org>
Mon, 30 Jul 2012 21:36:20 +0000 (16:36 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Mon, 30 Jul 2012 21:36:20 +0000 (16:36 -0500)
src/mod/endpoints/mod_sofia/sofia.c
src/mod/endpoints/mod_sofia/sofia_presence.c

index 777b23fad92aade6a311b5f64f0ab5accf23e8ff..3ded1dccd2af62c621510b62ba8f78149ab8cba4 100644 (file)
@@ -748,7 +748,8 @@ void sofia_handle_sip_r_message(int status, sofia_profile_t *profile, nua_handle
        const char *call_id;
        int *mstatus;
 
-       if (!sip && sip->sip_call_id) {
+       if (!(sip && sip->sip_call_id)) {
+               nua_handle_destroy(nh);
                return;
        }
 
index f147d6d4712730c661aedaf4ce74764d3bfb1a41..e53a4fd2673ed687c3b3d70841b0840b3959f2f5 100644 (file)
@@ -357,7 +357,7 @@ switch_status_t sofia_presence_chat_send(switch_event_t *message_event)
                if (is_blocking) {
                        sanity = 200;
 
-                       while(!mstatus && --sanity) {
+                       while(!mstatus && --sanity && !msg_nh->nh_destroyed) {
                                switch_yield(100000);
                        }