diff options
author | Christian Richter <christian.richter@beronet.com> | 2006-05-16 14:34:21 +0000 |
---|---|---|
committer | Christian Richter <christian.richter@beronet.com> | 2006-05-16 14:34:21 +0000 |
commit | a309a2db9f26c912bc29475dff24172d6f5da5de (patch) | |
tree | 58cbe7e1abe6c8393c2a75d3cb39afad0a4306db /channels/misdn/isdn_msg_parser.c | |
parent | c625a539be13fee95f97b35d506c19b5fcb38905 (diff) |
fixed very bad memory overwrite which leaded to segfaults on some systems. removed redundant buffer betweend mISDN reading thread and ast_read in favour of the already existing pipe, this clarifies the way a voice frame takes between mISDN and asterisk a lot. centralized debugging of NumberPlan. removed a compiler warning.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@27346 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/misdn/isdn_msg_parser.c')
-rw-r--r-- | channels/misdn/isdn_msg_parser.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/channels/misdn/isdn_msg_parser.c b/channels/misdn/isdn_msg_parser.c index 9cd7f2656..2fb43eb86 100644 --- a/channels/misdn/isdn_msg_parser.c +++ b/channels/misdn/isdn_msg_parser.c @@ -874,6 +874,8 @@ msg_t *build_release_complete (struct isdn_msg msgs[], struct misdn_bchannel *bc void parse_facility (struct isdn_msg msgs[], msg_t *msg, struct misdn_bchannel *bc, int nt) { + +#ifdef FACILITY_DECODE int HEADER_LEN = nt?mISDNUSER_HEAD_SIZE:mISDN_HEADER_LEN; FACILITY_t *facility=(FACILITY_t*)((unsigned long)(msg->data+HEADER_LEN)); Q931_info_t *qi=(Q931_info_t*)(msg->data+HEADER_LEN); @@ -882,7 +884,6 @@ void parse_facility (struct isdn_msg msgs[], msg_t *msg, struct misdn_bchannel * printf("Parsing FACILITY Msg\n"); #endif -#ifdef FACILITY_DECODE { fac_dec(facility->FACILITY, qi, &bc->fac_type, &bc->fac, bc); } |