Thanks. I had a look at the links and changed "domain and even "domain_name" in vars.xml to be the external ip, but the error now just says it can's find user abcd_1.2.3.4@1.2.3.4 instead of @192.168.10.32.
And actually, I 'm mostly confused because I thought incoming calls were treated as unauthenticated and allowed to pass through. Isn't registering the trunk with the SIP provider enough to get incoming calls accepted?
The errors says "...you must configure your device to use the proper domain in it's authentication credentials," but how is the SIP trunk treated as a device?
Like I said, I think I'm misunderstanding something fundamental about this.
Thanks you.
From: freeswitch-users-bounces@lists.freeswitch.org [freeswitch-users-bounces@lists.freeswitch.org] on behalf of Cal Leeming [Simplicity Media Ltd] [cal.leeming@simplicitymedialtd.co.uk]
Sent: Sunday, April 14, 2013 3:38 PM
To: FreeSWITCH Users Help
Subject: Re: [Freeswitch-users] Newbie question about inbound calls/NAT (yes I checked wiki first:-) )
Hello Jeff,
Here is a related thread;
You need to configure your domain and username, but as you can see here your gateway/users are sending the domain '192.168.10.32', but you have not configured this domain in sofia.conf.
If you are using multi-tenant then you'll need to put some more thought into how you're going to approach this.
If you are not using multi-tenant (i.e. one domain only) then you could force the domain as discussed here;
Hope this helps
Cal
On Sun, Apr 14, 2013 at 10:36 AM, Jeff Bernhardt <jeff@askcornerstone.net> wrote:
Setting up my first test box with Freeswitch. I'm really excited about getting it up and running.
I'm trying to get inbound calls working from external using a Vitelity trunk. Let's say my username from Vitelity is "abcd_efg" and password is "password," external IP is 1.2.3.4 and internal is 192.168.10.32. I get registered to Vitelity fine (their web panel shows I'm registered and fs_cli confirms). However, when I make a call inbound, I get:
[WARNING] sofia_reg.c:2621 Can't find user [abcd_1.2.3.4@192.168.10.32] from <vitelity-inbound-trunk-ip>You must define a domain called '192.168.10.32' in your directory and add a user with the id="abcd_1.2.3.4" attributeand you must configure your device to use the proper domain in it's authentication credentials.
I don't know if this is related, but to get around NAT, I have this in vars.xml:<X-PRE-PROCESS cmd="set" data="external_rtp_ip=1.2.3.4"/><X-PRE-PROCESS cmd="set" data="external_sip_ip=1.2.3.4"/>
and this in both internal.xml and external.xml:<param name="ext-rtp-ip" value="$${external_rtp_ip}"/><param name="ext-sip-ip" value="$${external_sip_ip}"/>
I have a feeling I've misunderstood something fundamental about setting up Freeswitch for inbound access. I've put in the above configs as per what I've found in the wiki, but I'm not sure how to do what the warning says or if it really means I have something not setup right. What am I doing wrong?
Thank you.
_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server
http://www.cudatel.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server
http://www.cudatel.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org