Hello All
As I am a new to freeswitch , i have a configuration problem.
I want to use my own context and not the default that come with the compiled FS.
And is seem that i can not make any calls.

My config is look like this :


<include>
  <!--the domain or ip (the right hand side of the @ in the addr-->
  <domain name="$${domain}">
    <params>
      <param name="dial-string" value="{^^:sip_invite_domain=${dialed_domain}:presence_id=${dialed_user}@${dialed_domain}}${sofia_contact(*/${dialed_user}@${dialed_domain})}"/>
    </params>

    <variables>
      <variable name="record_stereo" value="true"/>
      <variable name="default_gateway" value="$${default_provider}"/>
      <variable name="default_areacode" value="$${default_areacode}"/>context publiccontext public
      <variable name="transfer_fallback_extension" value="operator"/>
    </variables>


    <X-PRE-PROCESS cmd="include" data="mksoft/*.xml"/>

    <groups>
     <group name="sales">context publiccontext public

      <user id="400" type="pointer"/>
      <user id="401" type="pointer"/>

     </group>
    </groups>

user_file ..... as an 400.xml in /mksoft/...

<include>
  <user id="400">
    <params>
      <param name="password" value="$${default_password}"/>
      <param name="vm-password" value="400"/>
    </params>

    <variables>
      <!-- <variable name="toll_allow" value="domestic,international,local"/> -->

      <variable name="accountcode" value="400"/>
      <variable name="user_context" value="mksoft"/>
      <variable name="effective_caller_id_name" value="Extension 400"/>
      <variable name="effective_caller_id_number" value="400"/>
      <variable name="outbound_caller_id_name" value="$${outbound_caller_name}"/>
      <variable name="outbound_caller_id_number" value="$${outbound_caller_id}"/>
      <variable name="callgroup" value="sales"/>
    </variables>
  </user>
</include>

<include>
  <user id="401">
    <params>
      <param name="password" value="$${default_password}"/>
      <param name="vm-password" value="401"/>
    </params>

    <variables>
      <!-- <variable name="toll_allow" value="domestic,international,local"/> -->

      <variable name="accountcode" value="401"/>
      <variable name="user_context" value="mksoft"/>
      <variable name="effective_caller_id_name" value="Extension 401"/>
      <variable name="effective_caller_id_number" value="401"/>
      <variable name="outbound_caller_id_name" value="$${outbound_caller_name}"/>
      <variable name="outbound_caller_id_number" value="$${outbound_caller_id}"/>
      <variable name="callgroup" value="sales"/>
    </variables>
  </user>
</include>


My dialplan is look like this.

<?xml version="1.0"?>
 <context name="mksoft"> 
   <extension name="example">
      <condition field="destination_number" expression="^401$">
                    <action application="bridge" data="user/401"/>
                   </condition>
                  </extension>

                  <extension name="2001">
                    <condition field="destination_number" expression="^2000$">
                        <action application="bridge" data="user/${dialed_extension}@${domain_name}"/>
                    </condition>
                  </extension>


             </context>


When i try to make a call between 400 ==> 401 i get no ring at 401 and the log file of FS is look like this :

2014-04-09 08:25:08.512270 [NOTICE] switch_channel.c:1050 New Channel sofia/internal/400@192.168.50.54:5060 [fd0b102e-bfe1-11e3-822a-bf99648f9343]
2014-04-09 08:25:08.512270 [INFO] mod_dialplan_xml.c:558 Processing koby <400>->401 in context public
2014-04-09 08:25:08.512270 [NOTICE] switch_core_state_machine.c:262 sofia/internal/400@192.168.50.54:5060 has executed the last dialplan instruction, hanging up.
2014-04-09 08:25:08.512270 [NOTICE] switch_core_state_machine.c:264 Hangup sofia/internal/400@192.168.50.54:5060 [CS_EXECUTE] [NORMAL_CLEARING]
2014-04-09 08:25:08.512270 [NOTICE] switch_core_session.c:1577 Session 32 (sofia/internal/400@192.168.50.54:5060) Ended
2014-04-09 08:25:08.512270 [NOTICE] switch_core_session.c:1581 Close Channel sofia/internal/400@192.168.50.54:5060 [CS_DESTROY]

It is seems that my context (mksoft)
is not being processed at all.

my FS is : FreeSWITCH Version 1.2.23+git~20140331T223230Z~693eea0d03~64bit (git 693eea0 2014-03-31 22:32:30Z 64bit)

Any Help please.

Thank you all for your co operation
Koby Peleg Hen
mksoft.