X-Git-Url: http://git.eversberg.eu/gitweb.cgi?p=lcr.git;a=blobdiff_plain;f=gsm_ms.cpp;fp=gsm_ms.cpp;h=c8292f9ad6c61a31e4e2d380aeae82c75d1eb19e;hp=481a4ac0b0d387796341cbbe3b4337ba85cbc812;hb=da91d7d85fe092122e35ece52695f98345738359;hpb=2f5c3dc13063fc5e4cc4b72d2c3484be238c142e diff --git a/gsm_ms.cpp b/gsm_ms.cpp index 481a4ac..c8292f9 100644 --- a/gsm_ms.cpp +++ b/gsm_ms.cpp @@ -37,6 +37,8 @@ void *l23_ctx = NULL; static int dtmf_timeout(struct lcr_timer *timer, void *instance, int index); +static int dtmf_timeout(struct lcr_timer *timer, void *instance, int index); + /* * constructor */ @@ -60,6 +62,12 @@ Pgsm_ms::Pgsm_ms(int type, struct mISDNport *mISDNport, char *portname, struct p memset(&p_m_g_dtmf_timer, 0, sizeof(p_m_g_dtmf_timer)); add_timer(&p_m_g_dtmf_timer, dtmf_timeout, this, 0); + p_m_g_dtmf_state = DTMF_ST_IDLE; + p_m_g_dtmf_index = 0; + p_m_g_dtmf[0] = '\0'; + memset(&p_m_g_dtmf_timer, 0, sizeof(p_m_g_dtmf_timer)); + add_timer(&p_m_g_dtmf_timer, dtmf_timeout, this, 0); + PDEBUG(DEBUG_GSM, "Created new GSMMSPort(%s %s).\n", portname, ms_name); }