[Freeswitch-users] context is not working

vijay tiwari vijay11tiwari at hotmail.com
Thu May 14 22:54:46 PDT 2009



hello Math/Ray

please find the user directory. and US context diaplan.


[root at xxxx directory]# ls
default  default.xml  US  US.xml
[root at xxxx directory]# cd US
[root at xxxx US]# ls
12345.xml  8989.xml
[root at xxx US]#vi 12345.xml
<include>
  <user id="12345" mailbox="12345">
    <params>
      <param name="password" value="XXXXXXXXXXX"/>
      <param name="vm-password" value="1000"/>
    </params>
    <variables>
      <variable name="toll_allow" value="domestic,international,local"/>
      <variable name="accountcode" value="12345"/>
      <variable name="user_context" value="US"/>
      <variable name="effective_caller_id_name" value="Extension 12345"/>
      <variable name="effective_caller_id_number" value="12345"/>
      <variable name="outbound_caller_id_name" value="$${outbound_caller_name}"/>
      <variable name="outbound_caller_id_number" value="$${outbound_caller_id}"/>
      <variable name="callgroup" value="techsupport"/>
    </variables>
  </user>
</include>
[root at xxx US]#vi 8989.xml


<include>
  <user id="8989" mailbox="8989">
    <params>
      <param name="password" value="XXXXXXXXXXX"/>
      <param name="vm-password" value="1000"/>
    </params>
    <variables>
      <variable name="toll_allow" value="domestic,international,local"/>
      <variable name="accountcode" value="8989"/>
      <variable name="user_context" value="default"/>
      <variable name="effective_caller_id_name" value="Extension 8989"/>
      <variable name="effective_caller_id_number" value="8989"/>
      <variable name="outbound_caller_id_name" value="$${outbound_caller_name}"/>
      <variable name="outbound_caller_id_number" value="$${outbound_caller_id}"/>
      <variable name="callgroup" value="techsupport"/>
    </variables>
  </user>
</include>



US context dailplan



<?xml version="1.0" encoding="utf-8"?>
<!-- http://wiki.freeswitch.org/wiki/Dialplan_XML -->
<include>
  <context name="US">
 <extension name="cordia">
        <condition field="destination_number" expression="^(911|411|611|711)$" break="never">
                <action application="bridge" data="sofia/gateway/cordia/$1"/>
        </condition>
        <condition field="destination_number" expression="^([2-9][0-9]{2}[2-9][0-9]{6})$" break="never">
                <action application="bridge" data="sofia/gateway/cordia/1$1"/>
        </condition>
        <condition field="destination_number" expression="^(1[2-9][0-9]{2}[2-9][0-9]{6})$" break="never">
                <action application="bridge" data="sofia/gateway/cordia/$1"/>
        </condition>
        <condition field="destination_number" expression="^011(\d+)$">
                <action application="bridge" data="sofia/gateway/cordia/$1"/>
        </condition>
    </extension>
  </context>
</include>


thanks
vijay

_________________________________________________________________
Live Search extreme As India feels the heat of poll season, get all the info you need on the MSN News Aggregator
http://news.in.msn.com/National/indiaelections2009/aggregator/default.aspx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20090515/c7f0648b/attachment-0002.html 


More information about the FreeSWITCH-users mailing list