I was having the same problem (i think). It resolved it by adding gateways to the /usr/local/freeswitch/conf/directory/default.xml file instead of the /usr/local/freeswitch/sip_profiles/external/ directory.

It may have been a total coincidence because I was so frustrated with the problem that I start from scratch. I backed up my conf directory and started configuring based on the example.com.xml template. However, it worked. I have had a loss of registration problem since then.

./herman griffin

On Fri, Mar 20, 2009 at 7:54 PM, Pablo Hernan Saro <pablosaro@gmail.com> wrote:
Hi Andy,

Did you get Matheu's?

> if you are behind NAT it is possible that your router "forgot" the mapping betweeen FS and your > provider, try adding    <param name="ping" value="30" /> to your gateway.

Pablo

2009/3/20 Andy Ayers <andy@fabulous4.co.uk>:
> Thanks Brian,
>
> I've upgraded to 1.0.3 and things seem a little better but I'm still loosing
> the gateway connection intermittently. I rebuilt the config on upgrade, is
> there any possibility I've missed something? Is there a keep-alive setting
> for a gateway or a re-connect after x or something.
>
> Many thanks for your help.
> Andy
>
> -----Original Message-----
> From: freeswitch-users-bounces@lists.freeswitch.org
> [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Brian
> West
> Sent: 18 March 2009 14:08
> To: freeswitch-users@lists.freeswitch.org
> Subject: Re: [Freeswitch-users] Losing Gateway registration
>
> Upgrade to 1.03 or SVN Trunk
> /b
> On Mar 18, 2009, at 6:20 AM, Andy Ayers wrote:
>
> Hi,
>
> I've recently ugrade to version 1.02 of freeswitch and am having some
> problems with my gateway registrations. The gateway successfully registers
> with my voip provider when freeswitch first starts but if left running it
> seems to loose it's connection to my voip provider. I can get it to
> reconnect with a sofia restart. I'm using the same provider and user account
> as with the old version of the software. Can you suggest any reaosn why this
> may be happening and how I can prevent it?
>
> Many thanks
> Andy
>