<html><body bgcolor="#FFFFFF"><div>Try run your outbound leg through a Local channel.<br><br><div><span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.292969); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469); ">--</span></div><div><span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.292969); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469);">This message was painstakingly thumbed out on my mobile, so apologies for brevity, errors, and general sloppiness.</span></div><div><span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.292969); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469); "><br></span></div><div>Alex Balashov - Principal</div><div>Evariste Systems LLC</div><div>260 Peachtree Street NW</div><div>Suite 2200</div><div>Atlanta, GA 30303</div><div>Tel: +1-678-954-0670</div><div>Fax: +1-404-961-1892</div><div>Web: <a href="http://www.evaristesys.com/"><a href="http://www.evaristesys.com/">http://www.evaristesys.com/</a></a></div></div><div><br>On Oct 7, 2011, at 11:03 AM, "Tobias Steen" &lt;<a href="mailto:tobias.steen@s2.se">tobias.steen@s2.se</a>&gt; wrote:<br><br></div><div></div><blockquote type="cite"><div><div class="WordSection1"><p class="MsoNormal"><span class="hps"><span lang="EN">Hello</span></span><span lang="EN">!<br><br><span class="hps">I</span> <span class="hps">want</span> <span class="hps">to thank</span> <span class="hps">everyone who</span> <span class="hps">helped me out</span> <span class="hps">with</span> <span class="hps">tips for</span> <span class="hps">load</span> <span class="hps">balancing</span> <span class="hps">asterisk</span> <span class="hps">machines</span> <span class="hps">in</span> <span class="hps">a cluster.</span><br><br><span class="hps">I have</span> <span class="hps">encountered a</span> <span class="hps">new problem that</span> <span class="hps">is related to SIP</span> d<span class="hps">iversion</span> <span class="hps">headers in the INVITE.</span><br><br><span class="hps">I make</span> <span class="hps">calls through</span> <span class="hps">the manager</span> <span class="hps">interface</span> <span class="hps">and</span> <span class="hps">now want to</span> <span class="hps">add</span> <span class="hps">a</span> <span class="hps">SIP-Diversion</span> <span class="hps">header that</span> <span class="hps">changes the</span> <span class="hps">CallerID</span> <span class="hps">of</span> <span class="hps">a number that</span> <span class="hps">is not available on the</span> <span class="hps">trunk</span>, <span class="hps">the CallerID to</span> <span class="hps">be visible</span> <span class="hps">externally</span> <span class="hps">is connected to</span> <span class="hps">an external</span> <span class="hps">customer service</span> <span class="hps">hired</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="hps">add</span> <span class="hps">this</span> <span class="hps">header</span> <span class="hps">in a</span> <span class="hps">originateaction</span> <span class="hps">call via</span> <span class="hps">AMI</span>?<br><br><o:p></o:p></span></p><p class="MsoNormal"><span class="hps"><span lang="EN">Does</span></span><span lang="EN"> <span class="hps">the</span> <span class="hps">originated</span> <span class="hps">calls</span> <span class="hps">go</span> <span class="hps">through</span> <span class="hps">any</span> <span class="hps">context</span> <span class="hps">where</span> <span class="hps">I can</span> <span class="hps">add</span> <span class="hps">this</span> <span class="hps">header</span> <span class="hps">with dialplan functions like "</span>AddSipHeader<span class="hps">()</span>" or <span class="hps">is it</span> p<span class="hps">ossible</span> <span class="hps">to</span> <span class="hps">do</span> <span class="hps">this</span> d<span class="hps">irectly</span> i<span class="hps">n the</span> <span class="hps">OriginateAction</span> <span class="hps">through</span> <span class="hps">AMI</span>?<o:p></o:p></span></p><p class="MsoNormal"><span lang="EN"><o:p>&nbsp;</o:p></span></p><p class="MsoNormal"><span lang="EN-US"><o:p>&nbsp;</o:p></span></p><p class="MsoNormal"><span lang="EN-US">Example from voip-info:<o:p></o:p></span></p><p class="MsoNormal"><span lang="EN-US"><o:p>&nbsp;</o:p></span></p><p class="MsoNormal"><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></p><p class="MsoNormal"><span lang="EN-US"><o:p>&nbsp;</o:p></span></p><p class="MsoNormal"><span lang="EN"><o:p>&nbsp;</o:p></span></p><p class="MsoNormal"><span lang="EN">Best regards<o:p></o:p></span></p><p class="MsoNormal"><span lang="EN">Tobias</span><span lang="EN-US"><o:p></o:p></span></p></div></div></blockquote><blockquote type="cite"><div><span>--</span><br><span>_____________________________________________________________________</span><br><span>-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com">http://www.api-digital.com</a> --</span><br><span>New to Asterisk? Join us for a live introductory webinar every Thurs:</span><br><span> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="http://www.asterisk.org/hello"><a href="http://www.asterisk.org/hello">http://www.asterisk.org/hello</a></a></span><br><span></span><br><span>asterisk-users mailing list</span><br><span>To UNSUBSCRIBE or update options visit:</span><br><span> &nbsp;&nbsp;<a href="http://lists.digium.com/mailman/listinfo/asterisk-users"><a href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a></a></span></div></blockquote></body></html>