Skip to main content

Function Interface for Lua

function mod:smpp_log_conversion(conn, msg, event)

Function Interface for C

static void sample_smpp_log_conversion_hook (void  *closure,
smpp_conn* conn, ec_message * m, const char* event)

This interface is the same as other C hooks. The function name is not significant as long as it is registered as smpp_log_conversion as "register_smpp_log_conversion_hook_first(sample_smpp_log_conversion, ...)" during module initialization. See “Examples”.

Parameters

  1. a reference to the smpp_conn structure

  2. an ec_message

  3. an event string: "smpp to ec_message" for MO, and "ec_message to smpp" for MT

Return Values

NONE

Was this page helpful?