Skip to main content

Function Interface for Lua

function mod:smpp_log_permfail(conn, msg, error)

Function Interface for C

static void sample_smpp_log_permfail_hook (void  *closure, smpp_conn* conn, ec_message * m,
  const char* error)

The C hook has to be registered as smpp_log_permfail in the following way: register_smpp_log_permfail_hook_first(sample_smpp_log_permfail, ...).


Parameters are passed into this hook:

  1. a reference to the smpp_conn structure

  2. an ec_message.

  3. a string value of the error description

Return Values


Was this page helpful?