Thanks,<div><br></div><div>Ended up using   &lt;action application=&quot;bridge&quot; data=&quot;{sip_contact_user=${outbound_caller_id_number}}sofia/external/${<a href="http://destination_number}@1.2.3.4:5060">destination_number}@1.2.3.4:5060</a>&quot; /&gt; in my outbound dialplan.<br>
<br><div class="gmail_quote">On Wed, May 25, 2011 at 7:01 AM, Kristian Kielhofner <span dir="ltr">&lt;<a href="mailto:kris@kriskinc.com">kris@kriskinc.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Don&#39;t use a gateway at all:<br>
<br>
<a href="http://wiki.freeswitch.org/wiki/Variable_sip_auth_username" target="_blank">http://wiki.freeswitch.org/wiki/Variable_sip_auth_username</a><br>
<div><div></div><div class="h5"><br>
On Tue, May 24, 2011 at 1:17 AM, Liam Farr &lt;<a href="mailto:liam@intersys.co.nz">liam@intersys.co.nz</a>&gt; wrote:<br>
&gt; Hi,<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; I have a sip provider who requires me to set the username to be the same as<br>
&gt; the outbound caller id for the gateway (trunk) to them.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Is there a way to do this dynamically for each call?<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; e.g.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; &lt;include&gt;<br>
&gt;<br>
&gt;     &lt;gateway name=&quot;SIP-Provider&quot;&gt;<br>
&gt;<br>
&gt;       &lt;param name=&quot;username&quot; value=&quot;${outbound_caller_id_number}&quot;/&gt;<br>
&gt;<br>
&gt;       &lt;param name=&quot;password&quot; value=&quot;password&quot;/&gt;<br>
&gt;<br>
&gt;       &lt;param name=&quot;realm&quot; value=&quot;1.2.3.4&quot;/&gt;<br>
&gt;<br>
&gt;       &lt;param name=&quot;proxy&quot; value=&quot;1.2.3.4&quot;/&gt;<br>
&gt;<br>
&gt;       &lt;param name=&quot;expire-seconds&quot; value=&quot;800&quot;/&gt;<br>
&gt;<br>
&gt;       &lt;param name=&quot;register&quot; value=&quot;false&quot;/&gt;<br>
&gt;<br>
&gt;       &lt;param name=&quot;retry-seconds&quot; value=&quot;60&quot;/&gt;<br>
&gt;<br>
&gt;       &lt;param name=&quot;context&quot; value=&quot;public&quot;/&gt;<br>
&gt;<br>
&gt;     &lt;/gateway&gt;<br>
&gt;<br>
&gt; &lt;/include&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Cheers<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Liam<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
</div></div>&gt; _______________________________________________<br>
&gt; FreeSWITCH-users mailing list<br>
&gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;<br>
&gt;<br>
<br>
<br>
<br>
--<br>
Kristian Kielhofner<br>
<br>
_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</blockquote></div><br><br clear="all"><br>-- <br><div><br></div><div><br></div><div>Kind Regards</div><div><br></div><div><br></div><div>Liam Farr</div><div><br></div><div>Intersys Ltd</div><div>Email: <a href="mailto:liam@intersys.co.nz" target="_blank">liam@intersys.co.nz</a></div>
<div>Mobile: +64-22-6107884</div><div>Skype: nz_liam</div><br>
</div>