Skip to content

Commit

Permalink
options: port script functions to new param interface
Browse files Browse the repository at this point in the history
  • Loading branch information
rvlad-patrascu committed Apr 2, 2019
1 parent 3efeb48 commit ee532e9
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions modules/options/mod_options.c
Expand Up @@ -53,13 +53,15 @@ static str opt_500_rpl = str_init("Server internal error");

static int mod_init(void);

static int opt_reply(struct sip_msg* _msg, char* _foo, char* _bar);
static int opt_reply(struct sip_msg* _msg);
/*
* Exported functions
*/

static cmd_export_t cmds[] = {
{"options_reply", (cmd_function)opt_reply, 0, 0, 0, REQUEST_ROUTE},
{0, 0, 0, 0, 0, 0}
{"options_reply", (cmd_function)opt_reply, {{0,0,0}},
REQUEST_ROUTE},
{0,0,{{0,0,0}},0}
};

/*
Expand Down Expand Up @@ -186,7 +188,7 @@ static int mod_init(void) {
}


static int opt_reply(struct sip_msg* _msg, char* _foo, char* _bar) {
static int opt_reply(struct sip_msg* _msg) {

/* check if it is called for an OPTIONS request */
if (_msg->REQ_METHOD!=METHOD_OPTIONS) {
Expand Down

0 comments on commit ee532e9

Please sign in to comment.