diff -Naur chan_ss7-1.3/l4isup.c chan_ss7-1.3-160/l4isup.c --- chan_ss7-1.3/l4isup.c 2009-12-06 09:34:42.000000000 +0000 +++ chan_ss7-1.3-160/l4isup.c 2010-03-12 13:37:23.000000000 +0000 @@ -286,7 +286,7 @@ #ifdef USE_ASTERISK_1_4 #define FRAME_DATA(fr,offset) (((unsigned char*) (fr)->data) + offset) #else -#define FRAME_DATA(fr,offset) (((unsigned char*) (fr)->data.ptr) + offset) +#define FRAME_DATA(fr,offset) (((unsigned char*) (fr)->data) + offset) #endif #endif @@ -4592,7 +4592,7 @@ #if defined(USE_ASTERISK_1_2) || defined(USE_ASTERISK_1_4) ast_dsp_digitmode(pvt->dsp, DSP_DIGITMODE_DTMF | (link->relaxdtmf ? DSP_DIGITMODE_RELAXDTMF : 0)); #else - ast_dsp_set_digitmode(pvt->dsp, DSP_DIGITMODE_DTMF | (link->relaxdtmf ? DSP_DIGITMODE_RELAXDTMF : 0)); + ast_dsp_digitmode(pvt->dsp, DSP_DIGITMODE_DTMF | (link->relaxdtmf ? DSP_DIGITMODE_RELAXDTMF : 0)); #endif } /* Set gain - Channel must be in audiomode when setting gain */ diff -Naur chan_ss7-1.3/mtp.c chan_ss7-1.3-160/mtp.c --- chan_ss7-1.3/mtp.c 2009-12-06 09:34:42.000000000 +0000 +++ chan_ss7-1.3-160/mtp.c 2010-03-12 07:15:14.000000000 +0000 @@ -151,7 +151,7 @@ /* Counts of raw bytes read and written, used to timestamp raw dumps. Make them double to avoid overflow for quite a while. */ - double readcount, writecount; + unsigned long long int readcount, writecount; /* Sequence numbers and indicator bits to be sent in signalling units. */ int send_fib; @@ -325,6 +325,8 @@ format = "linkset %s, link %s/%d %s, sls %d, total: %6llu, %6llu\n"; sprintf(r, format, m->link->linkset->name, m->link->name, m->schannel+1, s, m->sls, m->readcount, m->writecount); strcat(buff, r); + m->readcount = 0; + m->writecount = 0; } return 0; }