[asterisk-commits] dvossel: branch 1.6.2 r282668 - /branches/1.6.2/channels/chan_sip.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Aug 18 09:28:57 CDT 2010
Author: dvossel
Date: Wed Aug 18 09:28:52 2010
New Revision: 282668
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=282668
Log:
fixes crash with notifycid
(closes issue #17868)
Reported by: francesco_r
Patches:
issue_17868.diff uploaded by dvossel (license 671)
Tested by: francesco_r
Modified:
branches/1.6.2/channels/chan_sip.c
Modified: branches/1.6.2/channels/chan_sip.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.6.2/channels/chan_sip.c?view=diff&rev=282668&r1=282667&r2=282668
==============================================================================
--- branches/1.6.2/channels/chan_sip.c (original)
+++ branches/1.6.2/channels/chan_sip.c Wed Aug 18 09:28:52 2010
@@ -11315,7 +11315,9 @@
int need = strlen(caller->cid.cid_num) + strlen(p->fromdomain) + sizeof("sip:@");
local_target = alloca(need);
snprintf(local_target, need, "sip:%s@%s", caller->cid.cid_num, p->fromdomain);
- local_display = ast_strdupa(caller->cid.cid_name);
+ if (!(ast_strlen_zero(caller->cid.cid_name))) {
+ local_display = ast_strdupa(caller->cid.cid_name);
+ }
ast_channel_unlock(caller);
caller = NULL;
}
More information about the asterisk-commits
mailing list