*
*/
+/*!
+ * \file
+ * \brief Kamailio uac :: The SIP UA client module
+ * \ingroup uac
+ * Module: \ref uac
+ */
+
+/*! \defgroup uac The SIP UA Client module
+ *
+ */
+
#include <stdio.h>
#include <string.h>
REQUEST_ROUTE | BRANCH_ROUTE },
{"uac_replace_from", (cmd_function)w_replace_from, 1, fixup_replace_uri, 0,
REQUEST_ROUTE | BRANCH_ROUTE },
- {"uac_restore_from", (cmd_function)w_restore_from, 0, 0, 0,
+ {"uac_restore_from", (cmd_function)w_restore_from, 0, 0, 0,
REQUEST_ROUTE },
{"uac_replace_to", (cmd_function)w_replace_to, 2, fixup_replace_uri, 0,
REQUEST_ROUTE | BRANCH_ROUTE },
{"uac_replace_to", (cmd_function)w_replace_to, 1, fixup_replace_uri, 0,
REQUEST_ROUTE | BRANCH_ROUTE },
- {"uac_restore_to", (cmd_function)w_restore_to, 0, 0, 0,
- REQUEST_ROUTE },
- {"uac_auth", (cmd_function)w_uac_auth, 0, 0, 0,
- FAILURE_ROUTE },
- {"uac_req_send", (cmd_function)w_uac_req_send, 0, 0, 0,
- ANY_ROUTE},
+ {"uac_restore_to", (cmd_function)w_restore_to, 0, 0, 0, REQUEST_ROUTE },
+ {"uac_auth", (cmd_function)w_uac_auth, 0, 0, 0, FAILURE_ROUTE },
+ {"uac_req_send", (cmd_function)w_uac_req_send, 0, 0, 0, ANY_ROUTE},
{"uac_reg_lookup", (cmd_function)w_uac_reg_lookup, 2, fixup_pvar_pvar,
fixup_free_pvar_pvar, ANY_ROUTE },
{"uac_reg_request_to", (cmd_function)w_uac_reg_request_to, 2, fixup_pvar_uint, fixup_free_pvar_uint,
REQUEST_ROUTE | FAILURE_ROUTE | BRANCH_ROUTE },
- {"bind_uac", (cmd_function)bind_uac, 1, 0, 0,
- 0},
+ {"bind_uac", (cmd_function)bind_uac, 1, 0, 0, 0},
{0,0,0,0,0,0}
};
/* Exported parameters */
static param_export_t params[] = {
- {"rr_from_store_param", PARAM_STR, &rr_from_param },
- {"rr_to_store_param", PARAM_STR, &rr_to_param },
- {"restore_mode", PARAM_STRING, &restore_mode_str },
- {"restore_dlg", INT_PARAM, &uac_restore_dlg },
- {"restore_passwd", PARAM_STR, &uac_passwd },
- {"restore_from_avp", PARAM_STR, &restore_from_avp },
- {"restore_to_avp", PARAM_STR, &restore_to_avp },
- {"credential", PARAM_STRING|USE_FUNC_PARAM, (void*)&add_credential },
- {"auth_username_avp", PARAM_STRING, &auth_username_avp },
- {"auth_realm_avp", PARAM_STRING, &auth_realm_avp },
- {"auth_password_avp", PARAM_STRING, &auth_password_avp },
- {"reg_db_url", PARAM_STR, ®_db_url },
- {"reg_db_table", PARAM_STR, ®_db_table },
- {"reg_contact_addr", PARAM_STR, ®_contact_addr },
- {"reg_timer_interval", INT_PARAM, ®_timer_interval },
- {"reg_retry_interval", INT_PARAM, ®_retry_interval },
+ {"rr_from_store_param", PARAM_STR, &rr_from_param },
+ {"rr_to_store_param", PARAM_STR, &rr_to_param },
+ {"restore_mode", PARAM_STRING, &restore_mode_str },
+ {"restore_dlg", INT_PARAM, &uac_restore_dlg },
+ {"restore_passwd", PARAM_STR, &uac_passwd },
+ {"restore_from_avp", PARAM_STR, &restore_from_avp },
+ {"restore_to_avp", PARAM_STR, &restore_to_avp },
+ {"credential", PARAM_STRING|USE_FUNC_PARAM, (void*)&add_credential },
+ {"auth_username_avp", PARAM_STRING, &auth_username_avp },
+ {"auth_realm_avp", PARAM_STRING, &auth_realm_avp },
+ {"auth_password_avp", PARAM_STRING, &auth_password_avp },
+ {"reg_db_url", PARAM_STR, ®_db_url },
+ {"reg_db_table", PARAM_STR, ®_db_table },
+ {"reg_contact_addr", PARAM_STR, ®_contact_addr },
+ {"reg_timer_interval", INT_PARAM, ®_timer_interval },
+ {"reg_retry_interval", INT_PARAM, ®_retry_interval },
{0, 0, 0}
};
DEFAULT_DLFLAGS, /* dlopen flags */
cmds, /* exported functions */
params, /* param exports */
- 0, /* exported statistics */
- 0, /* exported MI functions */
+ 0, /* exported statistics */
+ 0, /* exported MI functions */
mod_pvs, /* exported pseudo-variables */
- 0, /* extra processes */
+ 0, /* extra processes */
mod_init, /* module initialization function */
0,
mod_destroy,
/* p1 display , p2 uri */
if ( p1!=NULL ) {
- if(pv_printf_s( msg, (pv_elem_p)p1, &dsp_s)!=0)
+ if(pv_printf_s( msg, (pv_elem_p)p1, &dsp_s)!=0) {
return -1;
+ }
dsp = &dsp_s;
}
/* compute the URI string; if empty string -> make it NULL */
- if (pv_printf_s( msg, (pv_elem_p)p2, &uri_s)!=0)
+ if (pv_printf_s( msg, (pv_elem_p)p2, &uri_s)!=0) {
return -1;
+ }
uri = uri_s.len?&uri_s:NULL;
if (parse_from_header(msg)<0 ) {