rem: xj_send_sip_msgz(p->id, &jab_gw_name, NULL, XJ_DMSG_INF_DISCONNECTED, NULL);
context: int xj_wlist_clean_jobs(xj_wlist jwl, int idx, int fl){	xj_jkey p;	if(jwl==NULL || idx < 0 || idx >= jwl->len || !jwl->workers[idx].sip_ids)		return -1;	s_lock_at(jwl->sems, idx);	while((p=(xj_jkey)delpos234(jwl->workers[idx].sip_ids, 0))!=NULL)	{		if(fl)		{			DBG("XJAB:xj_wlist_send_info: sending disconnect message"				" to <%.*s>\n",	p->id->len, p->id->s);			xj_send_sip_msgz(p->id, &jab_gw_name, NULL, 				XJ_DMSG_INF_DISCONNECTED, NULL);		}		jwl->workers[idx].nr--;		xj_jkey_free_p(p);	}	s_unlock_at(jwl->sems, idx);	return 0;}