[Freeswitch-users] Gateway Configuration (asteriskexampleprovided)

Anderson Arboleya me at nybras.com
Fri Mar 23 23:50:30 MSK 2012


Damn! I forgot to do a stupid telnet. Thank you for shaking me, I was
assuming
the mistake was mine because I'm so new to this.

There was a problem with the provider's firewall but now it seems to be
solved,
when I do a "sofia status" the gateway appears REGED.

Now I'm trying to properly route the calls in my dialplan to run my
LuaScript.

So far I have:

/usr/local/freeswitch/conf/dialplan/public/testing.xml
========================================
<include>
    <extension name="testing-inbound">
      <condition field="destination_number" expression=".*">
        <action
            application="lua"
            data="/root/ginga-gingaphone/freeswitch/operator.lua"
          >
      </condition>
    </extension>
</include>
========================================

But when I call my number I got this log:

========================================
2012-03-23 20:36:23.465456 [NOTICE] switch_channel.c:926 New Channel
sofia/external/1135678377 at 189.84.133.130:5060[dae908e0-7527-11e1-8295-15ac0b75d081]
2012-03-23 20:36:23.465456 [NOTICE] sofia.c:5813 Hangup sofia/external/
1135678377 at 189.84.133.130:5060 [CS_NEW] [INCOMPATIBLE_DESTINATION]
2012-03-23 20:36:23.465456 [NOTICE] switch_core_session.c:1400 Session 8
(sofia/external/1135678377 at 189.84.133.130:5060) Ended
2012-03-23 20:36:23.465456 [NOTICE] switch_core_session.c:1402 Close
Channel sofia/external/1135678377 at 189.84.133.130:5060 [CS_DESTROY]
========================================

When I tested the same Dialplan in the default context, calling from a SIP
client without passing through the external gateway it worked fine and my
lua script is hit, answering the call.

What am I doing wrong?

Thanks again.


Anderson Arboleya


On Thu, Mar 22, 2012 at 10:12 AM, Saugort Dario Garcia Tovar <
dgarcia at anew.com.ve> wrote:
>
> Hi,
>
> Have you tried the basic first?
> 1. Do a ping from your FS to your provider IP to check conectivity
> 2. Do a telnet: telne PROVIDER_IP PORT and see if it open conection
> 3. Have you a firewall installed?
> 4. Have you FS behind a router doing NAT or it has network interface
conected directly to internet?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20120323/8a4aaca9/attachment.html 


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