]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Put default callerid into contact when the one specified is either NULL or has a...
authorJoshua Colp <jcolp@digium.com>
Wed, 26 Jul 2006 15:26:06 +0000 (15:26 +0000)
committerJoshua Colp <jcolp@digium.com>
Wed, 26 Jul 2006 15:26:06 +0000 (15:26 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@38234 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 423af01b33eb8740fcc679493e8541f584807c08..7b67bebd08a9acd93d2032ba965542fa3c9ca669 100644 (file)
@@ -4847,7 +4847,7 @@ static void initreqprep(struct sip_request *req, struct sip_pvt *p, int sipmetho
                l = CALLERID_UNKNOWN;
                n = l;
        }
-       if (!l)
+       if (ast_strlen_zero(l))
                l = default_callerid;
        if (ast_strlen_zero(n))
                n = l;