Skip to content

Commit 83f6bf5

Browse files
author
Harald Welte
committed
ftmod_libpri: Don't hardcode SPEECH bearer capability
FreeTDM actually knows which bearer capability to set; let's use it rather than discarding that and overriding it with SPEECH.
1 parent 5621e2a commit 83f6bf5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

libs/freetdm/src/ftmod/ftmod_libpri/ftmod_libpri.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1207,7 +1207,7 @@ static ftdm_status_t state_advance(ftdm_channel_t *chan)
12071207
assert(sr);
12081208

12091209
pri_sr_set_channel(sr, ftdm_channel_get_id(chan), 1, 0);
1210-
pri_sr_set_bearer(sr, PRI_TRANS_CAP_SPEECH, isdn_data->layer1);
1210+
pri_sr_set_bearer(sr, caller_data->bearer_capability << 3, isdn_data->layer1);
12111211

12121212
pri_sr_set_called(sr, caller_data->dnis.digits, called_ton, 1);
12131213
pri_sr_set_caller(sr, caller_data->cid_num.digits,

0 commit comments

Comments
 (0)