<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">&lt;include&gt;</p>
<p class="MsoNormal">    &lt;gateway name=&quot;SIP-Provider&quot;&gt;</p><p class="MsoNormal">      &lt;param name=&quot;username&quot; value=&quot;${outbound_caller_id_number}&quot;/&gt;</p><p class="MsoNormal">      &lt;param name=&quot;password&quot; value=&quot;password&quot;/&gt;</p>
<p class="MsoNormal">      &lt;param name=&quot;realm&quot; value=&quot;1.2.3.4&quot;/&gt;</p><p class="MsoNormal">      &lt;param name=&quot;proxy&quot; value=&quot;1.2.3.4&quot;/&gt;</p><p class="MsoNormal">      &lt;param name=&quot;expire-seconds&quot; value=&quot;800&quot;/&gt;</p>
<p class="MsoNormal">      &lt;param name=&quot;register&quot; value=&quot;false&quot;/&gt;</p><p class="MsoNormal">      &lt;param name=&quot;retry-seconds&quot; value=&quot;60&quot;/&gt;</p><p class="MsoNormal">      &lt;param name=&quot;context&quot; value=&quot;public&quot;/&gt;</p>
<p class="MsoNormal">    &lt;/gateway&gt;</p><p class="MsoNormal">&lt;/include&gt;</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>