[asterisk-commits] branch crichter/0.3.0 - r7559 /team/crichter/0.3.0/channels/chan_misdn.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Tue Dec 20 14:51:25 CST 2005


Author: crichter
Date: Tue Dec 20 14:51:23 2005
New Revision: 7559

URL: http://svn.digium.com/view/asterisk?rev=7559&view=rev
Log:
fixed extensions updateing

Modified:
    team/crichter/0.3.0/channels/chan_misdn.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=7559&r1=7558&r2=7559&view=diff
==============================================================================
--- team/crichter/0.3.0/channels/chan_misdn.c (original)
+++ team/crichter/0.3.0/channels/chan_misdn.c Tue Dec 20 14:51:23 2005
@@ -1361,8 +1361,10 @@
 			strcpy(bc->dad,tmp);
 		}
 		
-		
-		
+		if ( strcmp(bc->dad,ast->exten)) {
+			ast_copy_string(ast->exten, bc->dad, sizeof(ast->exten));
+		}
+			
 		pbx_builtin_setvar_helper(ch->ast,"REDIRECTING_NUMBER",bc->rad);
 	}
 	



More information about the asterisk-commits mailing list