Hello,
what would be the drawback of having sip_msg being all the time in shared memory? Would pkg vs shm operations have relevant impact?
From personal observations, most of the requests (over 95%) end in TM module (to absorb retransmission or to forward) where the sip_msg s moved to shm. It would make things simpler for tm callbacks and related routes (no need to move back/forward from/to pkg/shm). Parsing will happen always once, as now cloning to shm in tm discards some parsed headers, which may be needed in failure route or callbacks.
Cheers, Daniel