use set_callerid to update callerid with prefix
authorChristian Richter <christian.richter@beronet.com>
Tue, 2 May 2006 14:26:40 +0000 (14:26 +0000)
committerChristian Richter <christian.richter@beronet.com>
Tue, 2 May 2006 14:26:40 +0000 (14:26 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@24177 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_misdn.c

index 460ba03..46b3069 100644 (file)
@@ -1508,9 +1508,7 @@ static int read_config(struct chan_list *ch, int orig) {
                        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) ) {
                        if (ast->cid.cid_rdnis)