]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Make this module build again
authorRussell Bryant <russell@russellbryant.com>
Wed, 8 Nov 2006 16:55:35 +0000 (16:55 +0000)
committerRussell Bryant <russell@russellbryant.com>
Wed, 8 Nov 2006 16:55:35 +0000 (16:55 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@47329 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_gtalk.c

index f8284e72229efbd26cba411f9f011a3b9012b6a1..6b039a174b67cd16406a666d6d46a7f3369a661e 100644 (file)
@@ -896,7 +896,7 @@ static struct ast_channel *gtalk_new(struct gtalk *client, struct gtalk_pvt *i,
        struct ast_channel *tmp;
        int fmt;
        int what;
-       char *n2;
+       const char *n2;
 
        if (title)
                n2 = title;
@@ -957,9 +957,9 @@ static struct ast_channel *gtalk_new(struct gtalk *client, struct gtalk_pvt *i,
        ast_copy_string(tmp->exten, i->exten, sizeof(tmp->exten));
        /* Don't use ast_set_callerid() here because it will
         * generate a needless NewCallerID event */
-       tmp->cid.cid_num = ast_strdup(l->cid_num);
-       tmp->cid.cid_ani = ast_strdup(l->cid_num);
-       tmp->cid.cid_name = ast_strdup(l->cid_name);
+       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);
        if (!ast_strlen_zero(i->exten) && strcmp(i->exten, "s"))
                tmp->cid.cid_dnid = ast_strdup(i->exten);
        tmp->priority = 1;