]> git.ipfire.org Git - thirdparty/asterisk.git/commit
channel.c: Fix NewCallerid AMI event not been sent on Caller ID change 34/1334/3
authorIvan Poddubny <ivan.poddubny@gmail.com>
Mon, 28 Sep 2015 06:36:30 +0000 (09:36 +0300)
committerIvan Poddubny <ivan.poddubny@gmail.com>
Mon, 28 Sep 2015 19:20:05 +0000 (22:20 +0300)
commit8d2e1ecdca3291f0f82aac392bd68deec3c914e5
treef160a15e7cdfc161e9bb029b094ddbdabb7df068
parent29694eb2aaa45c366fe28777722b0307f3742f95
channel.c: Fix NewCallerid AMI event not been sent on Caller ID change

Currently, NewCallerid is sent only when pointers to number or name
strings change, which is not always the case. The newly allocated string
may use the same memory, so pointers match, while the content
is different. As a result, Caller ID updates are often not reported.

With this patch, actual strings are compared, not the pointers.

ASTERISK-25427 #close
Reported by: Ivan Poddubny

Change-Id: I2a1ac3a842f0e092c6058d1cd3e35443bece1b36
main/channel.c