[Telepathy] Initiate a text chat/ channel
ved kpl
ved.kpl at gmail.com
Mon Sep 20 05:15:19 PDT 2010
Hi,
Also for now, I don't intend to have MUC, etc.. just a very simple
point to point conversation client.
Thanks,
On Mon, Sep 20, 2010 at 5:42 PM, ved kpl <ved.kpl at gmail.com> wrote:
> Hi Danielle,
>
> I have to build a minimalistic jabber client that supports text, audio
> and video calls.
> So i used the roster example as a reference, (yes, no mission-control for now).
> I have to get it up at the earliest, so i decided not to use
> mission-control services
> and built everything on top of roster example.
>
> But unfortunately, since last two days i have been struggling to get
> the outgoing channel setup working.
> It would be great if you could give me some pointers.... I tried the
> following code with no luck.
>
> static gboolean
> start_chat (gpointer data)
> {
> TpContact* contact = (TpContact*) data;
> TpAccount* account = tp_account_new (bus_daemon, );
>
> GHashTable* request = tp_asv_new (
> TP_IFACE_CHANNEL ".ChannelType",
> G_TYPE_STRING, TP_IFACE_CHANNEL_TYPE_TEXT,
> TP_IFACE_CHANNEL ".TargetHandleType",
> G_TYPE_UINT, TP_HANDLE_TYPE_CONTACT,
> TP_IFACE_CHANNEL ".TargetHandle",
> G_TYPE_UINT, tp_contact_get_handle (contact),
> TP_IFACE_CHANNEL ".TargetID",
> G_TYPE_STRING, tp_contact_get_identifier (contact),
> NULL);
>
> g_print ("=============================================\n");
>
> tp_cli_connection_interface_requests_call_ensure_channel (
> conn, -1, request, NULL, NULL, NULL, NULL);
>
> return FALSE;
> }
>
> Am I missing anything over here?
>
> Thanks
>
>
> On Mon, Sep 20, 2010 at 5:35 PM, Danielle Madeley
> <danielle.madeley at collabora.co.uk> wrote:
>> On Mon, 2010-09-20 at 17:27 +0530, ved kpl wrote:
>>> Hi,
>>>
>>> Basically I want to give my gtalk ID, password as input args and be online.
>>> Like, http://telepathy.freedesktop.org/doc/book/appendix.source-code.glib_get_roster.example.c.html
>>> app.
>>
>> Why don't you want to use the AccountManager/ChannelDispatcher?
>>
>> You can write a client without using Mission Control, but it's not
>> recommended. It would help if you could explain what your end goal is.
>>
>>> I modified the above app to handle incoming video, audio, text
>>> chats... But haven't been able to figure out
>>> the things that i need to add to support outgoing channels.
>>> Also there are no Account/AccountManager/ChannelDispatcher used in
>>> the above example...
>>> Can I get outgoing call working without using those?
>>>
>>> Thanks
>>>
>>> On Mon, Sep 20, 2010 at 4:26 PM, Danielle Madeley
>>> <danielle.madeley at collabora.co.uk> wrote:
>>> > Hi Vikram,
>>> >
>>> > You might find this example clearer:
>>> > http://git.collabora.co.uk/?p=telepathy-doc.git;a=blob;f=docs/examples/glib_text_channel/example.c;hb=HEAD
>>> >
>>> > Run it as ./example <account> <room name>
>>> >
>>> > On Mon, 2010-09-20 at 16:00 +0530, ved kpl wrote:
>>> >
>>> >> Also, How I do I run
>>> >> http://telepathy.freedesktop.org/doc/book/appendix.source-code.glib_jabber_muc.example.c.html
>>> >> ?
>>> >>
>>> >> I tried with
>>> >> ../jabber_mux_example .gabble/jabber/vikram_2efugro_40gmail_2ecom1
>>> >> But I dont see it going online, from the remote side and how do I give
>>> >> a password to it?
>>> >
>>> > What password?
>>> >
>>> > --danni
>>> >
>>> > --
>>> > Danielle Madeley
>>> > Software Developer, Collabora Ltd. Melbourne, Australia
>>> >
>>> > www.collabora.co.uk
>>> >
>>> >
>>> _______________________________________________
>>> telepathy mailing list
>>> telepathy at lists.freedesktop.org
>>> http://lists.freedesktop.org/mailman/listinfo/telepathy
>>
>> --
>> Danielle Madeley
>> Software Developer, Collabora Ltd. Melbourne, Australia
>>
>> www.collabora.co.uk
>>
>>
>
More information about the telepathy
mailing list