[Telepathy] Receiving a SIP call

Pedro Zamuner pedrozamuner at gmail.com
Tue Feb 15 10:28:42 PST 2011


I'm working in an application to handle media channels based on
"text-handler" example from telepathy-glib.
The purpose of my program is to answer a SIP call from an Empathy client. I
don't mind handling the stream yet, I just want to answer it properly (if
it's possible to separate it).

As far as I know, the preferred way to create a channel is via method call
on the Client by the ChannelDispatcher. This will
call the HandleChannels method in the client where I should choose which
channel (Streamed Media, in my case) I want, and make sure the channel is

Accordingly to the telepathy specification, handlers are the user interface
for one single channel and they must suit the channel characteristics. In my
case, it must implement the MediaSignalling interface.

To accept the call, I try to add the local pending member (the channel self
handle) to the group's members and expect that telepathy negotiate the call
for me.
The problem is that it seems that the local user is not added to the group

Anyway, I tried to go further and create the session handler using
"tp_cli_channel_interface_media_signalling_call_get_session_handlers". It
calls the callback function and there I can retrieve the it's properties
object_path and media_type. Then I create the object and when I call
tp_cli_media_session_handler_call_ready it says "Method "Ready" with
signature "" on interface "org.freedesktop.Telepathy.Media.SessionHandler"
doesn't exist"

For now, I can see in telepathy-sofiasip logs that the remote user sends a
"CANCEL" message with reason "NO ANSWER".

I'm looking foward to hearing from you what I've missed to accept the call.

Here is my application source code: http://pastebin.com/8DtGXQjK

Here is my telepathy-sofiasip log: http://pastebin.com/GKjNUzSU


Pedro Zamuner
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/telepathy/attachments/20110215/9ee6030b/attachment.html>

More information about the telepathy mailing list