|
@@ -321,7 +321,7 @@ void ul_publish(ucontact_t* c, int type, void* param)
|
|
print_publ(publ);
|
|
print_publ(publ);
|
|
if((error=_pu_pua.send_publish(publ))< 0)
|
|
if((error=_pu_pua.send_publish(publ))< 0)
|
|
{
|
|
{
|
|
- LM_ERR("while sending publish for ul event %d\n", type);
|
|
|
|
|
|
+ LM_ERR("failed sending publish for ul event %d\n", type);
|
|
if((type & UL_CONTACT_UPDATE) && error == ERR_PUBLISH_NO_BODY) {
|
|
if((type & UL_CONTACT_UPDATE) && error == ERR_PUBLISH_NO_BODY) {
|
|
/* This error can occur if Kamailio was restarted/stopped and for any reason couldn't store a pua
|
|
/* This error can occur if Kamailio was restarted/stopped and for any reason couldn't store a pua
|
|
* entry in 'pua' DB table. It can also occur if 'pua' table is cleaned externally while Kamailio
|
|
* entry in 'pua' DB table. It can also occur if 'pua' table is cleaned externally while Kamailio
|
|
@@ -334,19 +334,16 @@ void ul_publish(ucontact_t* c, int type, void* param)
|
|
* previous one expires), but this is a minor issue. */
|
|
* previous one expires), but this is a minor issue. */
|
|
LM_ERR("UPDATE action generated a PUBLISH without body -> invoking INSERT action\n");
|
|
LM_ERR("UPDATE action generated a PUBLISH without body -> invoking INSERT action\n");
|
|
ul_publish(c, UL_CONTACT_INSERT, param);
|
|
ul_publish(c, UL_CONTACT_INSERT, param);
|
|
- return;
|
|
|
|
|
|
+ goto error;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- pua_ul_publish= 0;
|
|
|
|
-
|
|
|
|
error:
|
|
error:
|
|
-
|
|
|
|
|
|
+ pua_ul_publish = 0;
|
|
if(publ)
|
|
if(publ)
|
|
pkg_free(publ);
|
|
pkg_free(publ);
|
|
|
|
|
|
- if(body)
|
|
|
|
- {
|
|
|
|
|
|
+ if(body) {
|
|
if(body->s)
|
|
if(body->s)
|
|
xmlFree(body->s);
|
|
xmlFree(body->s);
|
|
pkg_free(body);
|
|
pkg_free(body);
|
|
@@ -354,7 +351,6 @@ error:
|
|
|
|
|
|
if(uri.s)
|
|
if(uri.s)
|
|
pkg_free(uri.s);
|
|
pkg_free(uri.s);
|
|
- pua_ul_publish= 0;
|
|
|
|
|
|
|
|
return;
|
|
return;
|
|
}
|
|
}
|