4/17/17
SigMRF Users Guide, Rev A2
Copyright
Signalogic, Inc. 2016-2017
28 / 39
Copyright (C) Signalogic, Inc, 2016-2017
Add APIs to (i) encapsulate c66x PCIe and SRIO interfaces, and (ii) support x86-only or
combined x86 and c66x server usage. APIs are consistent between all use cases
*/
#ifndef _SESSION_H_
#define _SESSION_H_
#include <stdint.h>
#define DYNAMIC_JITTER_ENABLE
#ifdef NPLUS1_BUILD
#define MAX_REDUNDANCY 13
#elif ONEPLUS1_BUILD
#define MAX_REDUNDANCY 1
#else
#define MAX_REDUNDANCY 0
#endif
#define USE_BIT8FIELDS
/* internal channel/stream definition. An array of this structure is declared in call.c
(ChanInfo_Core) */
enum
media_type
{
{
{
{
DS_MEDIA_TYPE_VOICE,
,
,
,
DS_MEDIA_TYPE_VIDEO
};
};
};
};
enum
voice_codec_type
{
{
{
{
/* Notes:
1) for G726 and AMR, bit rate is specified using CHANINFO_CORE bitrate element
2) "G711_WB" is G711.1
*/
DS_VOICE_CODEC_TYPE_NONE,
,
,
,
/* pass-thru */
DS_VOICE_CODEC_TYPE_G711_ULAW,
,
,
,
/* 1 */
DS_VOICE_CODEC_TYPE_G711_ALAW,
,
,
,
/* 2 */
DS_VOICE_CODEC_TYPE_G711_WB_ULAW,
,
,
,
/* 3 */
DS_VOICE_CODEC_TYPE_G711_WB_ALAW,
,
,
,
/* 4 */
DS_VOICE_CODEC_TYPE_G726,
,
,
,
/* 5 */
DS_VOICE_CODEC_TYPE_G729AB,
,
,
,
/* 6 */
DS_VOICE_CODEC_TYPE_G723,
,
,
,
/* 7 */
DS_VOICE_CODEC_TYPE_AMR_NB,
,
,
,
/* 8 */
DS_VOICE_CODEC_TYPE_AMR_WB,
,
,
,
/* 9 */
DS_VOICE_CODEC_TYPE_EVRC,
,
,
,
/* 10 */
DS_VOICE_CODEC_TYPE_ILBC,
,
,
,
/* 11 */
DS_VOICE_CODEC_TYPE_ISAC,
,
,
,
/* 12 */
DS_VOICE_CODEC_TYPE_OPUS,
,
,
,
/* 13 */
DS_VOICE_CODEC_TYPE_EVRCB,
,
,
,
/* 14 */
DS_VOICE_CODEC_TYPE_GSMFR,
,
,
,
/* 15 */
DS_VOICE_CODEC_TYPE_GSMHR,
,
,
,
/* 16 */
DS_VOICE_CODEC_TYPE_GSMEFR,
,
,
,
/* 17 */
DS_VOICE_CODEC_TYPE_G722,
,
,
,
/* 18 */
DS_VOICE_CODEC_TYPE_EVRC_NW,
,
,
,
/* 19 */
DS_VOICE_CODEC_TYPE_CLEARMODE,
,
,
,
/* 20 */
DS_VOICE_CODEC_TYPE_EVS,
,
,
,
/* 21 */
DS_VOICE_CODEC_TYPE_INVALID,
,
,
,
/* 22 */
DS_VOICE_NCODECS
=
=
=
=
DS_VOICE_CODEC_TYPE_INVALID
/* 22 */
};
};
};
};
enum
video_codec_type
{
{
{
{
DS_VIDEO_CODEC_TYPE_MPEG2,
,
,
,
DS_VIDEO_CODEC_TYPE_H264,
,
,
,
DS_VIDEO_CODEC_TYPE_VP8,
,
,
,
DS_VIDEO_CODEC_TYPE_INVALID,
,
,
,
DS_VIDEO_NCODECS
=
=
=
=
DS_VIDEO_CODEC_TYPE_INVALID
};
};
};
};
/* default value 0, no dtmf detection or transcoding needed. */
enum
dtmf_processing
{
{
{
{
DS_DTMF_NONE
=
=
=
=
0x00
,
,
,
,
/* equivalent to pass-through */
DS_DTMF_RTP
=
=
=
=
0x01
,
,
,
,
/* detect RTP event or outgoing packets are RTP event. */
DS_DTMF_TONE
=
=
=
=
0x02
,
,
,
,
/* detect RTP TONE or outgoing packets are RTP TONE */
DS_DTMF_STRIP
=
=
=
=
0x04
,
,
,
,
/* remove packet payload for tone */
DS_DTMF_SIP_INFO
=
=
=
=
0x08
/* Reserved */