Many thanks for getting back to me with help so quickly Brian.<br><br>I was using 1.0.5-20100302-0400 so will update to trunk and do as you suggest.<br><br>thanks again<br>Bruce<br><br><div class="gmail_quote">On 8 March 2010 14:28, Brian West <span dir="ltr"><<a href="mailto:brian@freeswitch.org">brian@freeswitch.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Step 1. Revert everything back to SVN trunk.<br>
Step 2. Enable UPNP/NATPMP on both routers.<br>
Step 3. It should just work. The doublenat profile is NO LONGER NEEDED.<br>
<br>
If you can't enable UPNP/NATPMP then by all means static map the ports correctly or put the FreeSWITCH box in the DMZ on both ends. It should just work.<br>
<font color="#888888"><br>
/b<br>
</font><div><div></div><div class="h5"><br>
On Mar 8, 2010, at 6:56 AM, Bruce Hopkins wrote:<br>
<br>
> Hi,<br>
><br>
> I wonder if some kind soul might be able please to help me by pointing out what I am doing wrong with my doublenat configuration.<br>
><br>
> I have incoming calls from WAN --> LAN working fine, but when I try to call from LAN -->WAN, the Freeswitch CLI says:<br>
><br>
><br>
> "[ERR} switch_ivr_originate.c.2389 CAnnot create outgoing channel of type [error] cause: [USER_NOT_REGISTERED]"<br>
><br>
><br>
> The setup is essentially:<br>
><br>
><br>
> phone_1 (192.168.a.b) --> NAT (public ip 1.2.3.4) --> Internet --> NAT (public ip 5.6.7.8) --> Freeswitch (192.168.x.y) --> phone_2 (192.168.x.z)<br>
><br>
><br>
> Phone_1 is able to register with Freeswitch using a "doublenat" sip profile I set up using port 5090, created from the default external profile with the port changed. phone_1 can initiate calls to phone_2 fine with no problems with audio - everything works just fine in that direction.<br>
><br>
> However when I try to call from phone_2 --> phone_1 I get the message "The person at extension 1002 is not available. Record your message at the tone." Meanwhile the CLI shows that Freeswitch says phone_1 is not registered.<br>
><br>
> In trying to solve this I have run a Wireshark trace onthe PC running the phone_1 softphone to check that the SIP registration seems to go as I understand it should. the dialog is as follows:<br>
><br>
> phone_1 --> FS request: REGISTER<br>
> FS --> phone_1 status: 401 Unauthorised<br>
> phone_1 --> FS request: REGISTER<br>
> FS --> phone_1 status: 200 OK<br>
> phone_1 --> FS request: SUBSCRIBE<br>
> FS --> phone_1 status: 405 Method Not Allowed<br>
><br>
><br>
> There does appear to be a difference here to what happens when phone_2 (on the same LAN as Freeswitch) registers. With phone_2 I see:<br>
><br>
> phone_2 --> FS request: REGISTER<br>
> FS --> phone_2 status: 401 Unauthorised<br>
> phone_2 --> FS request: REGISTER<br>
> FS --> phone_2 status 200 OK<br>
> phone_2 --> FS request: SUBSCRIBE<br>
> FS --> phone_2 status: 202 Accepted<br>
> FS --> phone_2 request: NOTIFY<br>
> phone_2 --> FS status: 200 OK<br>
><br>
><br>
><br>
> More configuration details:<br>
><br>
> In conf/sip_profiles/doublenat.xml I have not uncommented <param name="force-register-domain" value="$$(domain)"/><br>
><br>
> In conf/sip_profiles/doublenat.xml I have tried setting the context to each of public and default. This does not seem to make a difference.<br>
><br>
> In conf/directory/doublenat.xml I have set the domain name to be the domain name registerd for Fs's external IP with DNS, and used by phone_1.<br>
><br>
> In conf/directory/doublenat.xml I have tried both of the following 9I don't know if this is relevant)<br>
><br>
> 1. Firstly with phone_1 registering to an extension in the default configuration, held in conf/directory/default/:<br>
><br>
> <groups><br>
> <group name="default"><br>
> <users><br>
> <X-PRE-PROCESS cmd="include" data="default/*.xml"/><br>
> </users><br>
> </group><br>
><br>
> 2. Then I tried moving the .xml file for phone_1's extension to conf/drectory/doublenat/ and changed conf/directory/doublenat.xml to show:<br>
><br>
> <groups><br>
> <group name="doublenat"><br>
> <users><br>
> <X-PRE-PROCESS cmd="include" data="doublenat/*.xml"/><br>
> </users><br>
> </group><br>
><br>
> Unfortunately this does not make a difference to the issue though.<br>
><br>
> If anybody had the time to tell me what I am doing wrong I would be hugely grateful !<br>
><br>
> Many thanks in advance<br>
> Bruce<br>
</div></div><div><div></div><div class="h5">> _______________________________________________<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><br>
<br>
<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><br>
</div></div></blockquote></div><br>