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

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Tue May 2 07:25:51 MST 2006


Author: crichter
Date: Tue May  2 09:25:50 2006
New Revision: 24176

URL: http://svn.digium.com/view/asterisk?rev=24176&view=rev
Log:
use set_callerid to update callerid with prefix

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=24176&r1=24175&r2=24176&view=diff
==============================================================================
--- team/crichter/0.3.0/channels/chan_misdn.c (original)
+++ team/crichter/0.3.0/channels/chan_misdn.c Tue May  2 09:25:50 2006
@@ -1509,9 +1509,7 @@
 			ast_copy_string(ast->exten, bc->dad, sizeof(ast->exten));
 		}
 		
-		if ( !ast->cid.cid_num) {
-			ast_set_callerid(ast, bc->oad, NULL, bc->oad);
-		}
+		ast_set_callerid(ast, bc->oad, NULL, bc->oad);
 		
 		if ( !ast_strlen_zero(bc->rad) ) 
 			ast->cid.cid_rdnis=strdup(bc->rad);



More information about the asterisk-commits mailing list