[Freeswitch-users] Gateway Configuration (asterisk example provided)

Fernando - NextBilling IP Solutions fernandojdk at gmail.com
Thu Mar 22 05:37:10 MSK 2012


Please read: http://wiki.freeswitch.org/wiki/Clarification:gateways

You should "tell" freeswitch to register to your gateway:

# /usr/local/freeswitch/conf/sip_profiles/external/testing.xml
<include>
<gateway name="testing">
<param name="username" value="USERNAME" />
<param name="realm" value="SERVER_IP" />
<param name="password" value="PASSWORD" />
<param name="register" value="true"/>
</gateway>
</include>

Look the param register: <param name="register" value="true"/>

Best Regards,

Fernando da Silva Santos
NextBilling IP Solutions LTDA
Phone: +55 21 2143-9000
MSN: fernandojdk at gmail.com
www.nextbilling.com.br
Rio de Janeiro, Brazil, BR
Importante: 
Esta mensagem, incluindo todo seu conteúdo, contém informações confidenciais
 legalmente protegidas e destinadas a indivíduo e propósito específicos.
Caso a tenha recebido por engano, lembramos do caráter sigiloso e
solicitamos a gentileza de desconsiderá-la e comunicar-nos o mais breve
possível.
As informações contidas nesta mensagem e em seu conteúdo são de
responsabilidade de seu autor, não representando necessariamente idéias,
opiniões, pensamentos ou qualquer forma de posicionamento por parte da
NextBilling IP Solutions.
P "Antes de imprimir pense em seu compromisso com o Meio Ambiente."

-------Original Message-------
 

 
From: Anderson Arboleya
Date: 21/03/2012 23:28:45
To: freeswitch-users at lists.freeswitch.org
Subject: [Freeswitch-users] Gateway Configuration (asterisk example
provided)
 
Hello,

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


 
Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.freeswitch.org
http://www.cluecon.com
 
FreeSWITCH-users mailing list
FreeSWITCH-users at lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20120321/959f2179/attachment.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list