[telepathy-gabble/master] Implement dummy version of Ringing
Sjoerd Simons
sjoerd.simons at collabora.co.uk
Tue Dec 29 05:35:15 PST 2009
---
src/call-channel.c | 9 +++++++++
tests/twisted/jingle/call-basics.py | 2 ++
2 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/src/call-channel.c b/src/call-channel.c
index 18920e9..84b3183 100644
--- a/src/call-channel.c
+++ b/src/call-channel.c
@@ -670,6 +670,14 @@ channel_iface_init (gpointer g_iface, gpointer iface_data)
}
static void
+gabble_call_channel_ringing (GabbleSvcChannelTypeCall *iface,
+ DBusGMethodInvocation *context)
+{
+ DEBUG ("Client is ringing");
+ gabble_svc_channel_type_call_return_from_ringing (context);
+}
+
+static void
gabble_call_channel_accept (GabbleSvcChannelTypeCall *iface,
DBusGMethodInvocation *context)
{
@@ -690,6 +698,7 @@ call_iface_init (gpointer g_iface, gpointer iface_data)
#define IMPLEMENT(x) gabble_svc_channel_type_call_implement_##x (\
klass, gabble_call_channel_##x)
+ IMPLEMENT(ringing);
IMPLEMENT(accept);
#undef IMPLEMENT
}
diff --git a/tests/twisted/jingle/call-basics.py b/tests/twisted/jingle/call-basics.py
index 99c4954..121503b 100644
--- a/tests/twisted/jingle/call-basics.py
+++ b/tests/twisted/jingle/call-basics.py
@@ -124,6 +124,8 @@ def run_test(jp, q, bus, conn, stream, incoming):
# Setup codecs
codecs = jt2.get_call_audio_codecs_dbus()
if incoming:
+ # Act as if we're ringing
+ chan.Ringing (dbus_interface=cs.CHANNEL_TYPE_CALL)
# We should have a codec offer
check_and_accept_offer (q, bus, conn, self_handle, remote_handle,
content, codecs)
--
1.5.6.5
More information about the telepathy-commits
mailing list