[sr-dev] git:master:0e1b2bc9: modules/ims_registrar_scscf: added logging of return code on NOTIFY response

Ovidiu Sas osas at voipembedded.com
Tue Jan 13 15:11:10 CET 2015


The debug probe text should not explicitly specify the log level and
the calling function.
All that info is automatically handled/added by the LM_ macro.

LM_DBG("received NOTIFY reply type [%d] and code [%d]\n", type, ps->code);

-ovidiu

On Tue, Jan 13, 2015 at 8:59 AM, Richard Good
<richard.good at smilecoms.com> wrote:
> Module: kamailio
> Branch: master
> Commit: 0e1b2bc99e04547b8a7482197412dc9b866eb320
> URL: https://github.com/kamailio/kamailio/commit/0e1b2bc99e04547b8a7482197412dc9b866eb320
>
> Author: Richard Good <richard.good at smilecoms.com>
> Committer: Richard Good <richard.good at smilecoms.com>
> Date: 2015-01-13T15:58:38+02:00
>
> modules/ims_registrar_scscf: added logging of return code on NOTIFY response
>
> ---
>
> Modified: modules/ims_registrar_scscf/registrar_notify.c
>
> ---
>
> Diff:  https://github.com/kamailio/kamailio/commit/0e1b2bc99e04547b8a7482197412dc9b866eb320.diff
> Patch: https://github.com/kamailio/kamailio/commit/0e1b2bc99e04547b8a7482197412dc9b866eb320.patch
>
> ---
>
> diff --git a/modules/ims_registrar_scscf/registrar_notify.c b/modules/ims_registrar_scscf/registrar_notify.c
> index 5f131d9..1831b9f 100644
> --- a/modules/ims_registrar_scscf/registrar_notify.c
> +++ b/modules/ims_registrar_scscf/registrar_notify.c
> @@ -1764,7 +1764,7 @@ str get_reginfo_partial(impurecord_t *r, ucontact_t *c, int event_type) {
>   * Callback for the UAC response to NOTIFY
>   */
>  void uac_request_cb(struct cell *t, int type, struct tmcb_params * ps) {
> -    LM_DBG("DBG:uac_request_cb: Type %d\n", type);
> +    LM_DBG("DBG: uac_request_cb on response to NOTIFY: Type %d and code %d\n", type, ps->code);
>  }
>
>  static int free_tm_dlg(dlg_t * td) {
>
>
> _______________________________________________
> sr-dev mailing list
> sr-dev at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev



-- 
VoIP Embedded, Inc.
http://www.voipembedded.com



More information about the sr-dev mailing list