functions to enable and disable DTMF detection

This work was kindly sponsored by Teltech Systems Inc.



git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@1326 8eb893ce-cfd4-0310-b710-fb5ebe64c474
sayer/1.4-spce2.6
Stefan Sayer 18 years ago
parent cdaa3e25d3
commit 18c90ba182

@ -70,6 +70,8 @@ DSMAction* DSMCoreModule::getAction(const string& from_str) {
DEF_CMD("disconnectMedia", SCDisconnectMediaAction);
DEF_CMD("mute", SCMuteAction);
DEF_CMD("unmute", SCUnmuteAction);
DEF_CMD("enableDTMFDetection", SCEnableDTMFDetection);
DEF_CMD("disableDTMFDetection", SCDisableDTMFDetection);
DEF_CMD("set", SCSetAction);
DEF_CMD("append", SCAppendAction);
@ -238,6 +240,15 @@ EXEC_ACTION_START(SCUnmuteAction) {
sc_sess->unmute();
} EXEC_ACTION_END;
EXEC_ACTION_START(SCEnableDTMFDetection) {
sess->setDtmfDetectionEnabled(true);
} EXEC_ACTION_END;
EXEC_ACTION_START(SCDisableDTMFDetection) {
sess->setDtmfDetectionEnabled(false);
} EXEC_ACTION_END;
EXEC_ACTION_START(SCStopAction) {
if (resolveVars(arg, sess, sc_sess, event_params) == "true") {
DBG("sending bye\n");

@ -62,6 +62,8 @@ DEF_ACTION_1P(SCConnectMediaAction);
DEF_ACTION_1P(SCDisconnectMediaAction);
DEF_ACTION_1P(SCMuteAction);
DEF_ACTION_1P(SCUnmuteAction);
DEF_ACTION_1P(SCEnableDTMFDetection);
DEF_ACTION_1P(SCDisableDTMFDetection);
DEF_ACTION_1P(SCSetPromptsAction);
DEF_ACTION_1P(SCAddSeparatorAction);

@ -59,6 +59,8 @@ actions:
unmute()
set RTP stream to unmuted (send and receive RTP packets)
enableDTMFDetection()
disableDTMFDetection()
B2B.connectCallee(remote_party, remote_uri)
connect second leg of B2B session (see AmB2BSession)

Loading…
Cancel
Save