you don't really explain the paths of any of the files there. is US.xml in conf/dialplan because that is the only place it would get included from. look at log/freeswitch.xml.fsxml to see the fully expanded document and look for your US it belongs in the <dialplan> section not <directory> The dialplan section comes default with a public and default context to demonstrate how it works. You should rephrase things like "it's not working" to "I am not doing it right" until you get the hang of things...... On Fri, May 15, 2009 at 12:54 AM, vijay tiwari <vijay11tiwari@hotmail.com>wrote:
hello Math/Ray
please find the user directory. and US context diaplan.
[root@xxxx directory]# ls default default.xml US US.xml [root@xxxx directory]# cd US [root@xxxx US]# ls 12345.xml 8989.xml [root@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@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
------------------------------ Get easy photo sharing with Windows LiveT Photos. Drag n' drop<http://www.microsoft.com/india/windows/windowslive/photos.aspx>
_______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ AIM: anthm MSN:anthony_minessale@hotmail.com <MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <sip%3A888@conference.freeswitch.org> iax:guest@conference.freeswitch.org/888 googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:213-799-1400