context is not working
hello all i have created a two user one with defualt user_context and other one with which i created with the name "US". and i am able to make a call when using defualt user_context. but when i try to call from user which have user_context="US" the is not working, logs when call is working 2009-05-13 20:54:45 [DEBUG] mod_sofia.c:130 sofia_on_routing() sofia/US/8989@122.160.83.216 SOFIA ROUTING 2009-05-13 20:54:45 [DEBUG] switch_core_state_machine.c:64 switch_core_standard_on_routing() sofia/US/8989@122.160.83.216 Standard ROUTING 2009-05-13 20:54:45 [INFO] mod_dialplan_xml.c:233 dialplan_hunt() Processing 8989->01112127773456 in context default 2009-05-13 20:54:45 [DEBUG] mod_dialplan_xml.c:117 parse_exten() Regex: [unloop] ${unroll_loops}(true) =~ /^true$/ 2009-05-13 20:54:45 [DEBUG] mod_dialplan_xml.c:117 parse_exten() Regex: [unloop] ${sip_looped_call}() =~ /^true$/ . . . 2009-05-13 20:54:45 [DEBUG] mod_dialplan_xml.c:117 parse_exten() Regex: [XXX] destination_number(01112127773456) =~ /^011(\d+)$/ 2009-05-13 20:54:45 [DEBUG] switch_core_state_machine.c:100 switch_core_standard_on_routing() (sofia/US/8989@122.160.83.216) State Change CS_ROUTING -> CS_EXECUTE logs when call not working 2009-05-13 20:22:27 [DEBUG] switch_core_state_machine.c:457 switch_core_session_run() (sofia/US/12345@122.160.83.216) State ROUTING 2009-05-13 20:22:27 [DEBUG] mod_sofia.c:130 sofia_on_routing() sofia/US/12345@122.160.83.216 SOFIA ROUTING 2009-05-13 20:22:27 [DEBUG] switch_core_state_machine.c:64 switch_core_standard_on_routing() sofia/US/12345@122.160.83.216 Standard ROUTING 2009-05-13 20:22:27 [INFO] mod_dialplan_xml.c:233 dialplan_hunt() Processing 12345->01112127773456 in context US 2009-05-13 20:22:27 [INFO] switch_core_state_machine.c:122 switch_core_standard_on_routing() No Route, Aborting 2009-05-13 20:22:27 [NOTICE] switch_core_state_machine.c:123 switch_core_standard_on_routing() Hangup sofia/US/12345@122.160.83.216 [CS_ROUTING] [NO_ROUTE_DESTINATION] 2009-05-13 20:22:27 [DEBUG] switch_channel.c:1566 switch_channel_perform_hangup() Send signal sofia/US/12345@122.160.83.216 [KILL] 2009-05-13 20:22:27 [DEBUG] switch_core_session.c:820 switch_core_session_signal_state_change() Send signal sofia/US/12345@122.160.83.216 [BREAK] 2009-05-13 20:22:27 [DEBUG] switch_core_state_machine.c:457 switch_core_session_run() (sofia/US/12345@122.160.83.216) State ROUTING going to sleep 2009-05-13 20:22:27 [DEBUG] switch_core_state_machine.c:383 switch_core_session_run() (sofia/US/12345@122.160.83.216) Running State Change CS_HANGUP _________________________________________________________________ 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
Please paste the user directory entry. Math On 14-May-09, at 4:26 PM, vijay tiwari wrote:
hello all
i have created a two user one with defualt user_context and other one with which i created with the name "US". and i am able to make a call when using defualt user_context. but when i try to call from user which have user_context="US" the is not working,
logs when call is working
2009-05-13 20:54:45 [DEBUG] mod_sofia.c:130 sofia_on_routing() sofia/US/8989@122.160.83.216 SOFIA ROUTING 2009-05-13 20:54:45 [DEBUG] switch_core_state_machine.c:64 switch_core_standard_on_routing() sofia/US/8989@122.160.83.216 Standard ROUTING 2009-05-13 20:54:45 [INFO] mod_dialplan_xml.c:233 dialplan_hunt() Processing 8989->01112127773456 in context default 2009-05-13 20:54:45 [DEBUG] mod_dialplan_xml.c:117 parse_exten() Regex: [unloop] ${unroll_loops}(true) =~ /^true$/ 2009-05-13 20:54:45 [DEBUG] mod_dialplan_xml.c:117 parse_exten() Regex: [unloop] ${sip_looped_call}() =~ /^true$/ . . . 2009-05-13 20:54:45 [DEBUG] mod_dialplan_xml.c:117 parse_exten() Regex: [XXX] destination_number(01112127773456) =~ /^011(\d+)$/ 2009-05-13 20:54:45 [DEBUG] switch_core_state_machine.c:100 switch_core_standard_on_routing() (sofia/US/8989@122.160.83.216) State Change CS_ROUTING -> CS_EXECUTE
logs when call not working
2009-05-13 20:22:27 [DEBUG] switch_core_state_machine.c:457 switch_core_session_run() (sofia/US/12345@122.160.83.216) State ROUTING 2009-05-13 20:22:27 [DEBUG] mod_sofia.c:130 sofia_on_routing() sofia/US/12345@122.160.83.216 SOFIA ROUTING 2009-05-13 20:22:27 [DEBUG] switch_core_state_machine.c:64 switch_core_standard_on_routing() sofia/US/12345@122.160.83.216 Standard ROUTING 2009-05-13 20:22:27 [INFO] mod_dialplan_xml.c:233 dialplan_hunt() Processing 12345->01112127773456 in context US 2009-05-13 20:22:27 [INFO] switch_core_state_machine.c:122 switch_core_standard_on_routing() No Route, Aborting 2009-05-13 20:22:27 [NOTICE] switch_core_state_machine.c:123 switch_core_standard_on_routing() Hangup sofia/US/ 12345@122.160.83.216 [CS_ROUTING] [NO_ROUTE_DESTINATION] 2009-05-13 20:22:27 [DEBUG] switch_channel.c:1566 switch_channel_perform_hangup() Send signal sofia/US/12345@122.160.83.216 [KILL] 2009-05-13 20:22:27 [DEBUG] switch_core_session.c:820 switch_core_session_signal_state_change() Send signal sofia/US/12345@122.160.83.216 [BREAK] 2009-05-13 20:22:27 [DEBUG] switch_core_state_machine.c:457 switch_core_session_run() (sofia/US/12345@122.160.83.216) State ROUTING going to sleep 2009-05-13 20:22:27 [DEBUG] switch_core_state_machine.c:383 switch_core_session_run() (sofia/US/12345@122.160.83.216) Running State Change CS_HANGUP
Get easy photo sharing with Windows LiveT Photos. Drag n' drop _______________________________________________ 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
The dialplan for the context US might be helpful also -Ray Mathieu Rene wrote:
Please paste the user directory entry.
Math
On 14-May-09, at 4:26 PM, vijay tiwari wrote:
hello all
i have created a two user one with defualt user_context and other one with which i created with the name "US". and i am able to make a call when using defualt user_context. but when i try to call from user which have user_context="US" the is not working,
logs when call is working
2009-05-13 20:54:45 [DEBUG] mod_sofia.c:130 sofia_on_routing() sofia/US/8989@122.160.83.216 <mailto:sofia/US/8989@122.160.83.216> SOFIA ROUTING 2009-05-13 20:54:45 [DEBUG] switch_core_state_machine.c:64 switch_core_standard_on_routing() sofia/US/8989@122.160.83.216 <mailto:sofia/US/8989@122.160.83.216> Standard ROUTING 2009-05-13 20:54:45 [INFO] mod_dialplan_xml.c:233 dialplan_hunt() Processing 8989->01112127773456 in context default 2009-05-13 20:54:45 [DEBUG] mod_dialplan_xml.c:117 parse_exten() Regex: [unloop] ${unroll_loops}(true) =~ /^true$/ 2009-05-13 20:54:45 [DEBUG] mod_dialplan_xml.c:117 parse_exten() Regex: [unloop] ${sip_looped_call}() =~ /^true$/ . . . 2009-05-13 20:54:45 [DEBUG] mod_dialplan_xml.c:117 parse_exten() Regex: [XXX] destination_number(01112127773456) =~ /^011(\d+)$/ 2009-05-13 20:54:45 [DEBUG] switch_core_state_machine.c:100 switch_core_standard_on_routing() (sofia/US/8989@122.160.83.216 <mailto:sofia/US/8989@122.160.83.216>) State Change CS_ROUTING -> CS_EXECUTE
logs when call not working
2009-05-13 20:22:27 [DEBUG] switch_core_state_machine.c:457 switch_core_session_run() (sofia/US/12345@122.160.83.216 <mailto:sofia/US/12345@122.160.83.216>) State ROUTING 2009-05-13 20:22:27 [DEBUG] mod_sofia.c:130 sofia_on_routing() sofia/US/12345@122.160.83.216 <mailto:sofia/US/12345@122.160.83.216> SOFIA ROUTING 2009-05-13 20:22:27 [DEBUG] switch_core_state_machine.c:64 switch_core_standard_on_routing() sofia/US/12345@122.160.83.216 <mailto:sofia/US/12345@122.160.83.216> Standard ROUTING 2009-05-13 20:22:27 [INFO] mod_dialplan_xml.c:233 dialplan_hunt() Processing 12345->01112127773456 in context US 2009-05-13 20:22:27 [INFO] switch_core_state_machine.c:122 switch_core_standard_on_routing() No Route, Aborting 2009-05-13 20:22:27 [NOTICE] switch_core_state_machine.c:123 switch_core_standard_on_routing() Hangup sofia/US/12345@122.160.83.216 <mailto:sofia/US/12345@122.160.83.216> [CS_ROUTING] [NO_ROUTE_DESTINATION] 2009-05-13 20:22:27 [DEBUG] switch_channel.c:1566 switch_channel_perform_hangup() Send signal sofia/US/12345@122.160.83.216 <mailto:sofia/US/12345@122.160.83.216> [KILL] 2009-05-13 20:22:27 [DEBUG] switch_core_session.c:820 switch_core_session_signal_state_change() Send signal sofia/US/12345@122.160.83.216 <mailto:sofia/US/12345@122.160.83.216> [BREAK] 2009-05-13 20:22:27 [DEBUG] switch_core_state_machine.c:457 switch_core_session_run() (sofia/US/12345@122.160.83.216 <mailto:sofia/US/12345@122.160.83.216>) State ROUTING going to sleep 2009-05-13 20:22:27 [DEBUG] switch_core_state_machine.c:383 switch_core_session_run() (sofia/US/12345@122.160.83.216 <mailto:sofia/US/12345@122.160.83.216>) Running State Change CS_HANGUP
------------------------------------------------------------------------ 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 <mailto: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
------------------------------------------------------------------------
_______________________________________________ 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
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 _________________________________________________________________ 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
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
participants (4)
-
Anthony Minessale
-
Mathieu Rene
-
Raymond Chandler
-
vijay tiwari