Changeset 5834 for pjproject/trunk/pjsip/include/pjsua2/call.hpp
- Timestamp:
- Jul 23, 2018 7:32:54 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/include/pjsua2/call.hpp
r5828 r5834 743 743 { 744 744 /** 745 * DTMF sending method. 746 */ 747 pjsua_dtmf_method method; 748 749 /** 745 750 * DTMF ASCII digit. 746 751 */ 747 string digit; 752 string digit; 753 754 /** 755 * DTMF signal duration which might be included when sending DTMF using 756 * SIP INFO. 757 */ 758 unsigned duration; 748 759 }; 749 760 … … 1154 1165 */ 1155 1166 CallVidSetStreamParam(); 1167 }; 1168 1169 /** 1170 * This structure contains parameters for Call::sendDtmf() 1171 */ 1172 struct CallSendDtmfParam 1173 { 1174 /** 1175 * The method used to send DTMF. 1176 * 1177 * Default: PJSUA_DTMF_METHOD_RFC2833 1178 */ 1179 pjsua_dtmf_method method; 1180 1181 /** 1182 * The signal duration used for the DTMF. 1183 * 1184 * Default: PJSUA_CALL_SEND_DTMF_DURATION_DEFAULT 1185 */ 1186 unsigned duration; 1187 1188 /** 1189 * The DTMF digits to be sent. 1190 */ 1191 string digits; 1192 1193 public: 1194 /** 1195 * Default constructor initialize with default value. 1196 */ 1197 CallSendDtmfParam(); 1198 1199 /** 1200 * Convert to pjsip. 1201 */ 1202 pjsua_call_send_dtmf_param toPj() const; 1203 1204 /** 1205 * Convert from pjsip. 1206 */ 1207 void fromPj(const pjsua_call_send_dtmf_param ¶m); 1156 1208 }; 1157 1209 … … 1437 1489 */ 1438 1490 void dialDtmf(const string &digits) throw(Error); 1491 1492 /** 1493 * Send DTMF digits to remote. 1494 * 1495 * @param param The send DTMF parameter. 1496 */ 1497 void sendDtmf(const CallSendDtmfParam ¶m) throw (Error); 1439 1498 1440 1499 /**
Note: See TracChangeset
for help on using the changeset viewer.