mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-05-08 00:33:20 +00:00
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
This commit is contained in:
parent
ab7c282076
commit
cb3b46f167
@ -687,12 +687,20 @@ void FSConnection::OnEstablished()
|
|||||||
OpalLocalConnection::OnEstablished();
|
OpalLocalConnection::OnEstablished();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
PBoolean FSConnection::SendUserInputTone(char tone, unsigned duration)
|
PBoolean FSConnection::SendUserInputTone(char tone, unsigned duration)
|
||||||
{
|
{
|
||||||
switch_dtmf_t dtmf = { tone, duration };
|
switch_dtmf_t dtmf = { tone, duration };
|
||||||
return switch_channel_queue_dtmf(m_fsChannel, &dtmf) == SWITCH_STATUS_SUCCESS;
|
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
|
OpalMediaFormatList FSConnection::GetMediaFormats() const
|
||||||
{
|
{
|
||||||
if (m_switchMediaFormats.IsEmpty()) {
|
if (m_switchMediaFormats.IsEmpty()) {
|
||||||
|
@ -192,6 +192,7 @@ class FSConnection:public OpalLocalConnection {
|
|||||||
virtual PBoolean OnOpenMediaStream(OpalMediaStream & stream);
|
virtual PBoolean OnOpenMediaStream(OpalMediaStream & stream);
|
||||||
virtual OpalMediaFormatList GetMediaFormats() const;
|
virtual OpalMediaFormatList GetMediaFormats() const;
|
||||||
virtual PBoolean SendUserInputTone(char tone, unsigned duration);
|
virtual PBoolean SendUserInputTone(char tone, unsigned duration);
|
||||||
|
virtual PBoolean SendUserInputString(const PString & value);
|
||||||
|
|
||||||
void SetCodecs();
|
void SetCodecs();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user