Thanks,<div><br></div><div>Ended up using <action application="bridge" data="{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>" /> in my outbound dialplan.<br>
<br><div class="gmail_quote">On Wed, May 25, 2011 at 7:01 AM, Kristian Kielhofner <span dir="ltr"><<a href="mailto:kris@kriskinc.com">kris@kriskinc.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Don'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 <<a href="mailto:liam@intersys.co.nz">liam@intersys.co.nz</a>> wrote:<br>
> Hi,<br>
><br>
><br>
><br>
> I have a sip provider who requires me to set the username to be the same as<br>
> the outbound caller id for the gateway (trunk) to them.<br>
><br>
><br>
><br>
> Is there a way to do this dynamically for each call?<br>
><br>
><br>
><br>
> e.g.<br>
><br>
><br>
><br>
> <include><br>
><br>
> <gateway name="SIP-Provider"><br>
><br>
> <param name="username" value="${outbound_caller_id_number}"/><br>
><br>
> <param name="password" value="password"/><br>
><br>
> <param name="realm" value="1.2.3.4"/><br>
><br>
> <param name="proxy" value="1.2.3.4"/><br>
><br>
> <param name="expire-seconds" value="800"/><br>
><br>
> <param name="register" value="false"/><br>
><br>
> <param name="retry-seconds" value="60"/><br>
><br>
> <param name="context" value="public"/><br>
><br>
> </gateway><br>
><br>
> </include><br>
><br>
><br>
><br>
><br>
><br>
> Cheers<br>
><br>
><br>
><br>
> Liam<br>
><br>
><br>
><br>
><br>
><br>
</div></div>> _______________________________________________<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>
><br>
><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>