mirror of
https://github.com/asterisk/asterisk.git
synced 2026-07-05 06:17:27 -07:00
Fix accidental removal of if() in commit 38905
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@39171 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
+2
-1
@@ -3688,7 +3688,8 @@ static struct ast_channel *sip_new(struct sip_pvt *i, int state, const char *tit
|
||||
tmp->cid.cid_num = ast_strdup(i->cid_num);
|
||||
tmp->cid.cid_ani = ast_strdup(i->cid_num);
|
||||
tmp->cid.cid_name = ast_strdup(i->cid_name);
|
||||
tmp->cid.cid_rdnis = ast_strdup(i->rdnis);
|
||||
if (!ast_strlen_zero(i->rdnis))
|
||||
tmp->cid.cid_rdnis = ast_strdup(i->rdnis);
|
||||
|
||||
if (!ast_strlen_zero(i->exten) && strcmp(i->exten, "s"))
|
||||
tmp->cid.cid_dnid = ast_strdup(i->exten);
|
||||
|
||||
Reference in New Issue
Block a user