diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-02-01 19:25:40 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-02-01 19:25:40 +0000 |
commit | ef8a95ff411f5414cb9ae9d86d55bcfd080da0f2 (patch) | |
tree | 19ae9a0c05ef6b368df37ed40f4eb17b020f08c6 /channels | |
parent | 1bf9ce00836bf87e8dae89845e85a7a90fbfb081 (diff) |
Only use default callerid if it's specified (bug #3486)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4944 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rwxr-xr-x | channels/chan_sip.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index ceeb3e56e..d2cf68bf5 100755 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -3745,7 +3745,7 @@ static void initreqprep(struct sip_request *req, struct sip_pvt *p, char *cmd, c l = p->owner->cid.cid_num; n = p->owner->cid.cid_name; } - if (!l || !ast_isphonenumber(l)) + if ((!l || !ast_isphonenumber(l)) && default_callerid[0]) l = default_callerid; /* if user want's his callerid restricted */ if (p->callingpres & AST_PRES_PROHIB_USER_NUMBER_NOT_SCREENED) { |