[asterisk-commits] rmudgett: branch 1.8 r357093 - /branches/1.8/main/channel.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Mon Feb 27 17:34:07 CST 2012
Author: rmudgett
Date: Mon Feb 27 17:34:03 2012
New Revision: 357093
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=357093
Log:
Fix callerid of Originated calls.
Thanks to Matt Riddell for tracking this down.
(closes issue ASTERISK-19385)
Reported by: ornix
Modified:
branches/1.8/main/channel.c
Modified: branches/1.8/main/channel.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/main/channel.c?view=diff&rev=357093&r1=357092&r2=357093
==============================================================================
--- branches/1.8/main/channel.c (original)
+++ branches/1.8/main/channel.c Mon Feb 27 17:34:03 2012
@@ -5354,6 +5354,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