Module: kamailio Branch: master Commit: ad5a346c13c20603f732b6a0a0988746850cfbaf URL: https://github.com/kamailio/kamailio/commit/ad5a346c13c20603f732b6a0a0988746...
Author: Henning Westerholt hw@skalatan.de Committer: Henning Westerholt hw@skalatan.de Date: 2019-07-15T20:37:46+02:00
ims_registrar_pcscf: remove commented out code after merge 57961c9f
---
Modified: src/modules/ims_registrar_pcscf/save.c
---
Diff: https://github.com/kamailio/kamailio/commit/ad5a346c13c20603f732b6a0a0988746... Patch: https://github.com/kamailio/kamailio/commit/ad5a346c13c20603f732b6a0a0988746...
---
diff --git a/src/modules/ims_registrar_pcscf/save.c b/src/modules/ims_registrar_pcscf/save.c index 9773477131..50d1fb2333 100644 --- a/src/modules/ims_registrar_pcscf/save.c +++ b/src/modules/ims_registrar_pcscf/save.c @@ -204,18 +204,7 @@ static inline int update_contacts(struct sip_msg *req,struct sip_msg *rpl, udoma LM_DBG("This is a de-registration for contact <%.*s> but contact is not in usrloc - ignore\n", c->uri.len, c->uri.s); goto next_contact; } - - LM_DBG("We don't add contact from the 200OK that did not go through us (ie, not present in explicit REGISTER that went through us\n"); -// LM_DBG("Adding pcontact: <%.*s>, expires: %d which is in %d seconds\n", c->uri.len, c->uri.s, expires, expires-local_time_now); -// ci.reg_state = PCONTACT_REGISTERED; -// if (ul.insert_pcontact(_d, &c->uri, &ci, &pcontact) != 0) { -// LM_ERR("Failed inserting new pcontact\n"); -// } else { -// //register for callbacks on this contact so we can send PUBLISH to SCSCF should status change -// LM_DBG("registering for UL callback\n"); -// ul.register_ulcb(pcontact, PCSCF_CONTACT_DELETE | PCSCF_CONTACT_EXPIRE, callback_pcscf_contact_cb, NULL); -// //we also need to subscribe to reg event of this contact at SCSCF -// } + LM_DBG("We don't add contact from the 200OK that did not go through us (ie, not present in explicit REGISTER that went through us\n"); } else { //contact already exists - update LM_DBG("contact already exists and is in state (%d) : [%s]\n",pcontact->reg_state, reg_state_to_string(pcontact->reg_state)); if ((expires-local_time_now)<=0) { //remove contact - de-register