Author: derek Date: Mon Sep 18 23:47:21 2006 New Revision: 105 Modified: sofaswitch/trunk/sound/comms.cxx sofaswitch/trunk/sound/comms.h sofaswitch/trunk/sound/main.cxx Log: Use library method to advise the remote controller of dtmf received (read from the keyboard). Modified: sofaswitch/trunk/sound/comms.cxx ============================================================================== --- sofaswitch/trunk/sound/comms.cxx (original) +++ sofaswitch/trunk/sound/comms.cxx Mon Sep 18 23:47:21 2006 @@ -112,12 +112,6 @@ MessageFrame::WaitForTermination(); } -void Comms::SendMessageToController(PString & message) -{ - SendThisMessageTo(message, GetRemoteController()); -} - - void Comms::SilentlyEndAll() { Modified: sofaswitch/trunk/sound/comms.h ============================================================================== --- sofaswitch/trunk/sound/comms.h (original) +++ sofaswitch/trunk/sound/comms.h Mon Sep 18 23:47:21 2006 @@ -69,11 +69,7 @@ /**Block the calling process, and return when the threads have terminated */ virtual void WaitForTermination(); - - /**Send this message to the current controller. Typically, this will be a - * message stating that dtmf has been read from the keyboard. */ - void SendMessageToController(PString & message); - + /**Report if we were stopped by hangup */ BOOL StoppedByHangup() { return stopByHangup; } Modified: sofaswitch/trunk/sound/main.cxx ============================================================================== --- sofaswitch/trunk/sound/main.cxx (original) +++ sofaswitch/trunk/sound/main.cxx Mon Sep 18 23:47:21 2006 @@ -68,8 +68,7 @@ case 'd' : { PString message; console >> message; - message = PString("SENDDTMF ") + message; - comms.SendMessageToController(message); + comms.DtmfReceivedFromTheWorld(message); cout << "Command ? " << flush; } break;
participants (1)
-
SofaSWITCH SVN