6.2.3 Setting RFC 2833 Mode
To set up a channel for RFC 2833 mode, do the following:
- Open a channel using ipm_Open("ipmB1C1",NULL,EV_SYNC)
- Set the mode via the IPM_PARM_INFO structure and ipm_SetParm( ) as shown below:
IPM_PARM_INFO parmInfo; unsigned long ulParmValue = DTMFXFERMODE_RFC2833; parmInfo.eParm = PARMCH_DTMFXFERMODE; parmInfo.pvParmValue = &ulParmValue ipm_SetParm(chdev, &parmInfo, EV_ASYNC)IPM_PARM_INFO parmInfo; unsigned long ulParmValue = 101; parmInfo.eParm = PARMCH_RFC2833EVT_TX_PLT; parmInfo.pvParmValue = &ulParmValue ipm_SetParm(chdev, &parmInfo, EV_ASYNC)IPM_PARM_INFO parmInfo; unsigned long ulParmValue = 101; parmInfo.eParm = PARMCH_RFC2833EVT_RX_PLT; parmInfo.pvParmValue = &ulParmValue ipm_SetParm(chdev, &parmInfo, EV_ASYNC)
- Optionally, you can mute or un-mute the audio data in the RTP stream using the eIPM_RFC2833MUTE_AUDIO enumeration. The default state is for muting to be ON.
Figure 4 shows a scenario diagram for setting RFC 2833 mode.
Click here to contact Telecom Support Resources
Copyright 2002, Intel Corporation