Shared SMPP related code used by Just and Funnel