]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
openzap bug fix- try to remove id on down every time
authorNenad Corbic <ncorbic@sangoma.com>
Fri, 16 Apr 2010 22:28:15 +0000 (18:28 -0400)
committerNenad Corbic <ncorbic@sangoma.com>
Fri, 16 Apr 2010 22:28:15 +0000 (18:28 -0400)
libs/openzap/src/ozmod/ozmod_sangoma_boost/ozmod_sangoma_boost.c

index 96321e2bdae560c2a10fffda6d82a0af7e7529b4..c32878debdcd09e53a7cdee25e8218be0ad3be88 100644 (file)
@@ -1152,9 +1152,8 @@ static __inline__ void state_advance(zap_channel_t *zchan)
        switch (zchan->state) {
        case ZAP_CHANNEL_STATE_DOWN:
                {
-                       if (zap_test_sflag(zchan, SFLAG_FREE_REQ_ID)) {
-                               release_request_id_span_chan(zchan->physical_span_id-1, zchan->physical_chan_id-1);
-                       }
+                       /* Always try to clear the GRID */
+                       release_request_id_span_chan(zchan->physical_span_id-1, zchan->physical_chan_id-1);
 
                        if (!zap_test_sflag(zchan, SFLAG_SENT_FINAL_MSG)) {
                                zap_set_sflag_locked(zchan, SFLAG_SENT_FINAL_MSG);