Added passthrough for bearer capability

This commit is contained in:
David Yat Sin
2010-09-01 15:04:09 -04:00
parent e15d52bd80
commit 432e9cdf5b
10 changed files with 184 additions and 48 deletions

View File

@@ -1230,10 +1230,14 @@ static switch_call_cause_t channel_outgoing_channel(switch_core_session_t *sessi
freetdmvar = switch_channel_get_variable(channel, "freetdm_bearer_capability");
if (freetdmvar) {
caller_data.bearer_capability = (uint8_t)atoi(freetdmvar);
} else {
caller_data.bearer_capability = FTDM_INVALID_INT_PARM;
}
freetdmvar = switch_channel_get_variable(channel, "freetdm_bearer_layer1");
if (freetdmvar) {
caller_data.bearer_layer1 = (uint8_t)atoi(freetdmvar);
} else {
caller_data.bearer_layer1 = FTDM_INVALID_INT_PARM;
}
}