<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.hps
        {mso-style-name:hps;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=SV link=blue vlink=purple><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> </o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </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> </o:p></span></p><p class=MsoNormal><span lang=EN-US>[macro-diversion-header]<br>exten => s,1,SIPAddHeader(Diversion: <tel:+{ARG1}>\;reason=user=busy\;screen=no\;privacy=off)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN><o:p> </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></body></html>