From: Jeff Lenk Date: Sat, 19 Mar 2011 03:47:41 +0000 (-0500) Subject: OPENZAP-146 - this restores the correct behavior regression from Commit:03dc3b7b8d734... X-Git-Tag: v1.2-rc1~171^2~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=14bdb87e85a84e139770e43fbb424fd2d55680ce;p=thirdparty%2Ffreeswitch.git OPENZAP-146 - this restores the correct behavior regression from Commit:03dc3b7b8d734e5a916c0dd48c408e78e6f66f55 --- diff --git a/libs/freetdm/src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c b/libs/freetdm/src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c index b648daadaf..feea128eb7 100644 --- a/libs/freetdm/src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c +++ b/libs/freetdm/src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c @@ -1315,14 +1315,12 @@ static __inline__ ftdm_status_t wanpipe_channel_process_event(ftdm_channel_t *fc status = FTDM_BREAK; } else { ftdm_status_t status; - wanpipe_tdm_api_t onhook_tdm_api; - memset(&onhook_tdm_api, 0, sizeof(onhook_tdm_api)); - status = sangoma_tdm_txsig_onhook(fchan->sockfd, &onhook_tdm_api); + status = sangoma_tdm_txsig_onhook(fchan->sockfd, tdm_api); if (status) { snprintf(fchan->last_error, sizeof(fchan->last_error), "ONHOOK Failed"); return FTDM_FAIL; } - *event_id = onhook_tdm_api.wp_tdm_cmd.event.wp_tdm_api_event_hook_state & WP_TDMAPI_EVENT_RXHOOK_OFF ? FTDM_OOB_ONHOOK : FTDM_OOB_NOOP; + *event_id = tdm_api->wp_tdm_cmd.event.wp_tdm_api_event_hook_state & WP_TDMAPI_EVENT_RXHOOK_OFF ? FTDM_OOB_ONHOOK : FTDM_OOB_NOOP; } } break;