[asterisk-commits] crichter: branch 1.4 r53060 - /branches/1.4/channels/chan_misdn.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Thu Feb 1 06:17:19 MST 2007


Author: crichter
Date: Thu Feb  1 07:17:18 2007
New Revision: 53060

URL: http://svn.digium.com/view/asterisk?view=rev&rev=53060
Log:
we update the name on any first reply of our setup

Modified:
    branches/1.4/channels/chan_misdn.c

Modified: branches/1.4/channels/chan_misdn.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/channels/chan_misdn.c?view=diff&rev=53060&r1=53059&r2=53060
==============================================================================
--- branches/1.4/channels/chan_misdn.c (original)
+++ branches/1.4/channels/chan_misdn.c Thu Feb  1 07:17:18 2007
@@ -2012,7 +2012,7 @@
 	if (newbc->nt) stop_bc_tones(ch);
 
 	ch->state=MISDN_CALLING;
-	
+
 	return 0; 
 }
 
@@ -4174,7 +4174,9 @@
 	break;
 	case EVENT_PROCEEDING:
 	{
-		
+		if (bc->channel) 
+			update_name(ch->ast,bc->port,bc->channel);
+
 		if ( misdn_cap_is_speech(bc->capability) &&
 		     misdn_inband_avail(bc) ) {
 			start_bc_tones(ch);
@@ -4186,6 +4188,10 @@
 	}
 	break;
 	case EVENT_PROGRESS:
+
+		if (bc->channel) 
+			update_name(ch->ast,bc->port,bc->channel);
+
 		if (!bc->nt ) {
 			if ( misdn_cap_is_speech(bc->capability) &&
 			     misdn_inband_avail(bc)
@@ -4202,6 +4208,9 @@
 		
 	case EVENT_ALERTING:
 	{
+		if (bc->channel) 
+			update_name(ch->ast,bc->port,bc->channel);
+
 		ch->state = MISDN_ALERTING;
 		
 		ast_queue_control(ch->ast, AST_CONTROL_RINGING);



More information about the asterisk-commits mailing list