From cb3b46f1678dce228bd71337fe9fff44189110ff Mon Sep 17 00:00:00 2001 From: Robert Joly Date: Thu, 16 Apr 2009 01:14:12 +0000 Subject: [PATCH] Fixed ability to send a string as user indications (DTMF) thanks Peter Olsson git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13049 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/endpoints/mod_opal/mod_opal.cpp | 8 ++++++++ src/mod/endpoints/mod_opal/mod_opal.h | 1 + 2 files changed, 9 insertions(+) diff --git a/src/mod/endpoints/mod_opal/mod_opal.cpp b/src/mod/endpoints/mod_opal/mod_opal.cpp index dd2ba1e712..b41f046488 100644 --- a/src/mod/endpoints/mod_opal/mod_opal.cpp +++ b/src/mod/endpoints/mod_opal/mod_opal.cpp @@ -687,12 +687,20 @@ void FSConnection::OnEstablished() 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()) { diff --git a/src/mod/endpoints/mod_opal/mod_opal.h b/src/mod/endpoints/mod_opal/mod_opal.h index 98916e95dd..8dc02ed461 100644 --- a/src/mod/endpoints/mod_opal/mod_opal.h +++ b/src/mod/endpoints/mod_opal/mod_opal.h @@ -192,6 +192,7 @@ class FSConnection:public OpalLocalConnection { virtual PBoolean OnOpenMediaStream(OpalMediaStream & stream); virtual OpalMediaFormatList GetMediaFormats() const; virtual PBoolean SendUserInputTone(char tone, unsigned duration); + virtual PBoolean SendUserInputString(const PString & value); void SetCodecs();