issue #5850
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7195 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
parent
2965268104
commit
3d4721b2ae
|
@ -1,3 +1,7 @@
|
||||||
|
2005-11-25 Russell Bryant <russell@digium.com>
|
||||||
|
|
||||||
|
* apps/app_dial.c: Properly duplicate the string for ANI (issue #5850)
|
||||||
|
|
||||||
2005-11-23 Russell Bryant <russell@digium.com>
|
2005-11-23 Russell Bryant <russell@digium.com>
|
||||||
|
|
||||||
* configs/voicemail.conf.sample: Add note to indicate that #include should not be used for this file. (issue #5828)
|
* configs/voicemail.conf.sample: Add note to indicate that #include should not be used for this file. (issue #5828)
|
||||||
|
|
|
@ -512,10 +512,8 @@ static struct ast_channel *wait_for_answer(struct ast_channel *in, struct localu
|
||||||
if (in->cid.cid_ani) {
|
if (in->cid.cid_ani) {
|
||||||
if (o->chan->cid.cid_ani)
|
if (o->chan->cid.cid_ani)
|
||||||
free(o->chan->cid.cid_ani);
|
free(o->chan->cid.cid_ani);
|
||||||
o->chan->cid.cid_ani = malloc(strlen(in->cid.cid_ani) + 1);
|
o->chan->cid.cid_ani = strdup(in->cid.cid_ani);
|
||||||
if (o->chan->cid.cid_ani)
|
if (!o->chan->cid.cid_ani)
|
||||||
ast_copy_string(o->chan->cid.cid_ani, in->cid.cid_ani, sizeof(o->chan->cid.cid_ani));
|
|
||||||
else
|
|
||||||
ast_log(LOG_WARNING, "Out of memory\n");
|
ast_log(LOG_WARNING, "Out of memory\n");
|
||||||
}
|
}
|
||||||
if (o->chan->cid.cid_rdnis)
|
if (o->chan->cid.cid_rdnis)
|
||||||
|
|
Reference in New Issue