summaryrefslogtreecommitdiff
path: root/farstream/fs-session.h
diff options
context:
space:
mode:
authorOlivier CrĂȘte <olivier.crete@collabora.com>2011-10-29 19:30:42 +0200
committerOlivier CrĂȘte <olivier.crete@collabora.com>2011-11-02 16:57:15 -0400
commitfb64d45034c76c7e8e336440296f6f84bd7b87c3 (patch)
tree479c763a75f09962c9150279929deafadb369924 /farstream/fs-session.h
parent195ac9201b2f04a22f7ecc099781d0f83d422d8c (diff)
downloadfarstream-fb64d45034c76c7e8e336440296f6f84bd7b87c3.tar.gz
fssession: Remove the "method" from the telephone_event methods
Now, it will always try event then fall back on sound. If one wants to ensure that only sound is sent, one must remove the events from the remote codecs.
Diffstat (limited to 'farstream/fs-session.h')
-rw-r--r--farstream/fs-session.h26
1 files changed, 4 insertions, 22 deletions
diff --git a/farstream/fs-session.h b/farstream/fs-session.h
index d729b7c3..4a7cf928 100644
--- a/farstream/fs-session.h
+++ b/farstream/fs-session.h
@@ -84,23 +84,6 @@ typedef enum _FsDTMFEvent
} FsDTMFEvent;
/**
- * FsDTMFMethod:
- * @FS_DTMF_METHOD_AUTO: Send in any possible way
- * @FS_DTMF_METHOD_RTP_RFC4733: Send as a special payload type defined by RFC 4733
- * (which obsoletes RFC 2833)
- * @FS_DTMF_METHOD_SOUND: Send as tones as in-band audio sound
- *
- * An enum that represents the different ways a DTMF event can be sent
- *
- */
-typedef enum _FsDTMFMethod
-{
- FS_DTMF_METHOD_AUTO = 0,
- FS_DTMF_METHOD_RTP_RFC4733,
- FS_DTMF_METHOD_SOUND
-} FsDTMFMethod;
-
-/**
* FsSessionClass:
* @parent_class: Our parent
* @new_stream: Create a new #FsStream
@@ -127,8 +110,8 @@ struct _FsSessionClass
GError **error);
gboolean (* start_telephony_event) (FsSession *session, guint8 event,
- guint8 volume, FsDTMFMethod method);
- gboolean (* stop_telephony_event) (FsSession *session, FsDTMFMethod method);
+ guint8 volume);
+ gboolean (* stop_telephony_event) (FsSession *session);
gboolean (* set_send_codec) (FsSession *session, FsCodec *send_codec,
GError **error);
@@ -172,10 +155,9 @@ FsStream *fs_session_new_stream (FsSession *session,
GError **error);
gboolean fs_session_start_telephony_event (FsSession *session, guint8 event,
- guint8 volume, FsDTMFMethod method);
+ guint8 volume);
-gboolean fs_session_stop_telephony_event (FsSession *session,
- FsDTMFMethod method);
+gboolean fs_session_stop_telephony_event (FsSession *session);
gboolean fs_session_set_send_codec (FsSession *session, FsCodec *send_codec,
GError **error);