/* Return: NOT_ACTRACE if there isn't an AudioCodes trace packet at offset in tvb, ACTRACE_CAS if there's a CAS packet there, ACTRACE_ISDN if there's an ISDN packet there.  */
static int is_actrace(tvbuff_t *tvb, gint offset)
/* Return: NOT_ACTRACE if there isn't an AudioCodes trace packet at offset in tvb, ACTRACE_CAS if there's a CAS packet there, ACTRACE_ISDN if there's an ISDN packet there.  */
static int is_actrace(tvbuff_t *tvb, gint offset)
{
	gint   tvb_len;
	gint32 source, isdn_header;
	tvb_len = tvb_reported_length(tvb);
	source = tvb_get_ntohl(tvb, offset+4);
	if ( (tvb_len == 48) && ((source > -1) && (source <3)) )
		return ACTRACE_CAS;
	isdn_header = tvb_get_ntohl(tvb, offset+4);
	if ( (tvb_len >= 50) && ( (isdn_header == PSTN_TO_BLADE) || (isdn_header == BLADE_TO_PSTN)) )
		return ACTRACE_ISDN;
	return NOT_ACTRACE;
}