Module: sip-router Branch: master Commit: da3d48de7d52df83fcb568530441e7ac6475baae URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=da3d48de...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@gmail.com Date: Tue Oct 29 10:08:04 2013 +0100
pua_publish: more verbose output for error case when sending publish
---
modules/pua_usrloc/ul_publish.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/pua_usrloc/ul_publish.c b/modules/pua_usrloc/ul_publish.c index 4eaf7a9..24dd3c9 100644 --- a/modules/pua_usrloc/ul_publish.c +++ b/modules/pua_usrloc/ul_publish.c @@ -323,8 +323,8 @@ void ul_publish(ucontact_t* c, int type, void* param) print_publ(publ); if((error=pua_send_publish(publ))< 0) { - LM_ERR("while sending publish\n"); - if(type & UL_CONTACT_UPDATE && error == ERR_PUBLISH_NO_BODY) { + LM_ERR("while sending publish for ul event %d\n", type); + 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 * entry in 'pua' DB table. It can also occur if 'pua' table is cleaned externally while Kamailio * is stopped so cannot retrieve these entries from DB when restarting.