add presence
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2378 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
5ea6d5f03a
commit
3761d20e8a
|
@ -148,6 +148,17 @@ SWITCH_DECLARE_GLOBAL_STRING_FUNC(set_global_jid, globals.jid)
|
|||
|
||||
static int on_result(struct session *sess, ikspak * pak)
|
||||
{
|
||||
iks *msg, *ctag;
|
||||
|
||||
msg = iks_make_pres (IKS_SHOW_AVAILABLE, "Available");
|
||||
ctag = iks_insert(msg, "c");
|
||||
iks_insert_attrib(ctag, "node", "http://www.freeswitch.org/xmpp/client/caps");
|
||||
iks_insert_attrib(ctag, "ver", "1.0.0.1");
|
||||
iks_insert_attrib(ctag, "client", "libdingaling");
|
||||
iks_insert_attrib(ctag, "xmlns", "http://jabber.org/protocol/caps");
|
||||
|
||||
iks_send(sess->parser, msg);
|
||||
iks_delete(msg);
|
||||
|
||||
return IKS_FILTER_EAT;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue