[asterisk-commits] branch crichter/0.3.0 r18834 - in
/team/crichter/0.3.0/channels: ./ misdn/
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Mon Apr 10 09:48:54 MST 2006
Author: crichter
Date: Mon Apr 10 11:48:51 2006
New Revision: 18834
URL: http://svn.digium.com/view/asterisk?rev=18834&view=rev
Log:
fixed some issues at higher load
Modified:
team/crichter/0.3.0/channels/chan_misdn.c
team/crichter/0.3.0/channels/misdn/isdn_lib.c
Modified: team/crichter/0.3.0/channels/chan_misdn.c
URL: http://svn.digium.com/view/asterisk/team/crichter/0.3.0/channels/chan_misdn.c?rev=18834&r1=18833&r2=18834&view=diff
==============================================================================
--- team/crichter/0.3.0/channels/chan_misdn.c (original)
+++ team/crichter/0.3.0/channels/chan_misdn.c Mon Apr 10 11:48:51 2006
@@ -2064,7 +2064,6 @@
if (!len) {
chan_misdn_log(4,tmp->bc->port,"misdn_read: ZERO READ\n");
-
tmp->frame.frametype = AST_FRAME_NULL;
tmp->frame.subclass = 0;
return &tmp->frame;
@@ -2881,7 +2880,7 @@
close(ch->pipe[0]);
close(ch->pipe[1]);
- if (ast && MISDN_ASTERISK_PVT(ast)) {
+ if (ast && MISDN_ASTERISK_TECH_PVT(ast)) {
chan_misdn_log(1, bc->port, "* RELEASING CHANNEL pid:%d ctx:%s dad:%s oad:%s state: %s\n",bc?bc->pid:-1, ast->context, ast->exten,AST_CID_P(ast),misdn_get_ch_state(ch));
chan_misdn_log(3, bc->port, " --> * State Down\n");
/* copy cause */
Modified: team/crichter/0.3.0/channels/misdn/isdn_lib.c
URL: http://svn.digium.com/view/asterisk/team/crichter/0.3.0/channels/misdn/isdn_lib.c?rev=18834&r1=18833&r2=18834&view=diff
==============================================================================
--- team/crichter/0.3.0/channels/misdn/isdn_lib.c (original)
+++ team/crichter/0.3.0/channels/misdn/isdn_lib.c Mon Apr 10 11:48:51 2006
@@ -1476,7 +1476,8 @@
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;
@@ -2309,8 +2310,13 @@
{
struct misdn_bchannel *bc;
-
- if(handle_cr(stack, frm)) {
+ 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(ret) {
free_msg(msg);
return 1;
}
More information about the asterisk-commits
mailing list