]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
merge 2
authorAnthony Minessale <anthony.minessale@gmail.com>
Sat, 7 Apr 2007 21:14:21 +0000 (21:14 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Sat, 7 Apr 2007 21:14:21 +0000 (21:14 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4886 d0543943-73ff-0310-b7d9-9358b9ac24b2

libs/libdingaling/src/libdingaling.c

index 8c4622ed0d37a7246b90ad8f1f43c8f05e2c1142..22056868ab9d073d22b4d34a2481a49a3b37d14d 100644 (file)
@@ -1870,18 +1870,19 @@ char *ldl_handle_probe(ldl_handle_t *handle, char *id, char *from, char *buf, un
 
        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;
                }