[Freeswitch-svn] [commit] r4886 - freeswitch/trunk/libs/libdingaling/src
Freeswitch SVN
anthm at freeswitch.org
Sat Apr 7 17:14:21 EDT 2007
Author: anthm
Date: Sat Apr 7 17:14:21 2007
New Revision: 4886
Modified:
freeswitch/trunk/libs/libdingaling/src/libdingaling.c
Log:
merge 2
Modified: freeswitch/trunk/libs/libdingaling/src/libdingaling.c
==============================================================================
--- freeswitch/trunk/libs/libdingaling/src/libdingaling.c (original)
+++ freeswitch/trunk/libs/libdingaling/src/libdingaling.c Sat Apr 7 17:14:21 2007
@@ -1870,18 +1870,19 @@
apr_hash_set(handle->probe_hash, id, APR_HASH_KEY_STRING, &buffer);
- msg = iks_make_s10n (IKS_TYPE_SUBSCRIBE, id, notice);
- iks_insert_attrib(msg, "from", from);
- apr_queue_push(handle->queue, msg);
-
started = time(NULL);
for(;;) {
elapsed = time(NULL) - started;
if (elapsed == next) {
+ msg = iks_make_s10n (IKS_TYPE_SUBSCRIBE, id, notice);
+ iks_insert_attrib(msg, "from", from);
+ apr_queue_push(handle->queue, msg);
+
pres = iks_new("presence");
+ iks_insert_attrib(pres, "xmlns", "jabber:client");
iks_insert_attrib(pres, "type", "probe");
- iks_insert_attrib(pres, "from", from);
iks_insert_attrib(pres, "to", id);
+ iks_insert_attrib(pres, "from", from);
apr_queue_push(handle->queue, pres);
next += 5;
}
More information about the Freeswitch-svn
mailing list