<html style="direction: rtl;">
  <head>
    <meta http-equiv="content-type" content="text/html;
      charset=windows-1255">
    <style type="text/css">body p { margin-bottom: 0cm; margin-top: 0pt; } </style>
    <style type="text/css">body p { margin-bottom: 0cm; margin-top: 0pt; } </style>
  </head>
  <body style="direction: rtl;"
    bidimailui-detected-decoding-type="preferred-charset"
    bgcolor="#FFFFFF" text="#000000">
    Hello All<br>
    As I am a new to freeswitch , i have a configuration problem.<br>
    I want to use my own context and not the default that come with the
    compiled FS.<br>
    And is seem that i can not make any calls.<br>
    <br>
    My config is look like this :<br>
    <br>
    <br>
    &lt;include&gt;<br>
      &lt;!--the domain or ip (the right hand side of the @ in the
    addr--&gt;<br>
      &lt;domain name="$${domain}"&gt;<br>
        &lt;params&gt;<br>
          &lt;param name="dial-string"
value="{^^:sip_invite_domain=${dialed_domain}:presence_id=${dialed_user}@${dialed_domain}}${sofia_contact(*/${dialed_user}@${dialed_domain})}"/&gt;<br>
        &lt;/params&gt;<br>
    <br>
        &lt;variables&gt;<br>
          &lt;variable name="record_stereo" value="true"/&gt;<br>
          &lt;variable name="default_gateway"
    value="$${default_provider}"/&gt;<br>
          &lt;variable name="default_areacode"
    value="$${default_areacode}"/&gt;<u><big><font color="#ff0000">context

          public</font></big></u><u><big><font color="#ff0000">context
          public</font></big></u><br>
          &lt;variable name="transfer_fallback_extension"
    value="operator"/&gt;<br>
        &lt;/variables&gt;<br>
    <br>
    <br>
        &lt;X-PRE-PROCESS cmd="include" data="mksoft/*.xml"/&gt;<br>
    <br>
        &lt;groups&gt;<br>
         &lt;group name="sales"&gt;<u><big><font color="#ff0000">context
          public</font></big></u><u><big><font color="#ff0000">context
          public</font></big></u><br>
    <br>
          &lt;user id="400" type="pointer"/&gt;<br>
          &lt;user id="401" type="pointer"/&gt;<br>
    <br>
         &lt;/group&gt;<br>
        &lt;/groups&gt;<br>
    <br>
    user_file ..... as an 400.xml in /mksoft/...<br>
    <br>
    &lt;include&gt;<br>
      &lt;user id="400"&gt;<br>
        &lt;params&gt;<br>
          &lt;param name="password" value="$${default_password}"/&gt;<br>
          &lt;param name="vm-password" value="400"/&gt;<br>
        &lt;/params&gt;<br>
    <br>
        &lt;variables&gt;<br>
          &lt;!-- &lt;variable name="toll_allow"
    value="domestic,international,local"/&gt; --&gt;<br>
    <br>
          &lt;variable name="accountcode" value="400"/&gt;<br>
          &lt;variable name="user_context" value="mksoft"/&gt;<br>
          &lt;variable name="effective_caller_id_name" value="Extension
    400"/&gt;<br>
          &lt;variable name="effective_caller_id_number"
    value="400"/&gt;<br>
          &lt;variable name="outbound_caller_id_name"
    value="$${outbound_caller_name}"/&gt;<br>
          &lt;variable name="outbound_caller_id_number"
    value="$${outbound_caller_id}"/&gt;<br>
          &lt;variable name="callgroup" value="sales"/&gt;<br>
        &lt;/variables&gt;<br>
      &lt;/user&gt;<br>
    &lt;/include&gt;<br>
    <br>
    &lt;include&gt;<br>
      &lt;user id="401"&gt;<br>
        &lt;params&gt;<br>
          &lt;param name="password" value="$${default_password}"/&gt;<br>
          &lt;param name="vm-password" value="401"/&gt;<br>
        &lt;/params&gt;<br>
    <br>
        &lt;variables&gt;<br>
          &lt;!-- &lt;variable name="toll_allow"
    value="domestic,international,local"/&gt; --&gt;<br>
    <br>
          &lt;variable name="accountcode" value="401"/&gt;<br>
          &lt;variable name="user_context" value="mksoft"/&gt;<br>
          &lt;variable name="effective_caller_id_name" value="Extension
    401"/&gt;<br>
          &lt;variable name="effective_caller_id_number"
    value="401"/&gt;<br>
          &lt;variable name="outbound_caller_id_name"
    value="$${outbound_caller_name}"/&gt;<br>
          &lt;variable name="outbound_caller_id_number"
    value="$${outbound_caller_id}"/&gt;<br>
          &lt;variable name="callgroup" value="sales"/&gt;<br>
        &lt;/variables&gt;<br>
      &lt;/user&gt;<br>
    &lt;/include&gt;<br>
    <br>
    <br>
    My dialplan is look like this.<br>
    <br>
    &lt;?xml version="1.0"?&gt;<br>
     &lt;context name="mksoft"&gt;  <br>
       &lt;extension name="example"&gt;<br>
          &lt;condition field="destination_number"
    expression="^401$"&gt;<br>
                        &lt;action application="bridge"
    data="user/401"/&gt;<br>
                       &lt;/condition&gt;<br>
                      &lt;/extension&gt;<br>
    <br>
                      &lt;extension name="2001"&gt;<br>
                        &lt;condition field="destination_number"
    expression="^2000$"&gt;<br>
                            &lt;action application="bridge"
    data="user/${dialed_extension}@${domain_name}"/&gt;<br>
                        &lt;/condition&gt;<br>
                      &lt;/extension&gt;<br>
    <br>
    <br>
                 &lt;/context&gt;<br>
    <br>
    <br>
    When i try to make a call between 400 ==&gt; 401 i get no ring at
    401 and the log file of FS is look like this : <br>
    <br>
    2014-04-09 08:25:08.512270 [NOTICE] switch_channel.c:1050 New
    Channel <a class="moz-txt-link-abbreviated"
      href="mailto:sofia/internal/400@192.168.50.54:5060">sofia/internal/400@192.168.50.54:5060</a>
    [fd0b102e-bfe1-11e3-822a-bf99648f9343]<br>
    2014-04-09 08:25:08.512270 [INFO] mod_dialplan_xml.c:558 Processing
    koby &lt;400&gt;-&gt;401 in<u><big> </big></u><big><font
        color="#ff0000">context public</font></big><br>
    2014-04-09 08:25:08.512270 [NOTICE] switch_core_state_machine.c:262
    <a class="moz-txt-link-abbreviated"
      href="mailto:sofia/internal/400@192.168.50.54:5060">sofia/internal/400@192.168.50.54:5060</a>
    has executed the last dialplan instruction, hanging up.<br>
    2014-04-09 08:25:08.512270 [NOTICE] switch_core_state_machine.c:264
    Hangup <a class="moz-txt-link-abbreviated"
      href="mailto:sofia/internal/400@192.168.50.54:5060">sofia/internal/400@192.168.50.54:5060</a>
    [CS_EXECUTE] [NORMAL_CLEARING]<br>
    2014-04-09 08:25:08.512270 [NOTICE] switch_core_session.c:1577
    Session 32 (<a class="moz-txt-link-abbreviated"
      href="mailto:sofia/internal/400@192.168.50.54:5060">sofia/internal/400@192.168.50.54:5060</a>)
    Ended<br>
    2014-04-09 08:25:08.512270 [NOTICE] switch_core_session.c:1581 Close
    Channel <a class="moz-txt-link-abbreviated"
      href="mailto:sofia/internal/400@192.168.50.54:5060">sofia/internal/400@192.168.50.54:5060</a>
    [CS_DESTROY]<br>
    <br>
    It is seems that my context (mksoft)<br>
    is not being processed at all.<br>
    <br>
    my FS is : FreeSWITCH Version
    1.2.23+git~20140331T223230Z~693eea0d03~64bit (git 693eea0 2014-03-31
    22:32:30Z 64bit)<br>
    <br>
    Any Help please.<br>
    <br>
    Thank you all for your co operation<br>
    Koby Peleg Hen<br>
    mksoft.<br>
      <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
  </body>
</html>