jingle/jingle.c
changeset 48 3c08b78be871
parent 47 964b3ebeba8d
child 52 d803c882a182
equal deleted inserted replaced
47:964b3ebeba8d 48:3c08b78be871
   181  * Reply to a Jingle IQ with an error.
   181  * Reply to a Jingle IQ with an error.
   182  */
   182  */
   183 void jingle_send_iq_error(LmMessage *m, const gchar *errtype,
   183 void jingle_send_iq_error(LmMessage *m, const gchar *errtype,
   184                           const gchar *cond, const gchar *jinglecond)
   184                           const gchar *cond, const gchar *jinglecond)
   185 {
   185 {
       
   186   ack_iq *elem;
   186   LmMessage *r = jingle_new_iq_error(m, errtype, cond, jinglecond);
   187   LmMessage *r = jingle_new_iq_error(m, errtype, cond, jinglecond);
   187   if (r) {
   188   if (r) {
   188 	  lm_connection_send(lconnection, r, NULL);
   189 	  elem->id = g_strdup(lm_message_get_id(r));
       
   190      elem->callback = NULL;
       
   191      elem->udata = NULL;
       
   192      add_ack_wait(elem);
       
   193      lm_connection_send_with_reply(lconnection, r, jingle_ack_iq_handler, NULL);
   189 	  lm_message_unref(r);
   194 	  lm_message_unref(r);
   190   }
   195   }
   191 }
   196 }
   192 
   197 
   193 /**
   198 /**