freetdm: ftmod_r2 - use freetdm logical channel id to set r2chan's id

This commit is contained in:
Arnaldo Pereira 2010-12-08 19:25:44 -02:00
parent 15d18e7a15
commit 68cad2aa95
1 changed files with 1 additions and 1 deletions

View File

@ -1328,7 +1328,7 @@ static FIO_CONFIGURE_SPAN_SIGNALING_FUNCTION(ftdm_r2_configure_span_signaling)
} }
for (i = 1; (i <= span->chan_count) && (i <= FTDM_MAX_CHANNELS_SPAN); i++) { for (i = 1; (i <= span->chan_count) && (i <= FTDM_MAX_CHANNELS_SPAN); i++) {
r2chan = openr2_chan_new_from_fd(r2data->r2context, span->channels[i], span->channels[i]->physical_chan_id); r2chan = openr2_chan_new_from_fd(r2data->r2context, span->channels[i], span->channels[i]->chan_id);
if (!r2chan) { if (!r2chan) {
snprintf(span->last_error, sizeof(span->last_error), "Cannot create all openr2 channels for span."); snprintf(span->last_error, sizeof(span->last_error), "Cannot create all openr2 channels for span.");
goto fail; goto fail;