Fixed mncc.h for GSM. Audio works again with latest OpenBSC.
authorAndreas Eversberg <jolly@eversberg.eu>
Sun, 2 Oct 2011 06:52:13 +0000 (08:52 +0200)
committerAndreas Eversberg <jolly@eversberg.eu>
Sun, 2 Oct 2011 06:52:13 +0000 (08:52 +0200)
gsm.cpp
gsm_bs.cpp
gsm_ms.cpp
mncc.h

diff --git a/gsm.cpp b/gsm.cpp
index 9236ed2..e6806c3 100644 (file)
--- a/gsm.cpp
+++ b/gsm.cpp
@@ -383,6 +383,7 @@ void Pgsm::call_conf_ind(unsigned int msg_type, unsigned int callref, struct gsm
        gsm_trace_header(p_m_mISDNport, this, MNCC_LCHAN_MODIFY, DIRECTION_OUT);
        mode = create_mncc(MNCC_LCHAN_MODIFY, p_m_g_callref);
        mode->lchan_mode = 0x01; /* GSM V1 */
+       mode->lchan_type = 0x02;
        add_trace("mode", NULL, "0x%02x", mode->lchan_mode);
        end_trace();
        send_and_free_mncc(p_m_g_lcr_gsm, mode->msg_type, mode);
index 285c88f..d281bc9 100644 (file)
@@ -353,6 +353,7 @@ void Pgsm_bs::setup_ind(unsigned int msg_type, unsigned int callref, struct gsm_
        gsm_trace_header(p_m_mISDNport, this, MNCC_LCHAN_MODIFY, DIRECTION_OUT);
        mode = create_mncc(MNCC_LCHAN_MODIFY, p_m_g_callref);
        mode->lchan_mode = 0x01; /* GSM V1 */
+       mode->lchan_type = 0x02;
        add_trace("mode", NULL, "0x%02x", mode->lchan_mode);
        end_trace();
        send_and_free_mncc(p_m_g_lcr_gsm, mode->msg_type, mode);
index 7e5b70e..b966ad8 100644 (file)
@@ -324,6 +324,7 @@ void Pgsm_ms::setup_ind(unsigned int msg_type, unsigned int callref, struct gsm_
        gsm_trace_header(p_m_mISDNport, this, MNCC_LCHAN_MODIFY, DIRECTION_OUT);
        mode = create_mncc(MNCC_LCHAN_MODIFY, p_m_g_callref);
        mode->lchan_mode = 0x01; /* GSM V1 */
+       mode->lchan_type = 0x02;
        add_trace("mode", NULL, "0x%02x", mode->lchan_mode);
        end_trace();
        send_and_free_mncc(p_m_g_lcr_gsm, mode->msg_type, mode);
diff --git a/mncc.h b/mncc.h
index 27c8364..e5f8216 100644 (file)
--- a/mncc.h
+++ b/mncc.h
@@ -175,6 +175,7 @@ struct gsm_mncc {
        int             emergency;
        char            imsi[16];
 
+       unsigned char   lchan_type;
        unsigned char   lchan_mode;
 };