[asterisk-commits] mmichelson: branch mmichelson/res_sip r378712 - /team/mmichelson/res_sip/res/
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Jan 9 09:48:19 CST 2013
Author: mmichelson
Date: Wed Jan 9 09:48:15 2013
New Revision: 378712
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=378712
Log:
Use safer method of printing pj_str_t since it is not null-terminated.
Modified:
team/mmichelson/res_sip/res/res_sip.c
Modified: team/mmichelson/res_sip/res/res_sip.c
URL: http://svnview.digium.com/svn/asterisk/team/mmichelson/res_sip/res/res_sip.c?view=diff&rev=378712&r1=378711&r2=378712
==============================================================================
--- team/mmichelson/res_sip/res/res_sip.c (original)
+++ team/mmichelson/res_sip/res/res_sip.c Wed Jan 9 09:48:15 2013
@@ -31,9 +31,10 @@
return -1;
}
if (pjsip_endpt_register_module(ast_pjsip_endpoint, module) != PJ_SUCCESS) {
- ast_log(LOG_ERROR, "Unable to register module %s\n", pj_strbuf(module->name));
+ ast_log(LOG_ERROR, "Unable to register module %.*s\n", pj_strlen(module->name), pj_strbuf(module->name));
return -1;
}
+ ast_debug(1, "Registered SIP service %.*s\n", pj_strlen(module->name), pj_strbuf(module->name));
return 0;
}
@@ -43,6 +44,7 @@
return;
}
pjsip_endpt_unregister_module(ast_pjsip_endpoint, module);
+ ast_debug(1, "Unregistered SIP service %.*s\n", pj_strlen(module->name), pj_strbuf(module->name));
}
AO2_GLOBAL_OBJ_STATIC(registered_authenticator);
More information about the asterisk-commits
mailing list