Module: kamailio Branch: master Commit: 6710f13baa284185d6a7fdd4907719c304f6a123 URL: https://github.com/kamailio/kamailio/commit/6710f13baa284185d6a7fdd4907719c304f6a123
Author: Victor Seva <linuxman...@torreviejawireless.org> Committer: Victor Seva <linuxman...@torreviejawireless.org> Date: 2025-08-01T16:09:56+02:00 ims_registrar_pcscf: print string value of reg_state This helps a bit while debugging --- Modified: src/modules/ims_registrar_pcscf/service_routes.c Modified: src/modules/ims_registrar_pcscf/ul_callback.c --- Diff: https://github.com/kamailio/kamailio/commit/6710f13baa284185d6a7fdd4907719c304f6a123.diff Patch: https://github.com/kamailio/kamailio/commit/6710f13baa284185d6a7fdd4907719c304f6a123.patch --- diff --git a/src/modules/ims_registrar_pcscf/service_routes.c b/src/modules/ims_registrar_pcscf/service_routes.c index 565ed4f8bea..8a31128d61d 100644 --- a/src/modules/ims_registrar_pcscf/service_routes.c +++ b/src/modules/ims_registrar_pcscf/service_routes.c @@ -942,9 +942,9 @@ int pcscf_unregister( ul.lock_udomain(_d, &pcontact->via_host, pcontact->via_port, pcontact->via_proto); - LM_DBG("Updating contact [%.*s]: setting state to " - "PCONTACT_DEREG_PENDING_PUBLISH\n", - pcontact->aor.len, pcontact->aor.s); + LM_DBG("Updating contact [%.*s]: setting state to %s\n", + pcontact->aor.len, pcontact->aor.s, + reg_state_to_string(pcontact->reg_state)); ci.reg_state = PCONTACT_DEREG_PENDING_PUBLISH; ci.num_service_routes = 0; diff --git a/src/modules/ims_registrar_pcscf/ul_callback.c b/src/modules/ims_registrar_pcscf/ul_callback.c index 9b732eceeea..44bbb274ec1 100644 --- a/src/modules/ims_registrar_pcscf/ul_callback.c +++ b/src/modules/ims_registrar_pcscf/ul_callback.c @@ -285,7 +285,7 @@ void callback_pcscf_contact_cb(struct pcontact *c, int type, void *param) LM_DBG("PCSCF Contact Callback in regsitrar!\n"); LM_DBG("Contact AOR: [%.*s]\n", c->aor.len, c->aor.s); LM_DBG("Callback type [%d]\n", type); - LM_DBG("Reg state [%d]\n", c->reg_state); + LM_DBG("Reg state [%s]\n", reg_state_to_string(c->reg_state)); if((type & PCSCF_CONTACT_UPDATE)) { //send publish for each associated IMPU _______________________________________________ Kamailio - Development Mailing List -- sr-dev@lists.kamailio.org To unsubscribe send an email to sr-dev-le...@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender!