[asterisk-commits] rmudgett: branch 10 r357095 - in /branches/10: ./ main/channel.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Mon Feb 27 17:37:02 CST 2012
Author: rmudgett
Date: Mon Feb 27 17:36:58 2012
New Revision: 357095
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=357095
Log:
Fix callerid of Originated calls.
Thanks to Matt Riddell for tracking this down.
(closes issue ASTERISK-19385)
Reported by: ornix
........
Merged revisions 357093 from http://svn.asterisk.org/svn/asterisk/branches/1.8
Modified:
branches/10/ (props changed)
branches/10/main/channel.c
Propchange: branches/10/
------------------------------------------------------------------------------
Binary property 'branch-1.8-merged' - no diff available.
Modified: branches/10/main/channel.c
URL: http://svnview.digium.com/svn/asterisk/branches/10/main/channel.c?view=diff&rev=357095&r1=357094&r2=357095
==============================================================================
--- branches/10/main/channel.c (original)
+++ branches/10/main/channel.c Mon Feb 27 17:36:58 2012
@@ -5547,6 +5547,16 @@
}
}
+ /*
+ * I seems strange to set the CallerID on an outgoing call leg
+ * to whom we are calling, but this function's callers are doing
+ * various Originate methods. This call leg goes to the local
+ * user. Once the local user answers, the dialplan needs to be
+ * able to access the CallerID from the CALLERID function as if
+ * the local user had placed this call.
+ */
+ ast_set_callerid(chan, cid_num, cid_name, cid_num);
+
ast_set_flag(chan->cdr, AST_CDR_FLAG_ORIGINATED);
ast_party_connected_line_set_init(&connected, &chan->connected);
if (cid_num) {
More information about the asterisk-commits
mailing list