<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Thank you Ali &amp; Stanislav for your prompt replies.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>I am still working out the basics and this should let me figure it out, along with the tutorial you linked me to.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>And I have ordered the book (even though its for 1.2). Its just not here yet. :)<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Thanks again.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Rick<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] <b>On Behalf Of </b>Ali Jibran<br><b>Sent:</b> Monday, June 22, 2015 5:43 AM<br><b>To:</b> FreeSWITCH Users Help<br><b>Subject:</b> Re: [Freeswitch-users] Help with inbound calling<o:p></o:p></span></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><div><p class=MsoNormal>By default FS has two contexts. Default and Private.<o:p></o:p></p><div><p class=MsoNormal><o:p>&nbsp;</o:p></p></div><div><p class=MsoNormal>The call is looking for context External.<o:p></o:p></p></div><div><p class=MsoNormal><o:p>&nbsp;</o:p></p></div><div><p class=MsoNormal>So either make a new context External in the dialplan and copy your dialplan there.&nbsp;<o:p></o:p></p></div><div><p class=MsoNormal>Or change the internal/external profile settings and set the context explicitly to default/public.<o:p></o:p></p></div></div><div><p class=MsoNormal><o:p>&nbsp;</o:p></p><div><p class=MsoNormal>On Mon, Jun 22, 2015 at 2:39 PM, Stanislav Sinyagin &lt;<a href="mailto:ssinyagin@gmail.com" target="_blank">ssinyagin@gmail.com</a>&gt; wrote:<o:p></o:p></p><p class=MsoNormal>&gt;&gt; Processing 18585551212 &lt;18585551212&gt;-&gt;18585559999 in context external<br><br>does your &quot;external&quot; context have the matching conditions? I guess not.<br><br>See also my tutorial, hopefully it will be helpful:<br><a href="https://github.com/voxserv/freeswitch_conf_minimal/blob/tutorials/docs/tutorial_01_simple_pbx.md" target="_blank">https://github.com/voxserv/freeswitch_conf_minimal/blob/tutorials/docs/tutorial_01_simple_pbx.md</a><br><br>but in general, The Book is giving all the answers:<br><a href="https://www.packtpub.com/networking-and-servers/freeswitch-12" target="_blank">https://www.packtpub.com/networking-and-servers/freeswitch-12</a><o:p></o:p></p><div><div><p class=MsoNormal><br><br><br><br>On Mon, Jun 22, 2015 at 5:11 AM, Rick Ewart &lt;<a href="mailto:rick@ewart.net">rick@ewart.net</a>&gt; wrote:<br>&gt; Hi All.<br>&gt;<br>&gt;<br>&gt;<br>&gt; I am new to FreeSwitch (but not to VoIP in general) and have been beating my<br>&gt; head against the wall for a number of hours now on this. I seem to be having<br>&gt; an issue with what seems like it should be a SIMPLE thing to do.<br>&gt;<br>&gt;<br>&gt;<br>&gt; I have a carrier that I am registering my FS to, and I am able to make<br>&gt; outgoing calls without an issue as well as calls between extensions. However<br>&gt; when I make inbound calls I get an error about no route. I have researched<br>&gt; everything I can find, tried 50 different variations on the same thing, and<br>&gt; haven’t found a solution. It seems like it has to be something simple I am<br>&gt; missing. The config is pretty standard from the regular install. FreeSWITCH<br>&gt; Version 1.4.15~64bit on CentOS for whatever that matters.<br>&gt;<br>&gt;<br>&gt;<br>&gt; Below is the error I am receiving on the console. I made things a bit<br>&gt; generic but in this case I am calling the DID 18585551212 (I get 11 digits<br>&gt; from the carrier). My FS is 123.123.12.31 and the upstream carrier is<br>&gt; 123.123.12.30. No NAT here – both are public IPs and actually in the same<br>&gt; subnet.<br>&gt;<br>&gt;<br>&gt;<br>&gt; As you can see below, I have ext 1000 registered to the system, and the<br>&gt; carrier gateway is registered also. Finally, I provided my inbound DID<br>&gt; dialplan.<br>&gt;<br>&gt;<br>&gt;<br>&gt; I am grateful for any help you can provide.<br>&gt;<br>&gt;<br>&gt;<br>&gt; Thanks.<br>&gt;<br>&gt; Rick<br>&gt;<br>&gt;<br>&gt;<br>&gt; [NOTICE] switch_channel.c:1055 New Channel<br>&gt; sofia/external/<a href="http://18585551212@123.123.12.30:5060" target="_blank"><b><span style='color:red'>Ewart Technolgies Inc. has detected a possible fraud attempt from &quot;18585551212@123.123.12.30:5060&quot; claiming to be</span></b> 18585551212@123.123.12.30:5060</a><br>&gt; [abd31162-1886-11e5-a031-c396b897fabe]<br>&gt;<br>&gt; [INFO] mod_dialplan_xml.c:635 Processing 18585551212<br>&gt; &lt;18585551212&gt;-&gt;18585559999 in context external<br>&gt;<br>&gt; [WARNING] mod_dialplan_xml.c:665 Context external not found<br>&gt;<br>&gt; [INFO] switch_core_state_machine.c:241 No Route, Aborting<br>&gt;<br>&gt; [NOTICE] switch_core_state_machine.c:242 Hangup<br>&gt; sofia/external/<a href="http://18585551212@123.123.12.30:5060" target="_blank"><b><span style='color:red'>Ewart Technolgies Inc. has detected a possible fraud attempt from &quot;18585551212@123.123.12.30:5060&quot; claiming to be</span></b> 18585551212@123.123.12.30:5060</a> [CS_ROUTING]<br>&gt; [NO_ROUTE_DESTINATION]<br>&gt;<br>&gt; [NOTICE] switch_core_session.c:1633 Session 32<br>&gt; (sofia/external/<a href="http://18585551212@123.123.12.30:5060" target="_blank"><b><span style='color:red'>Ewart Technolgies Inc. has detected a possible fraud attempt from &quot;18585551212@123.123.12.30:5060&quot; claiming to be</span></b> 18585551212@123.123.12.30:5060</a>) Ended<br>&gt;<br>&gt; [NOTICE] switch_core_session.c:1637 Close Channel<br>&gt; sofia/external/<a href="http://18585551212@123.123.12.30:5060" target="_blank"><b><span style='color:red'>Ewart Technolgies Inc. has detected a possible fraud attempt from &quot;18585551212@123.123.12.30:5060&quot; claiming to be</span></b> 18585551212@123.123.12.30:5060</a> [CS_DESTROY]<br>&gt;<br>&gt;<br>&gt;<br>&gt; dialplan/public/00_inbound_did.xml:<br>&gt;<br>&gt;&nbsp; &nbsp; &lt;extension name=&quot;18585559999&quot;&gt;<br>&gt;<br>&gt;&nbsp; &nbsp; &nbsp;&lt;condition field=&quot;destination_number&quot; expression=&quot;18585559999&quot;&gt;<br>&gt;<br>&gt;&nbsp; &nbsp; &nbsp; &lt;action application=&quot;set&quot; data=&quot;domain_name=$${domain}&quot;/&gt;<br>&gt;<br>&gt;&nbsp; &nbsp; &nbsp; &lt;action application=&quot;transfer&quot; data=&quot;1000 XML default&quot;/&gt;<br>&gt;<br>&gt;&nbsp; &nbsp; &nbsp;&lt;/condition&gt;<br>&gt;<br>&gt;&nbsp; &nbsp; &lt;/extension&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Name&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Type<br>&gt; Data&nbsp; &nbsp; &nbsp; State<br>&gt;<br>&gt; =================================================================================================<br>&gt;<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp;external&nbsp; &nbsp; &nbsp; &nbsp;profile&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<a href="http://sip:mod_sofia@123.123.12.31:5080" target="_blank">sip:mod_sofia@123.123.12.31:5080</a><br>&gt; RUNNING (0)<br>&gt;<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp;external::xyzswitch&nbsp; &nbsp; &nbsp; &nbsp;gateway<br>&gt; <a href="mailto:sip%3Aricktest@123.123.12.30">sip:ricktest@123.123.12.30</a>&nbsp; &nbsp; &nbsp;REGED<br>&gt;<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp;<a href="http://atl.somecompany.net" target="_blank">atl.somecompany.net</a>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;alias<br>&gt; internal&nbsp; &nbsp; &nbsp; ALIASED<br>&gt;<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp;internal&nbsp; &nbsp; &nbsp; &nbsp;profile&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<a href="http://sip:mod_sofia@123.123.12.31:5060" target="_blank">sip:mod_sofia@123.123.12.31:5060</a><br>&gt; RUNNING (0)<br>&gt;<br>&gt; =================================================================================================<br>&gt;<br>&gt;<br>&gt;<br>&gt; Registrations:<br>&gt;<br>&gt; =================================================================================================<br>&gt;<br>&gt; Call-ID:&nbsp; &nbsp; &nbsp; &nbsp; fd6446250b3b4d489aad6bb3a5bf5603<br>&gt;<br>&gt; User:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<a href="mailto:1000@atl.somecompany.net">1000@atl.somecompany.net</a><br>&gt;<br>&gt; Contact:&nbsp; &nbsp; &nbsp; &nbsp; &quot;Rick&quot;<br>&gt; &lt;sip:1000@10.1.10.123:5060;ob;fs_nat=yes;fs_path=<a href="mailto:sip%3A1000@70.12.123.222">sip:1000@70.12.123.222</a>%3A5060;ob&gt;<br>&gt;<br>&gt; Agent:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MicroSIP/3.3.31<br>&gt;<br>&gt; Status:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Registered(UDP-NAT)(unknown) EXP(2015-06-21 22:52:03)<br>&gt; EXPSECS(208)<br>&gt;<br>&gt; Ping-Status:&nbsp; &nbsp; Reachable<br>&gt;<br>&gt; Host:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<a href="http://atl.somecompany.net" target="_blank">atl.somecompany.net</a><br>&gt;<br>&gt; IP:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;70.12.123.222<br>&gt;<br>&gt; Port:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;5060<br>&gt;<br>&gt; Auth-User:&nbsp; &nbsp; &nbsp; 1000<br>&gt;<br>&gt; Auth-Realm:&nbsp; &nbsp; &nbsp;123.123.12.31<br>&gt;<br>&gt; MWI-Account:&nbsp; &nbsp; <a href="mailto:1000@atl.somecompany.net">1000@atl.somecompany.net</a><br>&gt;<br>&gt;<br>&gt;<br>&gt; Total items returned: 1<br>&gt;<br>&gt; =================================================================================================<br>&gt;<br>&gt;<o:p></o:p></p></div></div><p class=MsoNormal>&gt; _________________________________________________________________________<br>&gt; Professional FreeSWITCH Consulting Services:<br>&gt; <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>&gt; <a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>&gt;<br>&gt; Official FreeSWITCH Sites<br>&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>&gt; <a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>&gt; <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>&gt;<br>&gt; FreeSWITCH-users mailing list<br>&gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><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>Official FreeSWITCH Sites<br><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br><a href="http://confluence.freeswitch.org" target="_blank">http://confluence.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><o:p></o:p></p></div><p class=MsoNormal><o:p>&nbsp;</o:p></p></div></div></body></html>