[layer23] Fixed call reference for incomming calls. (mobile terminated)
[osmocom-bb.git] / src / host / layer23 / src / gsm48_mm.c
index 58bd86c..c1e8fe7 100644 (file)
@@ -1281,12 +1281,12 @@ static const char *gsm48_mmxx_state_names[] = {
        "REESTPEND"
 };
 
-uint32_t mm_conn_new_ref = 1;
+uint32_t mm_conn_new_ref = 0x80000001;
 
 /* new MM connection state */
 static void new_conn_state(struct gsm48_mm_conn *conn, int state)
 {
-       LOGP(DMM, LOGL_INFO, "(ref %d) new state %s -> %s\n", conn->ref,
+       LOGP(DMM, LOGL_INFO, "(ref %x) new state %s -> %s\n", conn->ref,
                gsm48_mmxx_state_names[conn->state],
                gsm48_mmxx_state_names[state]);
        conn->state = state;
@@ -3241,7 +3241,7 @@ static int gsm48_mm_data(struct osmocom_ms *ms, struct msgb *msg)
        conn = mm_conn_by_ref(mm, mmh->ref);
        if (!conn) {
                LOGP(DMM, LOGL_INFO, "MMXX_DATA_REQ with unknown (already "
-                       "released) ref=%d, sending MMXX_REL_IND\n", mmh->ref);
+                       "released) ref=%x, sending MMXX_REL_IND\n", mmh->ref);
                switch(msg_type & GSM48_MMXX_MASK) {
                case GSM48_MMCC_CLASS:
                        mmh->msg_type = GSM48_MMCC_REL_IND;
@@ -3544,7 +3544,7 @@ int gsm48_mmxx_downmsg(struct osmocom_ms *ms, struct msgb *msg)
        if (mm->state == GSM48_MM_ST_MM_IDLE)
                LOGP(DMM, LOGL_INFO, "-> substate %s\n",
                        gsm48_mm_substate_names[mm->substate]);
-       LOGP(DMM, LOGL_INFO, "-> callref %d, transaction_id %d\n",
+       LOGP(DMM, LOGL_INFO, "-> callref %x, transaction_id %d\n",
                mmh->ref, mmh->transaction_id);
 
        /* Find function for current state and message */