Skip to content

Commit

Permalink
topoh: updates for core events API changes
Browse files Browse the repository at this point in the history
  • Loading branch information
miconda committed Jun 14, 2017
1 parent 3cea0dd commit bdec54b
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/modules/topoh/topoh_mod.c
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2009 SIP-Router.org
* Copyright (C) 2009 kamailio.org
*
* This file is part of Kamailio, a free SIP server.
*
Expand Down Expand Up @@ -77,8 +77,8 @@ int th_sanity_checks = 0;
sanity_api_t scb;
int th_mask_addr_myself = 0;

int th_msg_received(void *data);
int th_msg_sent(void *data);
int th_msg_received(sr_event_param_t *evp);
int th_msg_sent(sr_event_param_t *evp);

/** module functions */
static int mod_init(void);
Expand Down Expand Up @@ -271,15 +271,15 @@ int th_prepare_msg(sip_msg_t *msg)
/**
*
*/
int th_msg_received(void *data)
int th_msg_received(sr_event_param_t *evp)
{
sip_msg_t msg;
str *obuf;
char *nbuf = NULL;
int direction;
int dialog;

obuf = (str*)data;
obuf = (str*)evp->data;
memset(&msg, 0, sizeof(sip_msg_t));
msg.buf = obuf->s;
msg.len = obuf->len;
Expand Down Expand Up @@ -377,15 +377,15 @@ int th_msg_received(void *data)
/**
*
*/
int th_msg_sent(void *data)
int th_msg_sent(sr_event_param_t *evp)
{
sip_msg_t msg;
str *obuf;
int direction;
int dialog;
int local;

obuf = (str*)data;
obuf = (str*)evp->data;
memset(&msg, 0, sizeof(sip_msg_t));
msg.buf = obuf->s;
msg.len = obuf->len;
Expand Down

0 comments on commit bdec54b

Please sign in to comment.