<div class="gmail_quote">On Mar 21, 2012 10:27 PM, "Anderson Arboleya" <<a href="mailto:me@nybras.com">me@nybras.com</a>> 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'm trying to connect freeswitch to a provider so I can call real<br>
numbers and reach my freeswitch server, but I'm kinda stuck in this<br>
process.<br>
<br>
My provider sent me this Asterisk's configs:<br>
<br>
=======================================================<br>
# sip.conf:<br>
register => 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 => 3131,1,Noop(ORIGEM - ${CALLERID(num)})<br>
exten => 3131,n,Dial(${TRUNKPBX}/${RAMAL})<br>
exten => 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>
<include><br>
<gateway name="testing"><br>
<param name="username" value="USERNAME" /><br>
<param name="realm" value="SERVER_IP" /><br>
<param name="password" value="PASSWORD" /><br>
</gateway><br>
</include><br>
<br>
# /usr/local/freeswitch/conf/dialplan/public/testing.xml<br>
<include><br>
<extension name="testing-inbound"><br>
<condition field="destination_number" expression="^(USERNAME)$"><br>
<action application="lua" data="/root/call_logger.lua" /><br>
</condition><br>
</extension><br>
</include><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 "dedicated number" 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'm an experienced programmer but I'm just starting with all<br>
this telephony thing and I don'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>