aboutsummaryrefslogtreecommitdiffstats
path: root/channels/misdn/isdn_msg_parser.c
diff options
context:
space:
mode:
authorcrichter <crichter@f38db490-d61c-443f-a65b-d21fe96a405b>2007-07-02 08:27:19 +0000
committercrichter <crichter@f38db490-d61c-443f-a65b-d21fe96a405b>2007-07-02 08:27:19 +0000
commit1aed11a32ad14459c5f4c9aac6df923995d46fb2 (patch)
tree27c84652bca3d54c3ded30607b9136f49d15c73c /channels/misdn/isdn_msg_parser.c
parent56abc9d3c019d3486302d17e4d390484b9608465 (diff)
Merged revisions 72099 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r72099 | crichter | 2007-06-27 15:22:37 +0200 (Mi, 27 Jun 2007) | 1 line simplified generation for dummy bchannels, also we mark them as dummies, so they are not used later as real-bchannels, optimized the RESTART mechanisms, we block a channel now on cause:44, and send out a RESTART automatically, then on reception of RESTART_ACKNOWLEDGE we unblock the channel again. ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@72851 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/misdn/isdn_msg_parser.c')
-rw-r--r--channels/misdn/isdn_msg_parser.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/channels/misdn/isdn_msg_parser.c b/channels/misdn/isdn_msg_parser.c
index 8534e4e74..a2e879fd0 100644
--- a/channels/misdn/isdn_msg_parser.c
+++ b/channels/misdn/isdn_msg_parser.c
@@ -816,14 +816,10 @@ static void parse_restart (struct isdn_msg msgs[], msg_t *msg, struct misdn_bcha
#endif
{
- int exclusive, channel = 0;
+ int exclusive;
dec_ie_channel_id(restart->CHANNEL_ID, (Q931_info_t *)restart, &exclusive, &bc->restart_channel, nt,bc);
- /* XXX: this is broken... channel is not used */
- if (channel==0xff) /* any channel */
- channel=-1;
- cb_log(3, stack->port, "CC_RESTART Request on channel:%d on this port.\n");
+ cb_log(3, stack->port, "CC_RESTART Request on channel:%d on this port.\n", bc->restart_channel);
}
-
}