Wes,<div><br></div><div>I have used a script to play a WAV file to all incoming calls, then transfer the call to the original called number.   I had the same issue with the caller name being stripped, but found some pointers on the dev forum and was able to get the caller name to pass through.  In my case, the inbound leg is VIA PRI and the outbound leg is h323 to CM.</div>
<div><br></div><div>here is the relevant parts of the script.</div><div><br></div><div><div>proc act_Setup { } {</div><div>    global totalLang</div><div>    </div><div>    </div><div>    init_perCallVars</div><div>    infotag set med_language 1</div>
<div><br></div><div>    leg setupack leg_incoming</div><div>    leg proceeding leg_incoming</div><div>    leg connect leg_incoming</div><div><br></div><div>    #Lang selection</div><div>    puts "\nTotalLanguages=$totalLang"</div>
<div>    if { $totalLang < 1 } {</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>act_Cleanup</div><div>      fsm setstate CALLDISCONNECT</div><div><span class="Apple-tab-span" style="white-space:pre">  </span>return</div>
<div>    }</div><div>    </div><div>    media play leg_incoming recording.au</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>set cnam [infotag get leg_display_info]        <i> (jsteinberg: this stores the original caller name into the variable )</i></div>
<div><span class="Apple-tab-span" style="white-space:pre">      </span>fsm setstate ONELANG</div><div><br></div><div>    }</div><div><br></div><div><div>proc act_CallSetup { } {</div><div>    global dest</div><div>    global commandHandle</div>
<div>    global outgoingDisconnect</div><div>    global lastCallSetupFail</div><div><br></div><div>    if { ($outgoingDisconnect == 1) || ($lastCallSetupFail == 1) } {</div><div>       set callInfo(newguid) true</div><div>
<span class="Apple-tab-span" style="white-space:pre"> </span> set lastCallSetupFail 0</div><div>    }</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>set callInfo(displayInfo) $cnam                            <i> (jsteinberg: this populates the outbound leg with the original caller name given on incoming leg )</i></div>
<div>    leg setup $dest callInfo leg_incoming</div><div>    set commandHandle [infotag get last_command_handle]</div><div>}</div></div><br><div class="gmail_quote">On Tue, Mar 15, 2011 at 7:33 PM, Wes Sisk <span dir="ltr"><<a href="mailto:wsisk@cisco.com">wsisk@cisco.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">CSCtl88912    </blockquote></div><br></div>