Actually send an event upon incoming messages

This commit is contained in:
Pierre Pronchery 2010-05-11 16:59:07 +00:00
parent 1620f6a144
commit 810ea309ad

View File

@ -1325,7 +1325,7 @@ static int _gsm_trigger_cmti(GSM * gsm, char const * result)
return 1;
memory[sizeof(memory) - 1] = '\0';
gsm->event.incoming_message.memory = memory;
return 0;
return _gsm_event_send(gsm, GSM_EVENT_TYPE_INCOMING_MESSAGE);
}