[Freeswitch-users] Help with inbound calling

Stanislav Sinyagin ssinyagin at gmail.com
Mon Jun 22 13:39:01 MSD 2015


>> Processing 18585551212 <18585551212>->18585559999 in context external

does your "external" context have the matching conditions? I guess not.

See also my tutorial, hopefully it will be helpful:
https://github.com/voxserv/freeswitch_conf_minimal/blob/tutorials/docs/tutorial_01_simple_pbx.md

but in general, The Book is giving all the answers:
https://www.packtpub.com/networking-and-servers/freeswitch-12




On Mon, Jun 22, 2015 at 5:11 AM, Rick Ewart <rick at ewart.net> wrote:
> Hi All.
>
>
>
> I am new to FreeSwitch (but not to VoIP in general) and have been beating my
> head against the wall for a number of hours now on this. I seem to be having
> an issue with what seems like it should be a SIMPLE thing to do.
>
>
>
> I have a carrier that I am registering my FS to, and I am able to make
> outgoing calls without an issue as well as calls between extensions. However
> when I make inbound calls I get an error about no route. I have researched
> everything I can find, tried 50 different variations on the same thing, and
> haven’t found a solution. It seems like it has to be something simple I am
> missing. The config is pretty standard from the regular install. FreeSWITCH
> Version 1.4.15~64bit on CentOS for whatever that matters.
>
>
>
> Below is the error I am receiving on the console. I made things a bit
> generic but in this case I am calling the DID 18585551212 (I get 11 digits
> from the carrier). My FS is 123.123.12.31 and the upstream carrier is
> 123.123.12.30. No NAT here – both are public IPs and actually in the same
> subnet.
>
>
>
> As you can see below, I have ext 1000 registered to the system, and the
> carrier gateway is registered also. Finally, I provided my inbound DID
> dialplan.
>
>
>
> I am grateful for any help you can provide.
>
>
>
> Thanks.
>
> Rick
>
>
>
> [NOTICE] switch_channel.c:1055 New Channel
> sofia/external/18585551212 at 123.123.12.30:5060
> [abd31162-1886-11e5-a031-c396b897fabe]
>
> [INFO] mod_dialplan_xml.c:635 Processing 18585551212
> <18585551212>->18585559999 in context external
>
> [WARNING] mod_dialplan_xml.c:665 Context external not found
>
> [INFO] switch_core_state_machine.c:241 No Route, Aborting
>
> [NOTICE] switch_core_state_machine.c:242 Hangup
> sofia/external/18585551212 at 123.123.12.30:5060 [CS_ROUTING]
> [NO_ROUTE_DESTINATION]
>
> [NOTICE] switch_core_session.c:1633 Session 32
> (sofia/external/18585551212 at 123.123.12.30:5060) Ended
>
> [NOTICE] switch_core_session.c:1637 Close Channel
> sofia/external/18585551212 at 123.123.12.30:5060 [CS_DESTROY]
>
>
>
> dialplan/public/00_inbound_did.xml:
>
>    <extension name="18585559999">
>
>     <condition field="destination_number" expression="18585559999">
>
>      <action application="set" data="domain_name=$${domain}"/>
>
>      <action application="transfer" data="1000 XML default"/>
>
>     </condition>
>
>    </extension>
>
>
>
>                      Name          Type
> Data      State
>
> =================================================================================================
>
>       external       profile           sip:mod_sofia at 123.123.12.31:5080
> RUNNING (0)
>
>       external::xyzswitch       gateway
> sip:ricktest at 123.123.12.30     REGED
>
>       atl.somecompany.net         alias
> internal      ALIASED
>
>       internal       profile           sip:mod_sofia at 123.123.12.31:5060
> RUNNING (0)
>
> =================================================================================================
>
>
>
> Registrations:
>
> =================================================================================================
>
> Call-ID:        fd6446250b3b4d489aad6bb3a5bf5603
>
> User:           1000 at atl.somecompany.net
>
> Contact:        "Rick"
> <sip:1000 at 10.1.10.123:5060;ob;fs_nat=yes;fs_path=sip:1000 at 70.12.123.222%3A5060;ob>
>
> Agent:          MicroSIP/3.3.31
>
> Status:         Registered(UDP-NAT)(unknown) EXP(2015-06-21 22:52:03)
> EXPSECS(208)
>
> Ping-Status:    Reachable
>
> Host:           atl.somecompany.net
>
> IP:             70.12.123.222
>
> Port:           5060
>
> Auth-User:      1000
>
> Auth-Realm:     123.123.12.31
>
> MWI-Account:    1000 at atl.somecompany.net
>
>
>
> Total items returned: 1
>
> =================================================================================================
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://confluence.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



Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list