GSM: Fix release of all ongoing GSM calls, if their MNCC socket fails
authorAndreas Eversberg <jolly@eversberg.eu>
Tue, 25 Jun 2013 07:03:06 +0000 (09:03 +0200)
committerAndreas Eversberg <jolly@eversberg.eu>
Tue, 15 Dec 2015 19:50:50 +0000 (20:50 +0100)
gsm.cpp

diff --git a/gsm.cpp b/gsm.cpp
index e8f7886..0a42b14 100644 (file)
--- a/gsm.cpp
+++ b/gsm.cpp
@@ -286,9 +286,6 @@ void Pgsm::frame_receive(void *arg)
        unsigned char data[160];
        int i, cmr;
 
-       if (!p_g_fr_decoder)
-               return;
-
        switch (frame->msg_type) {
        case GSM_TCHF_FRAME:
                if (p_g_media_type != MEDIA_TYPE_GSM) {
@@ -1283,7 +1280,7 @@ static int mncc_fd_close(struct lcr_gsm *lcr_gsm, struct lcr_fd *lfd)
        /* free all the calls that were running through the MNCC interface */
        port = port_first;
        while(port) {
-               if ((port->p_type & PORT_CLASS_mISDN_MASK) == PORT_CLASS_GSM) {
+               if ((port->p_type & PORT_CLASS_MASK) == PORT_CLASS_GSM) {
                        pgsm = (class Pgsm *)port;
                        if (pgsm->p_g_lcr_gsm == lcr_gsm) {
                                message = message_create(pgsm->p_serial, ACTIVE_EPOINT(pgsm->p_epointlist), PORT_TO_EPOINT, MESSAGE_RELEASE);