diff options
author | crichter <crichter@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-04-10 16:50:20 +0000 |
---|---|---|
committer | crichter <crichter@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-04-10 16:50:20 +0000 |
commit | ceee19281869d3bd279978ab39ce890a5f46fa36 (patch) | |
tree | 6119c518e1033033e6d6464717e33061a17ad072 /channels/misdn | |
parent | 285ab1707107a6bf32892de64d07d12f4d3692c7 (diff) |
fixed some issues, that appear at higher load
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@18835 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/misdn')
-rw-r--r-- | channels/misdn/isdn_lib.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/channels/misdn/isdn_lib.c b/channels/misdn/isdn_lib.c index 3f8dbe6b9..46cdba77f 100644 --- a/channels/misdn/isdn_lib.c +++ b/channels/misdn/isdn_lib.c @@ -1474,7 +1474,8 @@ int handle_cr ( struct misdn_stack *stack, iframe_t *frm) switch (frm->prim) { case CC_NEW_CR|INDICATION: cb_log(7, stack->port, " --> lib: NEW_CR Ind with l3id:%x on this port.\n",frm->dinfo); - handle_new_process(stack, frm); + if (handle_new_process(stack, frm) <0) + return -1; return 1; case CC_NEW_CR|CONFIRM: return 1; @@ -2306,8 +2307,13 @@ int handle_frm(msg_t *msg) { struct misdn_bchannel *bc; + int ret=handle_cr(stack, frm); + + if (ret<0) { + cb_log(3,stack?stack->port:0,"handle_frm: handle_cr <0 prim:%x addr:%x\n", frm->prim, frm->addr); + } - if(handle_cr(stack, frm)) { + if(ret) { free_msg(msg); return 1; } |