Module: kamailio Branch: 6.0 Commit: 96dc055e5bc08791e30296faa8a0f60867268aa5 URL: https://github.com/kamailio/kamailio/commit/96dc055e5bc08791e30296faa8a0f60867268aa5
Author: herlesupreeth <[email protected]> Committer: Victor Seva <[email protected]> Date: 2026-01-15T09:50:40+01:00 ims_registrar_scscf: fix populating of Subscription-State in NOTIFY from S-CSCF (cherry picked from commit b4e07a290b7cbf369762c579a81182a1f9edf6e4) --- Modified: src/modules/ims_registrar_scscf/registrar_notify.c --- Diff: https://github.com/kamailio/kamailio/commit/96dc055e5bc08791e30296faa8a0f60867268aa5.diff Patch: https://github.com/kamailio/kamailio/commit/96dc055e5bc08791e30296faa8a0f60867268aa5.patch --- diff --git a/src/modules/ims_registrar_scscf/registrar_notify.c b/src/modules/ims_registrar_scscf/registrar_notify.c index 63bd3ea597c..5ce22bc1cab 100644 --- a/src/modules/ims_registrar_scscf/registrar_notify.c +++ b/src/modules/ims_registrar_scscf/registrar_notify.c @@ -1709,7 +1709,7 @@ void create_notifications(udomain_t *_t, impurecord_t *r_passed, create_notification = 0; - if(s->expires > act_time) { + if(r->reg_state == IMPU_REGISTERED && s->expires > act_time) { subscription_state.s = (char *)pkg_malloc(32 * sizeof(char *)); subscription_state.len = 0; if(subscription_state.s) { @@ -1726,7 +1726,7 @@ void create_notifications(udomain_t *_t, impurecord_t *r_passed, } else { STR_PKG_DUP(subscription_state, subs_terminated, "pkg subs state"); - LM_DBG("Expires is past than current time! Subscription state: " + LM_DBG("Expires is past than current time or impu is not registered! Subscription state: " "[%.*s]\n", subscription_state.len, subscription_state.s); } _______________________________________________ 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!
