[sr-dev] [kamailio/kamailio] ims_charging unlink_unsafe_ro_session (#1549)

thulasizwe-n notifications at github.com
Thu Jun 7 15:51:00 CEST 2018


Ok  I'll do the pull request etc.
Please forgive my unfamiliarity with kamailio patch standards...am in process of learning.

Below is from modules/ims_charging/ro_session_hash.h function, I've just indicated patch changes as   "+"

static inline void unlink_unsafe_ro_session(struct ro_session_entry *ro_session_entry, struct ro_session *ro_session) {
+    if ((ro_session->next == 0x00) &&   
+       (ro_session->prev == 0x00) &&
+        (ro_session != ro_session_entry->first) )
+    {
+       return;
+  }

    if (ro_session->next)
        ro_session->next->prev = ro_session->prev;
    else
        ro_session_entry->last = ro_session->prev;
    if (ro_session->prev)
        ro_session->prev->next = ro_session->next;
    else
        ro_session_entry->first = ro_session->next;

    ro_session->next = ro_session->prev = 0;

    counter_add(ims_charging_cnts_h.active_ro_sessions, -1);

    return;
}


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/1549#issuecomment-395427334
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20180607/02883812/attachment-0001.html>


More information about the sr-dev mailing list