[Freeswitch-users] Why do inbound calls receive "invalid number"?

jungle boogie jungleboogie0 at gmail.com
Wed Aug 9 04:18:42 UTC 2017


Thus said Nate on Wed, 9 Aug 2017 13:53:56 +1200
> Many thanks for that JB, I had already reviewed those variables under SIP
> profiles, but it wasn't clear what to change.
> 
> Both internal/external profiles are enabled (which seems appropriate).

yes, you want both enabled but re-read what Giovanni wrote, then compare 
your vars.xml to this one:
https://freeswitch.org/stash/projects/FS/repos/freeswitch/browse/conf/vanilla/vars.xml

lines 422 & 428. Do they match? external calls go to the public profile, 
port 5080 by default.

2017-08-09 10:13:51.482817 [WARNING] sofia_reg.c:1792 SIP auth challenge
(INVITE) on sofia profile 'internal' for [6468808998 at newplymouth.poiema.org]
from ip 192.241.183.87

That's a public IP.

You'll want to read page 45 of the latest freeswitch book under the 
heading of Extensions, Contexts and Profiles.

On the other hand, the calls that are incoming to a
profiles with a public Internet address, that is the calls that are
reaching us passing through
the router from the outside of our internal LAN, those calls are
directed to a context that
only allows for the call to be connected to one of our coworkers' phone.
This specific profile
will have only the feature to allow for external incoming calls to reach
an internal phone,
without any possibility to originate PSTN calls. That is, strangers
cannot use our paid
gateway to reach the PSTN.
So, different address:port couple, different profile, different context.
It is actually so simple!

Check out the diagram on freeswitch here:
https://freeswitch.org/confluence/display/FREESWITCH/Default+Configuration


> 
> I wouldn't think to swap ports or anything like that.
> 
> Can anyone suggest anything else?
> 
> Again, many apologies that I am so lacking of knowledge here. I really have
> been reading and researching for a long time.
> 

It's not an easy concept to grasp at first, so read the book a few 
times, check out the confluence pages, read the mailings list.

public inbound DIDs go here:
/usr/local/freeswitch/conf/dialplan/public/

outbound DIDs go here:
/usr/local/freeswitch/conf/dialplan/default/

external registrations (to ITSP) go here:
/usr/local/freeswitch/conf/sip_profiles/external/


If you installed freeswitch from a package,the locations will vary (as 
pointed out in the book), so adjust accordingly.



> Many thanks again to everyone.
> 
> Nate
> 






More information about the FreeSWITCH-users mailing list