<html>
 <body>
  <div style="font-family: Verdana, Arial, Helvetica, Sans-Serif;">
   <table bgcolor="#f9f3c9" width="100%" cellpadding="8" style="border: 1px #c9c399 solid;">
    <tr>
     <td>
      This is an automatically generated e-mail. To reply, visit:
      <a href="https://reviewboard.asterisk.org/r/1289/">https://reviewboard.asterisk.org/r/1289/</a>
     </td>
    </tr>
   </table>
   <br />


<table bgcolor="#fefadf" width="100%" cellspacing="0" cellpadding="8" style="background-image: url('https://reviewboard.asterisk.orgrb/images/review_request_box_top_bg.png'); background-position: left top; background-repeat: repeat-x; border: 1px black solid;">
 <tr>
  <td>

<div>Review request for Asterisk Developers.</div>
<div>By jamuel.</div>





<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Description </h1>
<table width="100%" bgcolor="#ffffff" cellspacing="0" cellpadding="10" style="border: 1px solid #b8b5a0">
 <tr>
  <td>
   <pre style="margin: 0; padding: 0; white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">When initiating an AMI Originate event the Caller ID sent to the originating channel (Calling Party) is not settable in the manager action.  As a result the originating channel is sent CallerID containing the calling device&#39;s name.  This patch adds a new variable (ChanCallerID) to the Originate action so that any CallerID can be arbitrarily sent to the originator.  If the variable is not set then the original behavior is maintained.  ChanCallerID should be specified as a regular asterisk callerid value (e.g. Jamuel Starkey &lt;4152000404&gt;).

This patch useful for CTI app&#39;s that perform dialing for the user via AMI so that the name and number sent to the originator could be any useful value (e.g. the called party CID).</pre>
  </td>
 </tr>
</table>


<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Testing </h1>
<table width="100%" bgcolor="#ffffff" cellspacing="0" cellpadding="10" style="border: 1px solid #b8b5a0">
 <tr>
  <td>
   <pre style="margin: 0; padding: 0; white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">Tested both with/without async set (i.e. fast_originate).  Expected CallerID received on the calling party&#39;s display when variable ChanCallerID set.  Tested with SIP devices only (Eyebeam and Polycom Soundpoint IP).

Here&#39;s a sample originate action with the CallerID sent to the calling party set to Movie Phone &lt;4157773456&gt;:

Action: Originate
Channel: SIP/SOFTPHONE
Exten: 4157773456
Context: from-internal
Priority: 1
CallerID: Jamuel Starkey &lt;4152000400&gt;
Variable: AMPUSER=SOFTPHONE,REALCALLERIDNUM=SOFTJPS,ChanCallerID=Moviefone &lt;4157773456&gt;
Async: True

</pre>
  </td>
 </tr>
</table>




<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Diffs</b> </h1>
<ul style="margin-left: 3em; padding-left: 0;">

 <li>http://svn.asterisk.org/svn/asterisk/trunk/main/manager.c <span style="color: grey">(324908)</span></li>

</ul>

<p><a href="https://reviewboard.asterisk.org/r/1289/diff/" style="margin-left: 3em;">View Diff</a></p>




  </td>
 </tr>
</table>




  </div>
 </body>
</html>