diff options
Diffstat (limited to 'sys/i4b/layer3/i4b_l2if.c')
-rw-r--r-- | sys/i4b/layer3/i4b_l2if.c | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/sys/i4b/layer3/i4b_l2if.c b/sys/i4b/layer3/i4b_l2if.c index fda3bc7..0a8584b 100644 --- a/sys/i4b/layer3/i4b_l2if.c +++ b/sys/i4b/layer3/i4b_l2if.c @@ -29,7 +29,7 @@ * * $FreeBSD$ * - * last edit-date: [Tue Mar 26 15:03:59 2002] + * last edit-date: [Sun Aug 11 12:48:41 2002] * *---------------------------------------------------------------------------*/ @@ -480,9 +480,19 @@ i4b_l3_tx_setup(call_desc_t *cd) break; case BPROT_RHDLC: /* raw HDLC */ - *ptr++ = IEI_BEARERCAP_LEN; - *ptr++ = IT_CAP_UNR_DIG_INFO; - *ptr++ = IT_RATE_64K; + if (cd->bcap == BCAP_DOV) /* Data over Voice */ + { + *ptr++ = IEI_BEARERCAP_LEN+1; + *ptr++ = IT_CAP_SPEECH; + *ptr++ = IT_RATE_64K; + *ptr++ = IT_UL1_G711A; + } + else + { + *ptr++ = IEI_BEARERCAP_LEN; + *ptr++ = IT_CAP_UNR_DIG_INFO; + *ptr++ = IT_RATE_64K; + } break; default: |