[Freeswitch-users] Re gistering remote extensions.
henkoegema
pabx_freeswitch at telenet.be
Wed Sep 24 14:55:21 EDT 2008
I want to register a telephone 2010 (a remote extension) to my FS server.
My server has dynamic ip address, registered with DynDNS. (dyndns ip
address is: xxxx.ftpaccess.cc)
In the remote telephone I programmed:
a. stun server=stun.freeswitch.org
b. sip port=5090 (i replaced all the 5060 with 5090 at several places)
c. rtp port=17000
d. domain= xxxx.ftpaccess.cc (my dyndns)
The remote phone is also on a dynamic ip address.
I followed the instructions on
http://wiki.freeswitch.org/wiki/Example_Offsite_phones
Step 1. I created an extension 2010 in /..../directory/default.xml
=================================================
<include>
user id="2010" mailbox="2010">
params>
param name="password" value="2010"/>
param name="vm-password" value="2010"/>
/params>
variables>
variable name="accountcode" value="2010"/>
variable name="user_context" value="default"/>
variable name="effective_caller_id_name" value="Terje"/>
variable name="effective_caller_id_number" value="2010"/>
/variables>
/user>
</include>
Setp 2: I created a new profile. called "doublenat" profile set to port
5090 in /..../sip_profiles/doublenat.xml
==================================================================================
<profile name="doublenat">
gateways>
X-PRE-PROCESS cmd="include" data="doublenat/*.xml"/>
/gateways>
settings>
param name="debug" value="0"/>
param name="sip-trace" value="no"/>
param name="rfc2833-pt" value="101"/>
param name="sip-port" value="5090"/>
param name="dialplan" value="XML"/>
param name="context" value="public"/>
param name="dtmf-duration" value="100"/>
param name="codec-prefs" value="$${outbound_codec_prefs}"/>
param name="use-rtp-timer" value="true"/>
param name="hold-music" value="$${hold_music}"/>
param name="rtp-timer-name" value="soft"/>
param name="manage-presence" value="false"/>
param name="aggressive-nat-detection" value="true"/>
param name="apply-nat-acl" value="rfc1918"/>
param name="inbound-codec-negotiation" value="generous"/>
param name="nonce-ttl" value="60"/>
param name="auth-calls" value="false"/>
param name="rtp-timeout-sec" value="1800"/>
param name="rtp-ip" value="$${local_ip_v4}"/>
param name="sip-ip" value="$${local_ip_v4}"/>
param name="ext-rtp-ip" value="$${external_rtp_ip}"/>
param name="ext-sip-ip" value="$${external_sip_ip}"/>
param name="rtp-timeout-sec" value="300"/>
param name="rtp-hold-timeout-sec" value="1800"/>
/settings>
</profile>
Step 3: Inside the /..../conf/dialplan/public.xml, I put
=========================================
<extension name="public_extensions">
<condition field="destination_number" expression="^(20[01][0-9])$">
<action application="bridge" data="sofia/doublenat/$1%$${domain} "/>
</condition>
</extension>
However the phone can't register.
In the FS CLI window I get:
2008-09-24 20:10:39 [WARNING] sofia_reg.c:1247 sofia_reg_parse_auth() can't
find user [2010 at xxxx.ftpaccess.cc]
You must define a domain called 'henkoegema.ftpaccess.cc' in your directory
and add a user with the id="2010" attribute
and you must configure your device to use the proper domain in it's
authentication credentials.
%-|
This line repeats and repeats and repeats.
Evenso the warning is clear, I'm not sure what exactly I should do. (and
where) :confused:
Henk
--
View this message in context: http://www.nabble.com/Registering-remote-extensions.-tp19655521p19655521.html
Sent from the Freeswitch-users mailing list archive at Nabble.com.
More information about the Freeswitch-users
mailing list