update the other callerid check
authorJeremy McNamara <jj@nufone.net>
Thu, 31 Jul 2003 06:28:51 +0000 (06:28 +0000)
committerJeremy McNamara <jj@nufone.net>
Thu, 31 Jul 2003 06:28:51 +0000 (06:28 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1245 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/h323/chan_h323.c

index 017a164..eb148e5 100755 (executable)
@@ -405,7 +405,7 @@ static int oh323_call(struct ast_channel *c, char *dest, int timeout)
        memcpy(called_addr, dest, sizeof(called_addr));
 
        /* Copy callerid, if there is any */
        memcpy(called_addr, dest, sizeof(called_addr));
 
        /* Copy callerid, if there is any */
-       if (strlen(c->callerid)) {
+       if (c->callerid) {
                p->calloptions.callerid = strdup(c->callerid);
        }
 
                p->calloptions.callerid = strdup(c->callerid);
        }