diff --git a/modules_k/pua/send_publish.c b/modules_k/pua/send_publish.c index 3523cbc..4c9c07f 100644 --- a/modules_k/pua/send_publish.c +++ b/modules_k/pua/send_publish.c @@ -425,11 +425,13 @@ int send_publish( publ_info_t* publ ) presentity= search_htable(&pres, hash_code); +#if 0 if(publ->etag && presentity== NULL) { lock_release(&HashT->p_records[hash_code].lock); return 418; } +#endif if(publ->flag & INSERT_TYPE) { @@ -537,8 +539,10 @@ send_publish: if(publ->flag & UPDATE_TYPE) LM_DBG("etag:%.*s\n", etag.len, etag.s); - str_hdr = publ_build_hdr((publ->expires< 0)?3600:publ->expires, ev, &publ->content_type, - (publ->flag & UPDATE_TYPE)?&etag:NULL, publ->extra_headers, (body)?1:0); + str_hdr = publ_build_hdr((publ->expires< 0)?3600:publ->expires, ev, + &publ->content_type, + (publ->flag & UPDATE_TYPE)?&etag:publ->etag, publ->extra_headers, + (body)?1:0); if(str_hdr == NULL) {