]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
update
authorAnthony Minessale <anthony.minessale@gmail.com>
Wed, 3 May 2006 18:43:57 +0000 (18:43 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Wed, 3 May 2006 18:43:57 +0000 (18:43 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1330 d0543943-73ff-0310-b7d9-9358b9ac24b2

libs/libdingaling/src/libdingaling.c

index 1486d77b26303259cca5ad88f65f1f13aad527e5..db0cafc53ca6d5c11eaffecaf1465732ff30aeb3 100644 (file)
@@ -401,10 +401,6 @@ static int on_presence(void *user_data, ikspak *pak)
        char *resource;
        struct ldl_buffer *buffer;
        size_t x;
-       iks *msg;
-
-       msg = iks_make_s10n (IKS_TYPE_SUBSCRIBE, id, "pong"); 
-       apr_queue_push(handle->queue, msg);
 
        apr_cpystrn(id, from, sizeof(id));
        if ((resource = strchr(id, '/'))) {
@@ -987,6 +983,7 @@ char *ldl_handle_probe(ldl_handle_t *handle, char *id, char *buf, unsigned int l
        apr_hash_set(handle->probe_hash, id, APR_HASH_KEY_STRING, &buffer);
        
        msg = iks_make_s10n (IKS_TYPE_SUBSCRIBE, id, notice); 
+       msg = iks_make_s10n (IKS_TYPE_SUBSCRIBED, id, notice); 
 
        apr_queue_push(handle->queue, msg);
        apr_queue_push(handle->queue, pres);