[Freeswitch-svn] [commit] r13049 - freeswitch/trunk/src/mod/endpoints/mod_opal

FreeSWITCH SVN robertj at freeswitch.org
Wed Apr 15 18:14:12 PDT 2009


Author: robertj
Date: Wed Apr 15 20:14:12 2009
New Revision: 13049

Log:
Fixed ability to send a string as user indications (DTMF) thanks Peter Olsson

Modified:
   freeswitch/trunk/src/mod/endpoints/mod_opal/mod_opal.cpp
   freeswitch/trunk/src/mod/endpoints/mod_opal/mod_opal.h

Modified: freeswitch/trunk/src/mod/endpoints/mod_opal/mod_opal.cpp
==============================================================================
--- freeswitch/trunk/src/mod/endpoints/mod_opal/mod_opal.cpp	(original)
+++ freeswitch/trunk/src/mod/endpoints/mod_opal/mod_opal.cpp	Wed Apr 15 20:14:12 2009
@@ -687,12 +687,20 @@
     OpalLocalConnection::OnEstablished();
 }
 
+
 PBoolean FSConnection::SendUserInputTone(char tone, unsigned duration)
 {
     switch_dtmf_t dtmf = { tone, duration };
     return switch_channel_queue_dtmf(m_fsChannel, &dtmf) == SWITCH_STATUS_SUCCESS;
 }
 
+
+PBoolean FSConnection::SendUserInputString(const PString & value)
+{
+  return OpalConnection::SendUserInputString(value);
+}
+
+
 OpalMediaFormatList FSConnection::GetMediaFormats() const
 {
     if (m_switchMediaFormats.IsEmpty()) {

Modified: freeswitch/trunk/src/mod/endpoints/mod_opal/mod_opal.h
==============================================================================
--- freeswitch/trunk/src/mod/endpoints/mod_opal/mod_opal.h	(original)
+++ freeswitch/trunk/src/mod/endpoints/mod_opal/mod_opal.h	Wed Apr 15 20:14:12 2009
@@ -192,6 +192,7 @@
     virtual PBoolean OnOpenMediaStream(OpalMediaStream & stream);
     virtual OpalMediaFormatList GetMediaFormats() const;
     virtual PBoolean SendUserInputTone(char tone, unsigned duration);
+    virtual PBoolean SendUserInputString(const PString & value);
 
     void SetCodecs();
 



More information about the Freeswitch-svn mailing list