aboutsummaryrefslogtreecommitdiffstats
path: root/channels
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2005-02-01 19:25:40 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2005-02-01 19:25:40 +0000
commitef8a95ff411f5414cb9ae9d86d55bcfd080da0f2 (patch)
tree19ae9a0c05ef6b368df37ed40f4eb17b020f08c6 /channels
parent1bf9ce00836bf87e8dae89845e85a7a90fbfb081 (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-xchannels/chan_sip.c2
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) {