<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Rob,<br>
<br>
Thanks.<br>
<br>
Ah, OK. I thought presence was just for things like BLF and the
like, but I will give it a go. Probably should be added to the wiki
if this fixes it (which I'm sure it will). I'd rather not have to
add special entries in my directory for external phones.<br>
<br>
Cheers<br>
<br>
Alex<br>
<br>
On 05/12/11 17:55, Rob Hutton wrote:
<blockquote cite="mid:201112051255.33240.justlikeef@gmail.com"
type="cite">
<meta name="qrichtext" content="1">
<style type="text/css">
p, li { white-space: pre-wrap; }
</style>
<p style="margin: 0px; text-indent: 0px;">Alex -</p>
<p style="margin: 0px; text-indent: 0px;"><br>
</p>
<p style="margin: 0px; text-indent: 0px;">Check out the presense
settings. Make sure both profiles are using the same DB:</p>
<p style="margin: 0px; text-indent: 0px;"><br>
</p>
<p style="margin: 0px; text-indent: 0px;"><br>
</p>
<p style="margin: 0px; text-indent: 0px;"><br>
</p>
<p style="margin: 0px; text-indent: 0px;">On Monday 05 December
2011 08:19:33 Alex Crow wrote:</p>
<p style="margin: 0px; text-indent: 0px;">> On 05/12/11 13:04,
Anthony Cosgrove wrote:</p>
<p style="margin: 0px; text-indent: 0px;">> > Alex,</p>
<p style="margin: 0px; text-indent: 0px;">> ></p>
<p style="margin: 0px; text-indent: 0px;">> > Does FS *have*
to be behind a NAT? Are you doing a straight 1:1 from public to
private (FS side)? What kind of router/firewall are you using on
the FS side and endpoint sides? You'll will probably want to
lower the endpoint registration times from the normal default of
1 hour to 180 seconds (3 minutes) or even lower depending on
router/firewall. You may also want to turn on keep-alive packets
to keep the data flowing in/out. What you are running into is
either one or both sides are closing off 5060/udp early, FS is
marking the registration as dead.</p>
<p style="margin: 0px; text-indent: 0px;">> ></p>
<p style="margin: 0px; text-indent: 0px;">> </p>
<p style="margin: 0px; text-indent: 0px;">> Anthony,</p>
<p style="margin: 0px; text-indent: 0px;">> </p>
<p style="margin: 0px; text-indent: 0px;">> No, it's definitely
not that - the registration is alive and well. The </p>
<p style="margin: 0px; text-indent: 0px;">> issue is that FS
sees that the user is not registered on the internal </p>
<p style="margin: 0px; text-indent: 0px;">> sip profile and
doesn't check the doublenat profile.</p>
<p style="margin: 0px; text-indent: 0px;">> </p>
<p style="margin: 0px; text-indent: 0px;">> The router/firewall
is iptables (shorewall) and I'm doing a DNAT of the </p>
<p style="margin: 0px; text-indent: 0px;">> relevant ports to
the FS box.</p>
<p style="margin: 0px; text-indent: 0px;">> </p>
<p style="margin: 0px; text-indent: 0px;">> What I have found
is that I can specify the dialstring for the external </p>
<p style="margin: 0px; text-indent: 0px;">> users in the
directory entries, eg:</p>
<p style="margin: 0px; text-indent: 0px;">> </p>
<p style="margin: 0px; text-indent: 0px;">> <param
name="dial-string" </p>
<p style="margin: 0px; text-indent: 0px;">>
value="{sip_invite_domain=${domain_name},presence_id=${dialed_user}@${dialed_domain}}${sofia_contact(doublenat/${dialed_user}@${dialed_domain})}"/></p>
<p style="margin: 0px; text-indent: 0px;">> </p>
<p style="margin: 0px; text-indent: 0px;">> </p>
<p style="margin: 0px; text-indent: 0px;">> > Best thing to
do is to place FS in a DMZ or install a public facing SBC to
take the registrations and forward them on to FS internally.</p>
<p style="margin: 0px; text-indent: 0px;">> ></p>
<p style="margin: 0px; text-indent: 0px;">> </p>
<p style="margin: 0px; text-indent: 0px;">> Yes, it would
probably be better that way, but this is really mostly for </p>
<p style="margin: 0px; text-indent: 0px;">> internal use.</p>
<p style="margin: 0px; text-indent: 0px;">> </p>
<p style="margin: 0px; text-indent: 0px;">> Cheers</p>
<p style="margin: 0px; text-indent: 0px;">> </p>
<p style="margin: 0px; text-indent: 0px;">> Alex</p>
<p style="margin: 0px; text-indent: 0px;">> </p>
<p style="margin: 0px; text-indent: 0px;">> ></p>
<p style="margin: 0px; text-indent: 0px;">> > Anthony</p>
<p style="margin: 0px; text-indent: 0px;">> ></p>
<p style="margin: 0px; text-indent: 0px;">> > On Dec 5,
2011, at 7:09 AM, Alex Crow wrote:</p>
<p style="margin: 0px; text-indent: 0px;">> ></p>
<p style="margin: 0px; text-indent: 0px;">> >> Hi all,</p>
<p style="margin: 0px; text-indent: 0px;">> >></p>
<p style="margin: 0px; text-indent: 0px;">> >> I have set
up a new profile for phones behind NAT connecting to an FS</p>
<p style="margin: 0px; text-indent: 0px;">> >> box behind
NAT. Calls in from a NAT'ed phone works fine, however calls</p>
<p style="margin: 0px; text-indent: 0px;">> >> out to one
fail with USER_NOT_REGISTERED. All the phones are set up in</p>
<p style="margin: 0px; text-indent: 0px;">> >>
/opt/freeswitch/conf/directory/default/<sip id>.</p>
<p style="margin: 0px; text-indent: 0px;">> >></p>
<p style="margin: 0px; text-indent: 0px;">> >> I have
added the following in the new profile config hoping it would</p>
<p style="margin: 0px; text-indent: 0px;">> >> resolve
the issue but it does not:</p>
<p style="margin: 0px; text-indent: 0px;">> >></p>
<p style="margin: 0px; text-indent: 0px;">> >> <param
name="challenge-realm" value="$${domain}"/></p>
<p style="margin: 0px; text-indent: 0px;">> >> <param
name="force-subscription-domain" value="$${domain}"/></p>
<p style="margin: 0px; text-indent: 0px;">> >> <param
name="force-register-domain" value="$${domain}"/></p>
<p style="margin: 0px; text-indent: 0px;">> >> <param
name="force-register-db-domain" value="$${domain}"/></p>
<p style="margin: 0px; text-indent: 0px;">> >></p>
<p style="margin: 0px; text-indent: 0px;">> >> Any clues?</p>
<p style="margin: 0px; text-indent: 0px;">> >></p>
<p style="margin: 0px; text-indent: 0px;">> >> Thanks</p>
<p style="margin: 0px; text-indent: 0px;">> >></p>
<p style="margin: 0px; text-indent: 0px;">> >> Alex</p>
<p style="margin: 0px; text-indent: 0px;">> >></p>
<p style="margin: 0px; text-indent: 0px;">> >>
_________________________________________________________________________</p>
<p style="margin: 0px; text-indent: 0px;">> >>
Professional FreeSWITCH Consulting Services:</p>
<p style="margin: 0px; text-indent: 0px;">> >>
<a class="moz-txt-link-abbreviated" href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a></p>
<p style="margin: 0px; text-indent: 0px;">> >>
<a class="moz-txt-link-freetext" href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a></p>
<p style="margin: 0px; text-indent: 0px;">> >></p>
<p style="margin: 0px; text-indent: 0px;">> >>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server</p>
<p style="margin: 0px; text-indent: 0px;">> >>
<a class="moz-txt-link-freetext" href="http://www.cudatel.com">http://www.cudatel.com</a></p>
<p style="margin: 0px; text-indent: 0px;">> >></p>
<p style="margin: 0px; text-indent: 0px;">> >> Official
FreeSWITCH Sites</p>
<p style="margin: 0px; text-indent: 0px;">> >>
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a></p>
<p style="margin: 0px; text-indent: 0px;">> >>
<a class="moz-txt-link-freetext" href="http://wiki.freeswitch.org">http://wiki.freeswitch.org</a></p>
<p style="margin: 0px; text-indent: 0px;">> >>
<a class="moz-txt-link-freetext" href="http://www.cluecon.com">http://www.cluecon.com</a></p>
<p style="margin: 0px; text-indent: 0px;">> >></p>
<p style="margin: 0px; text-indent: 0px;">> >>
FreeSWITCH-users mailing list</p>
<p style="margin: 0px; text-indent: 0px;">> >>
<a class="moz-txt-link-abbreviated" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a></p>
<p style="margin: 0px; text-indent: 0px;">> >>
<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a></p>
<p style="margin: 0px; text-indent: 0px;">> >>
UNSUBSCRIBE:<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a></p>
<p style="margin: 0px; text-indent: 0px;">> >>
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a></p>
<p style="margin: 0px; text-indent: 0px;">> ></p>
<p style="margin: 0px; text-indent: 0px;">> >
_________________________________________________________________________</p>
<p style="margin: 0px; text-indent: 0px;">> > Professional
FreeSWITCH Consulting Services:</p>
<p style="margin: 0px; text-indent: 0px;">> >
<a class="moz-txt-link-abbreviated" href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a></p>
<p style="margin: 0px; text-indent: 0px;">> >
<a class="moz-txt-link-freetext" href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a></p>
<p style="margin: 0px; text-indent: 0px;">> ></p>
<p style="margin: 0px; text-indent: 0px;">> >
FreeSWITCH-powered IP PBX: The CudaTel Communication Server</p>
<p style="margin: 0px; text-indent: 0px;">> >
<a class="moz-txt-link-freetext" href="http://www.cudatel.com">http://www.cudatel.com</a></p>
<p style="margin: 0px; text-indent: 0px;">> ></p>
<p style="margin: 0px; text-indent: 0px;">> > Official
FreeSWITCH Sites</p>
<p style="margin: 0px; text-indent: 0px;">> >
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a></p>
<p style="margin: 0px; text-indent: 0px;">> >
<a class="moz-txt-link-freetext" href="http://wiki.freeswitch.org">http://wiki.freeswitch.org</a></p>
<p style="margin: 0px; text-indent: 0px;">> >
<a class="moz-txt-link-freetext" href="http://www.cluecon.com">http://www.cluecon.com</a></p>
<p style="margin: 0px; text-indent: 0px;">> ></p>
<p style="margin: 0px; text-indent: 0px;">> >
FreeSWITCH-users mailing list</p>
<p style="margin: 0px; text-indent: 0px;">> >
<a class="moz-txt-link-abbreviated" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a></p>
<p style="margin: 0px; text-indent: 0px;">> >
<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a></p>
<p style="margin: 0px; text-indent: 0px;">> >
UNSUBSCRIBE:<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a></p>
<p style="margin: 0px; text-indent: 0px;">> >
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a></p>
<p style="margin: 0px; text-indent: 0px;">> ></p>
<p style="margin: 0px; text-indent: 0px;">> </p>
<p style="margin: 0px; text-indent: 0px;">> </p>
<p style="margin: 0px; text-indent: 0px;">> </p>
<p style="margin: 0px; text-indent: 0px;"><br>
</p>
<br>
-- <br>
This message has been scanned for viruses and
<br>
dangerous content by
<a moz-do-not-send="true" href="http://www.mailscanner.info/"><b>MailScanner</b></a>,
and is
<br>
believed to be clean.
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
This message is intended only for the addressee and may contain
confidential information. Unless you are that person, you may not
disclose its contents or use it in any way and are requested to delete
the message along with any attachments and notify us immediately.
"Transact" is operated by Integrated Financial Arrangements plc
Domain House, 5-7 Singer Street, London EC2A 4BQ
Tel: (020) 7608 4900 Fax: (020) 7608 5300
(Registered office: as above; Registered in England and Wales under number: 3727592)
Authorised and regulated by the Financial Services Authority (entered on the FSA Register; number: 190856)</pre>
</body>
</html>