Module: kamailio Branch: master Commit: 5ef99044c48cdb8e349be80e83c7617859134b28 URL: https://github.com/kamailio/kamailio/commit/5ef99044c48cdb8e349be80e83c7617859134b28
Author: Victor Seva <[email protected]> Committer: Victor Seva <[email protected]> Date: 2026-02-26T15:56:04+01:00 ims_dialog: print state as string for debug --- Modified: src/modules/ims_dialog/dlg_handlers.c --- Diff: https://github.com/kamailio/kamailio/commit/5ef99044c48cdb8e349be80e83c7617859134b28.diff Patch: https://github.com/kamailio/kamailio/commit/5ef99044c48cdb8e349be80e83c7617859134b28.patch --- diff --git a/src/modules/ims_dialog/dlg_handlers.c b/src/modules/ims_dialog/dlg_handlers.c index bf64e975392..d1d05dc90ec 100644 --- a/src/modules/ims_dialog/dlg_handlers.c +++ b/src/modules/ims_dialog/dlg_handlers.c @@ -1037,8 +1037,8 @@ void dlg_onroute(struct sip_msg *req, str *route_params, void *param) if(event == DLG_EVENT_REQCANCEL && new_state == DLG_STATE_DELETED && old_state != DLG_STATE_DELETED) { - LM_DBG("CANCEL successfully processed and old state was [%d]\n", - old_state); + LM_DBG("CANCEL successfully processed and old state was [%s]\n", + state_to_char(old_state)); ret = remove_dialog_timer(&dlg->tl); if(ret < 0) { @@ -1510,7 +1510,8 @@ void dlg_onreply(struct cell *t, int type, struct tmcb_params *param) goto done; } - LM_DBG("new state is %i and old state is %i\n", new_state, old_state); + LM_DBG("new state is %s and old state is %s\n", state_to_char(new_state), + state_to_char(old_state)); if(new_state == DLG_STATE_CONFIRMED_NA && old_state != DLG_STATE_CONFIRMED_NA @@ -1533,9 +1534,10 @@ void dlg_onreply(struct cell *t, int type, struct tmcb_params *param) update_dialog_dbinfo(dlg); if(0 != insert_dlg_timer(&dlg->tl, dlg->lifetime)) { - LM_CRIT("Unable to insert dlg %p [%u:%u] on event %d [%d->%d] " + LM_CRIT("Unable to insert dlg %p [%u:%u] on event %d [%s->%s] " "with clid '%.*s' and tags '%.*s' \n", - dlg, dlg->h_entry, dlg->h_id, event, old_state, new_state, + dlg, dlg->h_entry, dlg->h_id, event, + state_to_char(old_state), state_to_char(new_state), dlg->callid.len, dlg->callid.s, dlg->from_tag.len, dlg->from_tag.s); } else { _______________________________________________ Kamailio - Development Mailing List -- [email protected] To unsubscribe send an email to [email protected] Important: keep the mailing list in the recipients, do not reply only to the sender!
