use set_callerid to update callerid with prefix

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@24177 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Christian Richter
2006-05-02 14:26:40 +00:00
parent f262d06975
commit 7f58902bf3

View 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)