Changeset 215 for pjproject/trunk/pjmedia/include/pjmedia/stream.h
- Timestamp:
- Feb 22, 2006 12:06:39 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/include/pjmedia/stream.h
r214 r215 72 72 pj_sockaddr_in rem_addr; /**< Remote RTP address */ 73 73 pjmedia_codec_info fmt; /**< Codec format info. */ 74 unsignedtx_event_pt;/**< Outgoing pt for telephone-events. */75 unsignedrx_event_pt;/**< Incoming pt for telephone-events. */74 int tx_event_pt;/**< Outgoing pt for telephone-events. */ 75 int rx_event_pt;/**< Incoming pt for telephone-events. */ 76 76 pj_uint32_t ssrc; /**< RTP SSRC. */ 77 77 int jb_min; /**< Jitter buffer min delay. */ … … 111 111 * buffer needs to preallocate some storage. 112 112 * @param info Stream information. 113 * @param user_data Arbitrary user data (for future callback feature). 113 114 * @param p_stream Pointer to receive the media stream. 114 115 * … … 118 119 pj_pool_t *pool, 119 120 const pjmedia_stream_info *info, 121 void *user_data, 120 122 pjmedia_stream **p_stream); 121 123 … … 192 194 * 193 195 * @param stream The media stream. 194 * @param digit A single digit ('0123456789*#ABCD'). 196 * @param ascii_digit String containing digits to be sent to remote. 197 * Currently the maximum number of digits are 32. 195 198 * 196 199 * @return PJ_SUCCESS on success. 197 200 */ 198 201 PJ_DECL(pj_status_t) pjmedia_stream_dial_dtmf(pjmedia_stream *stream, 199 const pj_str_t *digit_char); 200 202 const pj_str_t *ascii_digit); 203 204 205 /** 206 * Check if the stream has incoming DTMF digits in the incoming DTMF 207 * queue. Incoming DTMF digits received via RFC 2833 mechanism are 208 * saved in the incoming digits queue. 209 * 210 * @param stream The media stream. 211 * 212 * @return Non-zero (PJ_TRUE) if the stream has received DTMF 213 * digits in the . 214 */ 215 PJ_DECL(pj_bool_t) pjmedia_stream_check_dtmf(pjmedia_stream *stream); 216 217 218 /** 219 * Retrieve the incoming DTMF digits from the stream. Note that the digits 220 * buffer will not be NULL terminated. 221 * 222 * @param stream The media stream. 223 * @param ascii_digits Buffer to receive the digits. The length of this 224 * buffer is indicated in the "size" argument. 225 * @param size On input, contains the maximum digits to be copied 226 * to the buffer. 227 * On output, it contains the actual digits that has 228 * been copied to the buffer. 229 * 230 * @return Non-zero (PJ_TRUE) if the stream has received DTMF 231 * digits in the . 232 */ 233 PJ_DECL(pj_status_t) pjmedia_stream_get_dtmf( pjmedia_stream *stream, 234 char *ascii_digits, 235 unsigned *size); 201 236 202 237
Note: See TracChangeset
for help on using the changeset viewer.