[Freeswitch-users] Validating configuration freeswitch.xml.fsxml

Grant Bagdasarian GB at cm.nl
Wed Aug 21 12:08:46 MSD 2013


Yes, I did that.

If I'm correct, then first /freeswitch/conf/freeswitch.xml is loaded, which point to the directory/file where the configuration files are located.
Which is: <X-PRE-PROCESS cmd="include" data="carriersbc/freeswitch.xml"/>

The carriersbc/freeswitch.xml looks like this:
<?xml version="1.0"?>
<document type="freeswitch/xml">
  <!--Load Global FreeSWITCH variables-->
  <X-PRE-PROCESS cmd="include" data="vars.xml" />

  <!--Load various configurations-->
  <section name="configuration" description="Various Configuration">
    <X-PRE-PROCESS cmd="include" data="autoload_configs/*.xml"/>
  </section>

  <!--Load dialplans for incoming and outgoing traffic-->
  <section name="dialplan" description="Regex/XML Dialplan">
    <X-PRE-PROCESS cmd="include" data="dialplan/*.xml"/>
  </section>
</document>

My vars.xml looks like this:

<include>
  <!--Preprocessor Variables-->

  <X-PRE-PROCESS cmd="set" data="domain=company.local"/>

  <!--Binding to a private and public IP-->
  <X-PRE-PROCESS cmd="set" data="bind_server_ip=auto"/>

  <!--We only need PCMA for now, which is G.711 Alaw-->
  <X-PRE-PROCESS cmd="set" data="global_codec_prefs=PCMA"/>
  <X-PRE-PROCESS cmd="set" data="outbound_codec_prefs=PCMA"/>

  <X-PRE-PROCESS cmd="set" data="local_ip_v4=192.168.1.1"/>
  <X-PRE-PROCESS cmd="set" data="public_ip_v4=10.0.0.1"/>

  <X-PRE-PROCESS cmd="set" data="outbound_caller_name=anonymous"/>
  <X-PRE-PROCESS cmd="set" data="outbound_caller_id=anonymous"/>

  <!--Various debug and defaults-->
  <X-PRE-PROCESS cmd="set" data="call_debug=true"/>
  <X-PRE-PROCESS cmd="set" data="console_loglevel=debug"/>

  <!-- Internal SIP Profile -->
  <X-PRE-PROCESS cmd="set" data="internal_auth_calls=false"/>
  <X-PRE-PROCESS cmd="set" data="internal_sip_ip=192.168.1.1"/>
  <X-PRE-PROCESS cmd="set" data="internal_rtp_ip=192.168.1.1"/>
  <X-PRE-PROCESS cmd="set" data="internal_sip_port=5060"/>

  <!--
  External SIP Profile - Carrier BT
  -->
  <X-PRE-PROCESS cmd="set" data="external_auth_calls=false"/>
  <X-PRE-PROCESS cmd="set" data="external_sip_ip=10.0.0.1"/>
  <X-PRE-PROCESS cmd="set" data="external_rtp_ip=10.0.0.1"/>
  <X-PRE-PROCESS cmd="set" data="external_sip_port=5060"/>
</include>

I did load the vanilla/freeswitch.xml and checked the freeswitch.xml.fsxml file. The elements from freeswitch.xml and vars.xml are also not shown in this file, so I'm assuming this is normal behavior?

From: freeswitch-users-bounces at lists.freeswitch.org [mailto:freeswitch-users-bounces at lists.freeswitch.org] On Behalf Of Avi Marcus
Sent: Wednesday, August 21, 2013 9:41 AM
To: FreeSWITCH Users Help
Subject: Re: [Freeswitch-users] Validating configuration freeswitch.xml.fsxml

You need to make sure you include each file/directory you want. Only one file is loaded by default and that specifies which other files to load. If you take a look at the standard config files, you should see what I'm talking about.
-Avi

On Wed, Aug 21, 2013 at 10:27 AM, Grant Bagdasarian <GB at cm.nl<mailto:GB at cm.nl>> wrote:
Hello,

I've started to configure FS from scratch by making my own configuration files, based on the files in the vanilla directory.
I don't know if this is normal behavior but whenever I start FreeSwitch and check the freeswith.xml.fsxml file, the XML elements in the freeswitch/conf/customsbc/freeswitch.xml and vars.xml are not shown. Only the commentary is shown in this .fsxml file. Is this normal?

Also when running the netstat -unlp command, I see freeswitch isn't binding to the address defined in the bind_server_ip variable. Is this because the configuration isn't properly loaded?
Htop shows FS is running.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20130821/f2333fc2/attachment-0001.html 


Join us at ClueCon 2013 Aug 6-8, 2013
More information about the FreeSWITCH-users mailing list