Thank you for doing the research here. Any chance you could add this to the FreeTDM page on the wiki?<br>-MC<br><br><div class="gmail_quote">On Tue, Oct 16, 2012 at 2:28 AM, mbo <span dir="ltr">&lt;<a href="mailto:mbodbg@gmx.net" target="_blank">mbodbg@gmx.net</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">After some research in the code, I found out that instead of setting<br>
destination_number_ton the variable &quot;freetdm_outbound_ton&quot; has to be set on<br>
originate. Valid values are &quot;national&quot;, &quot;international&quot;, &quot;local&quot; and<br>
&quot;unknown&quot;. So in my case the following command will work:<br>
<br>
bgapi originate<br>
{origination_caller_id_number=XXXX,originate_timeout=20,origination_uuid=7a1093b5-4225-4a99-b3dc-bb4254217e4,freetdm_outbound_ton=international}freetdm/1/a/XXXX<br>
&amp;park<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://freeswitch-users.2379917.n2.nabble.com/How-to-set-destination-number-ton-when-originating-a-call-with-bgapi-tp7583632p7583666.html" target="_blank">http://freeswitch-users.2379917.n2.nabble.com/How-to-set-destination-number-ton-when-originating-a-call-with-bgapi-tp7583632p7583666.html</a><br>

Sent from the freeswitch-users mailing list archive at Nabble.com.<br>
<br>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><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>Michael S Collins<br>Twitter: @mercutioviz<br><a href="http://www.FreeSWITCH.org" target="_blank">http://www.FreeSWITCH.org</a><br><a href="http://www.ClueCon.com" target="_blank">http://www.ClueCon.com</a><br>
<a href="http://www.OSTAG.org" target="_blank">http://www.OSTAG.org</a><br><br><br>