<html><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:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@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";}
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;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style></head><body lang="EN-NZ" link="blue" vlink="purple"><div class="WordSection1"><p class="MsoNormal">Hi,</p><p class="MsoNormal"> </p><p class="MsoNormal">I have a sip provider who requires me to set the username to be the same as the outbound caller id for the gateway (trunk) to them.</p>
<p class="MsoNormal"> </p><p class="MsoNormal">Is there a way to do this dynamically for each call?</p><p class="MsoNormal"> </p><p class="MsoNormal">e.g.</p><p class="MsoNormal"> </p><p class="MsoNormal"><include></p>
<p class="MsoNormal"> <gateway name="SIP-Provider"></p><p class="MsoNormal"> <param name="username" value="${outbound_caller_id_number}"/></p><p class="MsoNormal"> <param name="password" value="password"/></p>
<p class="MsoNormal"> <param name="realm" value="1.2.3.4"/></p><p class="MsoNormal"> <param name="proxy" value="1.2.3.4"/></p><p class="MsoNormal"> <param name="expire-seconds" value="800"/></p>
<p class="MsoNormal"> <param name="register" value="false"/></p><p class="MsoNormal"> <param name="retry-seconds" value="60"/></p><p class="MsoNormal"> <param name="context" value="public"/></p>
<p class="MsoNormal"> </gateway></p><p class="MsoNormal"></include></p><p class="MsoNormal"> </p><p class="MsoNormal"> </p><p class="MsoNormal">Cheers</p><p class="MsoNormal"> </p><p class="MsoNormal">Liam</p>
<p class="MsoNormal"> </p><p class="MsoNormal"> </p></div></body></html>