From 1c2aad83b89744f52738b97eac17fd3116810649 Mon Sep 17 00:00:00 2001 From: crichter Date: Wed, 20 Jun 2007 14:47:59 +0000 Subject: on receiption of cause:44 we mark the channel as in use and inform the user about the situation, we need to test the RESTART stuff then. Also shuffled the empty_chan_in_stack function after the bchannel cleaning functions, to avoid race conditions. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@70311 f38db490-d61c-443f-a65b-d21fe96a405b --- channels/chan_misdn.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'channels/chan_misdn.c') diff --git a/channels/chan_misdn.c b/channels/chan_misdn.c index a5aef1dfb..82e9804fd 100644 --- a/channels/chan_misdn.c +++ b/channels/chan_misdn.c @@ -3149,6 +3149,8 @@ static struct chan_list *find_chan_by_pid(struct chan_list *list, int pid) static struct chan_list *find_holded(struct chan_list *list, struct misdn_bchannel *bc) { struct chan_list *help=list; + + if (bc->pri) return NULL; chan_misdn_log(6, bc->port, "$$$ find_holded: channel:%d oad:%s dad:%s\n",bc->channel, bc->oad,bc->dad); for (;help; help=help->next) { -- cgit v1.2.3