<div class="gmail_quote">On Mar 21, 2012 10:27 PM, &quot;Anderson Arboleya&quot; &lt;<a href="mailto:me@nybras.com">me@nybras.com</a>&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello,<br>
<br>
I&#39;m trying to connect freeswitch to a provider so I can call real<br>
numbers and reach my freeswitch server, but I&#39;m kinda stuck in this<br>
process.<br>
<br>
My provider sent me this Asterisk&#39;s configs:<br>
<br>
=======================================================<br>
# sip.conf:<br>
register   =&gt;   USERNAME:PASSWD@SERVER_IP<br>
<br>
[directcall12]<br>
context=default<br>
fromuser= USERNAME<br>
username= USERNAME<br>
secret= PASSWD<br>
type=friend<br>
host=SERVER_IP<br>
canreinvite=no<br>
nat=no<br>
dtmfmode=rfc2833<br>
insecure=very<br>
disallow=all<br>
allow=g729<br>
<br>
# extensions.conf:<br>
exten =&gt; 3131,1,Noop(ORIGEM - ${CALLERID(num)})<br>
exten =&gt; 3131,n,Dial(${TRUNKPBX}/${RAMAL})<br>
exten =&gt; 3131,n,Hangup()<br>
<br>
** change these settings according you internal extensions configs<br>
=======================================================<br>
<br>
<br>
Well, I tried adapting it to FreeSwitch like this (according some<br>
examples I found across the web):<br>
<br>
=======================================================<br>
# /usr/local/freeswitch/conf/sip_profiles/external/testing.xml<br>
&lt;include&gt;<br>
        &lt;gateway name=&quot;testing&quot;&gt;<br>
                &lt;param name=&quot;username&quot; value=&quot;USERNAME&quot; /&gt;<br>
                &lt;param name=&quot;realm&quot; value=&quot;SERVER_IP&quot; /&gt;<br>
                &lt;param name=&quot;password&quot; value=&quot;PASSWORD&quot; /&gt;<br>
        &lt;/gateway&gt;<br>
&lt;/include&gt;<br>
<br>
# /usr/local/freeswitch/conf/dialplan/public/testing.xml<br>
&lt;include&gt;<br>
    &lt;extension name=&quot;testing-inbound&quot;&gt;<br>
      &lt;condition field=&quot;destination_number&quot; expression=&quot;^(USERNAME)$&quot;&gt;<br>
        &lt;action application=&quot;lua&quot; data=&quot;/root/call_logger.lua&quot; /&gt;<br>
      &lt;/condition&gt;<br>
    &lt;/extension&gt;<br>
&lt;/include&gt;<br>
=======================================================<br>
<br>
In the end all I got is this log:<br>
<br>
2012-03-17 01:41:23.565471 [NOTICE] sofia_reg.c:415 Registering testing<br>
2012-03-17 01:41:55.565460 [ERR] sofia_reg.c:1962 testing Registration<br>
Failed with status Request Timeout [408].<br>
<br>
All I want is to connect with my provider and route the calls made to<br>
the real number my provider gave me to my Dialplan, so my lua script<br>
will be called.<br>
<br>
Btw, I dont actually bought a &quot;dedicated number&quot; but an extension. I<br>
mean, I will call a number and an IVR-menu will ask me for an<br>
extension, then I type the extension I bought (3131) and their system<br>
will send the call for me. Is this clear?<br>
<br>
Sorry, I&#39;m an experienced programmer but I&#39;m just starting with all<br>
this telephony thing and I don&#39;t know what else I need to do from this<br>
point on, I have searched a lot and tried a lot of different<br>
approaches, but none succeed.<br>
<br>
Could anybody help me with this, please?<br>
<br>
Thanks in advance.<br>
<br>
<br>
Anderson Arboleya<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>