mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
Expand codec bitfield from 32 bits to 64 bits.
Reviewboard: https://reviewboard.asterisk.org/r/416/ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@227580 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -368,7 +368,7 @@ static int udptl_rx_packet(struct ast_udptl *s, uint8_t *buf, unsigned int len)
|
||||
/* Decode the secondary IFP packet */
|
||||
//fprintf(stderr, "Secondary %d, len %d\n", seq_no - i, lengths[i - 1]);
|
||||
s->f[ifp_no].frametype = AST_FRAME_MODEM;
|
||||
s->f[ifp_no].subclass = AST_MODEM_T38;
|
||||
s->f[ifp_no].subclass.codec = AST_MODEM_T38;
|
||||
|
||||
s->f[ifp_no].mallocd = 0;
|
||||
s->f[ifp_no].seqno = seq_no - i;
|
||||
@@ -470,7 +470,7 @@ static int udptl_rx_packet(struct ast_udptl *s, uint8_t *buf, unsigned int len)
|
||||
if (repaired[l]) {
|
||||
//fprintf(stderr, "Fixed packet %d, len %d\n", j, l);
|
||||
s->f[ifp_no].frametype = AST_FRAME_MODEM;
|
||||
s->f[ifp_no].subclass = AST_MODEM_T38;
|
||||
s->f[ifp_no].subclass.codec = AST_MODEM_T38;
|
||||
|
||||
s->f[ifp_no].mallocd = 0;
|
||||
s->f[ifp_no].seqno = j;
|
||||
@@ -491,7 +491,7 @@ static int udptl_rx_packet(struct ast_udptl *s, uint8_t *buf, unsigned int len)
|
||||
if (seq_no >= s->rx_seq_no) {
|
||||
/* Decode the primary IFP packet */
|
||||
s->f[ifp_no].frametype = AST_FRAME_MODEM;
|
||||
s->f[ifp_no].subclass = AST_MODEM_T38;
|
||||
s->f[ifp_no].subclass.codec = AST_MODEM_T38;
|
||||
|
||||
s->f[ifp_no].mallocd = 0;
|
||||
s->f[ifp_no].seqno = seq_no;
|
||||
@@ -988,7 +988,7 @@ int ast_udptl_write(struct ast_udptl *s, struct ast_frame *f)
|
||||
return 0;
|
||||
|
||||
if ((f->frametype != AST_FRAME_MODEM) ||
|
||||
(f->subclass != AST_MODEM_T38)) {
|
||||
(f->subclass.codec != AST_MODEM_T38)) {
|
||||
ast_log(LOG_WARNING, "UDPTL can only send T.38 data.\n");
|
||||
return -1;
|
||||
}
|
||||
|
Reference in New Issue
Block a user