]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-640 --comment-only can you see if this patch helps, I think it should really be...
authorAnthony Minessale <anthm@freeswitch.org>
Sun, 6 Mar 2011 20:49:31 +0000 (14:49 -0600)
committerAnthony Minessale <anthm@freeswitch.org>
Sun, 6 Mar 2011 20:49:39 +0000 (14:49 -0600)
src/mod/endpoints/mod_sofia/sofia.c

index 90193ac63aef545268d889a6023d2eb416e2ee7f..fac089d12ce5d14d8f544599b153666f74661655 100644 (file)
@@ -864,7 +864,6 @@ void sofia_event_callback(nua_event_t event,
        case nua_r_unsubscribe:
        case nua_r_publish:
        case nua_i_cancel:
-       case nua_r_cancel:
        case nua_i_error:
        case nua_i_active:
        case nua_i_terminated:
@@ -872,6 +871,13 @@ void sofia_event_callback(nua_event_t event,
        case nua_i_prack:
        case nua_r_prack:
                break;
+       case nua_r_cancel:
+               {
+                       if (status > 299 && nh) {
+                               nua_handle_destroy(nh);
+                       }
+               }
+               break;
        case nua_i_ack:
                {
                        if (channel && sip) {