[asterisk-commits] branch crichter/0.3.0 r36866 - in /team/crichter/0.3.0/channels: ./ misdn/

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Mon Jul 3 09:46:58 MST 2006


Author: crichter
Date: Mon Jul  3 11:46:57 2006
New Revision: 36866

URL: http://svn.digium.com/view/asterisk?rev=36866&view=rev
Log:
removed our own tone creation from misdn_indicate, we just return -1. Now we get a lot fewer blocked in thread blah warnings..

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=36866&r1=36865&r2=36866&view=diff
==============================================================================
--- team/crichter/0.3.0/channels/chan_misdn.c (original)
+++ team/crichter/0.3.0/channels/chan_misdn.c Mon Jul  3 11:46:57 2006
@@ -1630,6 +1630,9 @@
 
 	ast_setstate(ast, AST_STATE_DIALING);
 	ast->hangupcause=16;
+	
+	if (newbc->nt) stop_bc_tones(ch);
+	
 	return 0; 
 }
 
@@ -1796,9 +1799,8 @@
 		p->bc->out_cause=17;
 		if (p->state != MISDN_CONNECTED) {
 			misdn_lib_send_event( p->bc, EVENT_DISCONNECT);
-			tone_indicate(p, TONE_BUSY);
+			return -1;
 		} else {
-
 			chan_misdn_log(-1, p->bc->port, " --> !! Got Busy in Connected State !?! ast:%s\n", ast->name);
 		}
 		break;
@@ -1812,7 +1814,7 @@
 				break;
 			case MISDN_CONNECTED:
 				chan_misdn_log(1, p->bc->port, " --> * IND :\tringing pid:%d but Connected, so just send TONE_ALERTING without state changes \n",p->bc?p->bc->pid:-1);
-				tone_indicate(p, TONE_ALERTING);
+				return -1;
 				break;
 			default:
 				p->state=MISDN_ALERTING;
@@ -1838,13 +1840,13 @@
 
 				}
 
+				chan_misdn_log(1, p->bc->port, " --> * SEND: State Ring pid:%d\n",p->bc?p->bc->pid:-1);
+				ast_setstate(ast,AST_STATE_RINGING);
 			
 				if ( !p->bc->nt && (p->orginator==ORG_MISDN) && !p->incoming_early_audio ) 
 					chan_misdn_log(1,p->bc->port, " --> incoming_early_audio off\n");
 				else 
-					 tone_indicate(p, TONE_ALERTING);
-				chan_misdn_log(1, p->bc->port, " --> * SEND: State Ring pid:%d\n",p->bc?p->bc->pid:-1);
-				ast_setstate(ast,AST_STATE_RINGING);
+					return -1;
 		}
 		break;
 	case AST_CONTROL_ANSWER:

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=36866&r1=36865&r2=36866&view=diff
==============================================================================
--- team/crichter/0.3.0/channels/misdn/isdn_lib.c (original)
+++ team/crichter/0.3.0/channels/misdn/isdn_lib.c Mon Jul  3 11:46:57 2006
@@ -1874,7 +1874,9 @@
 			}
 			else cb_log(-1, stack->port, "Couldnt find BC so I couldnt remove the Process!!!! this is a bad port.\n");
 	
-			handle_cr(stack, &frm);
+			if (handle_cr(stack, &frm)<0) {
+			}
+
 			free_msg(msg);
 			return 0 ;
 		}



More information about the asterisk-commits mailing list