From 22df1818c4b15fc50a6a3050bc5123423fcf0fd3 Mon Sep 17 00:00:00 2001 From: Arnaldo Pereira Date: Mon, 6 Dec 2010 17:37:03 -0200 Subject: [PATCH] freetdm: ftmod_r2 - small code cleanup --- libs/freetdm/src/ftmod/ftmod_r2/ftmod_r2.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/libs/freetdm/src/ftmod/ftmod_r2/ftmod_r2.c b/libs/freetdm/src/ftmod/ftmod_r2/ftmod_r2.c index a6bf9175bc..0348c8b57e 100644 --- a/libs/freetdm/src/ftmod/ftmod_r2/ftmod_r2.c +++ b/libs/freetdm/src/ftmod/ftmod_r2/ftmod_r2.c @@ -1576,14 +1576,9 @@ static void *ftdm_r2_run(ftdm_thread_t *me, void *obj) r2chan = NULL; for (i = 1; i <= span->chan_count; i++) { r2chan = R2CALL(span->channels[i])->r2chan; + openr2_chan_set_span_id(r2chan, span->span_id); openr2_chan_set_idle(r2chan); openr2_chan_process_cas_signaling(r2chan); - - /* set r2chan span id */ - openr2_chan_set_span_id(r2chan, span->span_id); - - ftdmchan = openr2_chan_get_client_data(r2chan); - //ftdm_channel_set_feature(ftdmchan, FTDM_CHANNEL_FEATURE_IO_STATS); } memset(&start, 0, sizeof(start));