<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>
<include><br>
<!--the domain or ip (the right hand side of the @ in the
addr--><br>
<domain name="$${domain}"><br>
<params><br>
<param name="dial-string"
value="{^^:sip_invite_domain=${dialed_domain}:presence_id=${dialed_user}@${dialed_domain}}${sofia_contact(*/${dialed_user}@${dialed_domain})}"/><br>
</params><br>
<br>
<variables><br>
<variable name="record_stereo" value="true"/><br>
<variable name="default_gateway"
value="$${default_provider}"/><br>
<variable name="default_areacode"
value="$${default_areacode}"/><u><big><font color="#ff0000">context
public</font></big></u><u><big><font color="#ff0000">context
public</font></big></u><br>
<variable name="transfer_fallback_extension"
value="operator"/><br>
</variables><br>
<br>
<br>
<X-PRE-PROCESS cmd="include" data="mksoft/*.xml"/><br>
<br>
<groups><br>
<group name="sales"><u><big><font color="#ff0000">context
public</font></big></u><u><big><font color="#ff0000">context
public</font></big></u><br>
<br>
<user id="400" type="pointer"/><br>
<user id="401" type="pointer"/><br>
<br>
</group><br>
</groups><br>
<br>
user_file ..... as an 400.xml in /mksoft/...<br>
<br>
<include><br>
<user id="400"><br>
<params><br>
<param name="password" value="$${default_password}"/><br>
<param name="vm-password" value="400"/><br>
</params><br>
<br>
<variables><br>
<!-- <variable name="toll_allow"
value="domestic,international,local"/> --><br>
<br>
<variable name="accountcode" value="400"/><br>
<variable name="user_context" value="mksoft"/><br>
<variable name="effective_caller_id_name" value="Extension
400"/><br>
<variable name="effective_caller_id_number"
value="400"/><br>
<variable name="outbound_caller_id_name"
value="$${outbound_caller_name}"/><br>
<variable name="outbound_caller_id_number"
value="$${outbound_caller_id}"/><br>
<variable name="callgroup" value="sales"/><br>
</variables><br>
</user><br>
</include><br>
<br>
<include><br>
<user id="401"><br>
<params><br>
<param name="password" value="$${default_password}"/><br>
<param name="vm-password" value="401"/><br>
</params><br>
<br>
<variables><br>
<!-- <variable name="toll_allow"
value="domestic,international,local"/> --><br>
<br>
<variable name="accountcode" value="401"/><br>
<variable name="user_context" value="mksoft"/><br>
<variable name="effective_caller_id_name" value="Extension
401"/><br>
<variable name="effective_caller_id_number"
value="401"/><br>
<variable name="outbound_caller_id_name"
value="$${outbound_caller_name}"/><br>
<variable name="outbound_caller_id_number"
value="$${outbound_caller_id}"/><br>
<variable name="callgroup" value="sales"/><br>
</variables><br>
</user><br>
</include><br>
<br>
<br>
My dialplan is look like this.<br>
<br>
<?xml version="1.0"?><br>
<context name="mksoft"> <br>
<extension name="example"><br>
<condition field="destination_number"
expression="^401$"><br>
<action application="bridge"
data="user/401"/><br>
</condition><br>
</extension><br>
<br>
<extension name="2001"><br>
<condition field="destination_number"
expression="^2000$"><br>
<action application="bridge"
data="user/${dialed_extension}@${domain_name}"/><br>
</condition><br>
</extension><br>
<br>
<br>
</context><br>
<br>
<br>
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 : <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 <400>->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>