<html><head><base href="x-msg://258/"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">You can dial a local channel which executes a dial plan that does what you want.<div><br></div><div>Channel: Local/dial_number@cfmc_cdi_private</div><div><br></div><div>This will use exten dial_number in the cfmc_cdi_private context.</div><div><br></div><div>If you add something like this to the originate packet</div><div><br></div><div><div>Variable: CfMC_Use_CID=5419712513</div><div><br></div><div>You can use ${CfMC_Use_CID} to get the value.</div><div><br></div><div>
<div style="font-family: Helvetica; "><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; ">--&nbsp;</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; ">Jim Dickenson</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; "><a href="mailto:dickenson@cfmc.com">mailto:dickenson@cfmc.com</a></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; ">CfMC</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; "><a href="http://www.cfmc.com/">http://www.cfmc.com/</a></div><div><font class="Apple-style-span" face="Monaco" size="2"><span class="Apple-style-span" style="font-size: 10px; "><br></span></font></div></div><br class="Apple-interchange-newline">
</div>
<br><div><div>On Oct 7, 2011, at 8:03 AM, Tobias Steen wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: 'Hoefler Text'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div lang="SV" link="blue" vlink="purple"><div class="WordSection1" style="page: WordSection1; "><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span class="hps"><span lang="EN">Hello</span></span><span lang="EN">!<br><br><span class="hps">I</span><span class="Apple-converted-space">&nbsp;</span><span class="hps">want</span><span class="Apple-converted-space">&nbsp;</span><span class="hps">to thank</span><span class="Apple-converted-space">&nbsp;</span><span class="hps">everyone who</span><span class="Apple-converted-space">&nbsp;</span><span class="hps">helped me out</span><span class="Apple-converted-space">&nbsp;</span><span class="hps">with</span><span class="Apple-converted-space">&nbsp;</span><span class="hps">tips for</span><span class="Apple-converted-space">&nbsp;</span><span class="hps">load</span><span class="Apple-converted-space">&nbsp;</span><span class="hps">balancing</span><span class="Apple-converted-space">&nbsp;</span><span class="hps">asterisk</span><span class="Apple-converted-space">&nbsp;</span><span class="hps">machines</span><span class="Apple-converted-space">&nbsp;</span><span class="hps">in</span><span class="Apple-converted-space">&nbsp;</span><span class="hps">a cluster.</span><br><br><span class="hps">I have</span><span class="Apple-converted-space">&nbsp;</span><span class="hps">encountered a</span><span class="Apple-converted-space">&nbsp;</span><span class="hps">new problem that</span><span class="Apple-converted-space">&nbsp;</span><span class="hps">is related to SIP</span><span class="Apple-converted-space">&nbsp;</span>d<span class="hps">iversion</span><span class="Apple-converted-space">&nbsp;</span><span class="hps">headers in the INVITE.</span><br><br><span class="hps">I make</span><span class="Apple-converted-space">&nbsp;</span><span class="hps">calls through</span><span class="Apple-converted-space">&nbsp;</span><span class="hps">the manager</span><span class="Apple-converted-space">&nbsp;</span><span class="hps">interface</span><span class="Apple-converted-space">&nbsp;</span><span class="hps">and</span><span class="Apple-converted-space">&nbsp;</span><span class="hps">now want to</span><span class="Apple-converted-space">&nbsp;</span><span class="hps">add</span><span class="Apple-converted-space">&nbsp;</span><span class="hps">a</span><span class="Apple-converted-space">&nbsp;</span><span class="hps">SIP-Diversion</span><span class="Apple-converted-space">&nbsp;</span><span class="hps">header that</span><span class="Apple-converted-space">&nbsp;</span><span class="hps">changes the</span><span class="Apple-converted-space">&nbsp;</span><span class="hps">CallerID</span><span class="Apple-converted-space">&nbsp;</span><span class="hps">of</span><span class="Apple-converted-space">&nbsp;</span><span class="hps">a number that</span><span class="Apple-converted-space">&nbsp;</span><span class="hps">is not available on the</span><span class="Apple-converted-space">&nbsp;</span><span class="hps">trunk</span>,<span class="Apple-converted-space">&nbsp;</span><span class="hps">the CallerID to</span><span class="Apple-converted-space">&nbsp;</span><span class="hps">be visible</span><span class="Apple-converted-space">&nbsp;</span><span class="hps">externally</span><span class="Apple-converted-space">&nbsp;</span><span class="hps">is connected to</span><span class="Apple-converted-space">&nbsp;</span><span class="hps">an external</span><span class="Apple-converted-space">&nbsp;</span><span class="hps">customer service</span><span class="Apple-converted-space">&nbsp;</span><span class="hps">hired</span><span class="Apple-converted-space">&nbsp;</span><span class="hps">by another company</span>.<br><br><span class="hps">My question</span>:<br><span class="hps">How can I</span><span class="Apple-converted-space">&nbsp;</span><span class="hps">add</span><span class="Apple-converted-space">&nbsp;</span><span class="hps">this</span><span class="Apple-converted-space">&nbsp;</span><span class="hps">header</span><span class="Apple-converted-space">&nbsp;</span><span class="hps">in a</span><span class="Apple-converted-space">&nbsp;</span><span class="hps">originateaction</span><span class="Apple-converted-space">&nbsp;</span><span class="hps">call via</span><span class="Apple-converted-space">&nbsp;</span><span class="hps">AMI</span>?<br><br><o:p></o:p></span></div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span class="hps"><span lang="EN">Does</span></span><span lang="EN"><span class="Apple-converted-space">&nbsp;</span><span class="hps">the</span><span class="Apple-converted-space">&nbsp;</span><span class="hps">originated</span><span class="Apple-converted-space">&nbsp;</span><span class="hps">calls</span><span class="Apple-converted-space">&nbsp;</span><span class="hps">go</span><span class="Apple-converted-space">&nbsp;</span><span class="hps">through</span><span class="Apple-converted-space">&nbsp;</span><span class="hps">any</span><span class="Apple-converted-space">&nbsp;</span><span class="hps">context</span><span class="Apple-converted-space">&nbsp;</span><span class="hps">where</span><span class="Apple-converted-space">&nbsp;</span><span class="hps">I can</span><span class="Apple-converted-space">&nbsp;</span><span class="hps">add</span><span class="Apple-converted-space">&nbsp;</span><span class="hps">this</span><span class="Apple-converted-space">&nbsp;</span><span class="hps">header</span><span class="Apple-converted-space">&nbsp;</span><span class="hps">with dialplan functions like "</span>AddSipHeader<span class="hps">()</span>" or<span class="Apple-converted-space">&nbsp;</span><span class="hps">is it</span><span class="Apple-converted-space">&nbsp;</span>p<span class="hps">ossible</span><span class="Apple-converted-space">&nbsp;</span><span class="hps">to</span><span class="Apple-converted-space">&nbsp;</span><span class="hps">do</span><span class="hps">this</span><span class="Apple-converted-space">&nbsp;</span>d<span class="hps">irectly</span><span class="Apple-converted-space">&nbsp;</span>i<span class="hps">n the</span><span class="Apple-converted-space">&nbsp;</span><span class="hps">OriginateAction</span><span class="Apple-converted-space">&nbsp;</span><span class="hps">through</span><span class="Apple-converted-space">&nbsp;</span><span class="hps">AMI</span>?<o:p></o:p></span></div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span lang="EN"><o:p>&nbsp;</o:p></span></div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span lang="EN-US"><o:p>&nbsp;</o:p></span></div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span lang="EN-US">Example from voip-info:<o:p></o:p></span></div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span lang="EN-US"><o:p>&nbsp;</o:p></span></div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span lang="EN-US">[macro-diversion-header]<br>exten =&gt; s,1,SIPAddHeader(Diversion: &lt;tel:+{ARG1}&gt;\;reason=user=busy\;screen=no\;privacy=off)<o:p></o:p></span></div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span lang="EN-US"><o:p>&nbsp;</o:p></span></div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span lang="EN"><o:p>&nbsp;</o:p></span></div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span lang="EN">Best regards<o:p></o:p></span></div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span lang="EN">Tobias</span><span lang="EN-US"><o:p></o:p></span></div></div>--<br>_____________________________________________________________________<br>-- Bandwidth and Colocation Provided by<span class="Apple-converted-space">&nbsp;</span><a href="http://www.api-digital.com" style="color: blue; text-decoration: underline; ">http://www.api-digital.com</a><span class="Apple-converted-space">&nbsp;</span>--<br>New to Asterisk? Join us for a live introductory webinar every Thurs:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="http://www.asterisk.org/hello" style="color: blue; text-decoration: underline; ">http://www.asterisk.org/hello</a><br><br>asterisk-users mailing list<br>To UNSUBSCRIBE or update options visit:<br>&nbsp;&nbsp;<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" style="color: blue; text-decoration: underline; ">http://lists.digium.com/mailman/listinfo/asterisk-users</a></div></span></blockquote></div><br></div></body></html>