From: Anthony Minessale Date: Wed, 3 May 2006 18:41:14 +0000 (+0000) Subject: update X-Git-Tag: v1.0-beta1~2741 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5ad8162dbf33cdec980925cc8b91cca001487f66;p=thirdparty%2Ffreeswitch.git update git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1329 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/libs/libdingaling/src/libdingaling.c b/libs/libdingaling/src/libdingaling.c index 827a40bd59..1486d77b26 100644 --- a/libs/libdingaling/src/libdingaling.c +++ b/libs/libdingaling/src/libdingaling.c @@ -401,6 +401,10 @@ 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, '/'))) { @@ -983,9 +987,11 @@ 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); + apr_queue_push(handle->queue, msg); apr_queue_push(handle->queue, pres); + //schedule_packet(handle, next_id(), pres, LDL_RETRY); started = apr_time_now();