Dialplan question....
Hi! I have a really strange dialplan problem or total misunderstanding of FreeSwitch dialplans.... I've created file test_cases.xml in dialplan directory with content: <include> <context name="test_cases"> <extension name="testing"> <condition field="destination_number" expression="^3335$"> <action application="info"/> </condition> </extension> </context> </include> Than, after reloadxml. verify, that I have in log/freeswitch.xml.fsxml section with it (section="dialplan" and other....) In fs_cli I've firing a commnand originate loopback/3555/test_cases/XML user/101 But can't get to 3555 extension in dialplan. Got in log ..... 2015-09-14 18:16:31.000258 [INFO] mod_dialplan_xml.c:635 Processing <0000000000>->3555 in context test_cases 2015-09-14 18:16:31.000258 [INFO] switch_core_state_machine.c:241 No Route, Aborting 2015-09-14 18:16:31.000258 [NOTICE] switch_core_state_machine.c:242 Hangup loopback/3555-b [CS_ROUTING] [NO_ROUTE_DESTINATION] ..... But why? I have a context test_cases and corresponding extension with condition field..... Looks like dumb question, but I'm desperate... -- Best regards, Igor
3555 != 3335 On Mon, Sep 14, 2015 at 12:26 PM, Igor Olhovskiy <igorolhovskiy@gmail.com> wrote:
Hi! I have a really strange dialplan problem or total misunderstanding of FreeSwitch dialplans.... I've created file test_cases.xml in dialplan directory with content: <include> <context name="test_cases"> <extension name="testing"> <condition field="destination_number" expression="^3335$"> <action application="info"/> </condition> </extension> </context> </include>
Than, after reloadxml. verify, that I have in log/freeswitch.xml.fsxml section with it (section="dialplan" and other....)
In fs_cli I've firing a commnand originate loopback/3555/test_cases/XML user/101
But can't get to 3555 extension in dialplan. Got in log
..... 2015-09-14 18:16:31.000258 [INFO] mod_dialplan_xml.c:635 Processing <0000000000>->3555 in context test_cases 2015-09-14 18:16:31.000258 [INFO] switch_core_state_machine.c:241 No Route, Aborting 2015-09-14 18:16:31.000258 [NOTICE] switch_core_state_machine.c:242 Hangup loopback/3555-b [CS_ROUTING] [NO_ROUTE_DESTINATION] ..... But why? I have a context test_cases and corresponding extension with condition field.....
Looks like dumb question, but I'm desperate...
-- Best regards, Igor
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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
Yea, missed it. But the same 2015-09-14 18:41:19.880227 [DEBUG] switch_core_state_machine.c:166 loopback/3335-b Standard ROUTING 2015-09-14 18:41:19.880227 [INFO] mod_dialplan_xml.c:635 Processing <0000000000>->3335 in context test_cases 2015-09-14 18:41:19.880227 [INFO] switch_core_state_machine.c:241 No Route, Aborting 2015-09-14 19:29 GMT+03:00 Russell Treleaven <rtreleaven@bunnykick.ca>:
3555 != 3335
On Mon, Sep 14, 2015 at 12:26 PM, Igor Olhovskiy <igorolhovskiy@gmail.com> wrote:
Hi! I have a really strange dialplan problem or total misunderstanding of FreeSwitch dialplans.... I've created file test_cases.xml in dialplan directory with content: <include> <context name="test_cases"> <extension name="testing"> <condition field="destination_number" expression="^3335$"> <action application="info"/> </condition> </extension> </context> </include>
Than, after reloadxml. verify, that I have in log/freeswitch.xml.fsxml section with it (section="dialplan" and other....)
In fs_cli I've firing a commnand originate loopback/3555/test_cases/XML user/101
But can't get to 3555 extension in dialplan. Got in log
..... 2015-09-14 18:16:31.000258 [INFO] mod_dialplan_xml.c:635 Processing <0000000000>->3555 in context test_cases 2015-09-14 18:16:31.000258 [INFO] switch_core_state_machine.c:241 No Route, Aborting 2015-09-14 18:16:31.000258 [NOTICE] switch_core_state_machine.c:242 Hangup loopback/3555-b [CS_ROUTING] [NO_ROUTE_DESTINATION] ..... But why? I have a context test_cases and corresponding extension with condition field.....
Looks like dumb question, but I'm desperate...
-- Best regards, Igor
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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
-- Best regards, Igor
What directory do you have the file in and what is the file called? On Mon, Sep 14, 2015 at 11:42 AM, Igor Olhovskiy <igorolhovskiy@gmail.com> wrote:
Yea, missed it. But the same
2015-09-14 18:41:19.880227 [DEBUG] switch_core_state_machine.c:166 loopback/3335-b Standard ROUTING 2015-09-14 18:41:19.880227 [INFO] mod_dialplan_xml.c:635 Processing <0000000000>->3335 in context test_cases 2015-09-14 18:41:19.880227 [INFO] switch_core_state_machine.c:241 No Route, Aborting
2015-09-14 19:29 GMT+03:00 Russell Treleaven <rtreleaven@bunnykick.ca>:
3555 != 3335
On Mon, Sep 14, 2015 at 12:26 PM, Igor Olhovskiy <igorolhovskiy@gmail.com
wrote:
Hi! I have a really strange dialplan problem or total misunderstanding of FreeSwitch dialplans.... I've created file test_cases.xml in dialplan directory with content: <include> <context name="test_cases"> <extension name="testing"> <condition field="destination_number" expression="^3335$"> <action application="info"/> </condition> </extension> </context> </include>
Than, after reloadxml. verify, that I have in log/freeswitch.xml.fsxml section with it (section="dialplan" and other....)
In fs_cli I've firing a commnand originate loopback/3555/test_cases/XML user/101
But can't get to 3555 extension in dialplan. Got in log
..... 2015-09-14 18:16:31.000258 [INFO] mod_dialplan_xml.c:635 Processing <0000000000>->3555 in context test_cases 2015-09-14 18:16:31.000258 [INFO] switch_core_state_machine.c:241 No Route, Aborting 2015-09-14 18:16:31.000258 [NOTICE] switch_core_state_machine.c:242 Hangup loopback/3555-b [CS_ROUTING] [NO_ROUTE_DESTINATION] ..... But why? I have a context test_cases and corresponding extension with condition field.....
Looks like dumb question, but I'm desperate...
-- Best regards, Igor
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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
-- Best regards, Igor
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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
-- *Brian West* brian@freeswitch.org *Twitter: @FreeSWITCH , @briankwest* http://www.freeswitchbook.com http://www.freeswitchcookbook.com Got Bugs? Report them here <https://freeswitch.org/jira>! | Reddit: /r/freeswitch <https://www.reddit.com/r/freeswitch> *T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378) *iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest
You're probably not reloading your dialplan due to an error in your xml, or overwriting the context test_case. xml_locate root dialplan and examine what FreeSWITCH have loaded. reloadxml give you an error? /log 7 will help you to see the dialplan hunt. On Mon, Sep 14, 2015 at 2:15 PM, Brian West <brian@freeswitch.org> wrote:
What directory do you have the file in and what is the file called?
On Mon, Sep 14, 2015 at 11:42 AM, Igor Olhovskiy <igorolhovskiy@gmail.com> wrote:
Yea, missed it. But the same
2015-09-14 18:41:19.880227 [DEBUG] switch_core_state_machine.c:166 loopback/3335-b Standard ROUTING 2015-09-14 18:41:19.880227 [INFO] mod_dialplan_xml.c:635 Processing <0000000000>->3335 in context test_cases 2015-09-14 18:41:19.880227 [INFO] switch_core_state_machine.c:241 No Route, Aborting
2015-09-14 19:29 GMT+03:00 Russell Treleaven <rtreleaven@bunnykick.ca>:
3555 != 3335
On Mon, Sep 14, 2015 at 12:26 PM, Igor Olhovskiy < igorolhovskiy@gmail.com> wrote:
Hi! I have a really strange dialplan problem or total misunderstanding of FreeSwitch dialplans.... I've created file test_cases.xml in dialplan directory with content: <include> <context name="test_cases"> <extension name="testing"> <condition field="destination_number" expression="^3335$"> <action application="info"/> </condition> </extension> </context> </include>
Than, after reloadxml. verify, that I have in log/freeswitch.xml.fsxml section with it (section="dialplan" and other....)
In fs_cli I've firing a commnand originate loopback/3555/test_cases/XML user/101
But can't get to 3555 extension in dialplan. Got in log
..... 2015-09-14 18:16:31.000258 [INFO] mod_dialplan_xml.c:635 Processing <0000000000>->3555 in context test_cases 2015-09-14 18:16:31.000258 [INFO] switch_core_state_machine.c:241 No Route, Aborting 2015-09-14 18:16:31.000258 [NOTICE] switch_core_state_machine.c:242 Hangup loopback/3555-b [CS_ROUTING] [NO_ROUTE_DESTINATION] ..... But why? I have a context test_cases and corresponding extension with condition field.....
Looks like dumb question, but I'm desperate...
-- Best regards, Igor
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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
-- Best regards, Igor
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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
--
*Brian West* brian@freeswitch.org
*Twitter: @FreeSWITCH , @briankwest* http://www.freeswitchbook.com http://www.freeswitchcookbook.com
Got Bugs? Report them here <https://freeswitch.org/jira>! | Reddit: /r/freeswitch <https://www.reddit.com/r/freeswitch>
*T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378) *iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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
-- Ítalo Rossi italo@freeswitch.org
File /usr/local/freeswitch/conf/dialplan/test_case.xml xml_locate dialplan <section name="dialplan" description="Regex/XML Dialplan"> <context name="test_cases"> <extension name="testing"> <condition field="destination_number" expression="^3335$"> <action application="info"></action> </condition> </extension> </context> </section> ..... (other dialplan is handled by lua dbh) reloadxml gives no error.... And I'm already at log7. What is strange - I can't see strings in log for regex matching (PASS and FAIL), just No Route.... 2015-09-14 20:53 GMT+03:00 Ítalo Rossi <italo@freeswitch.org>:
You're probably not reloading your dialplan due to an error in your xml, or overwriting the context test_case.
xml_locate root dialplan
and examine what FreeSWITCH have loaded.
reloadxml give you an error?
/log 7 will help you to see the dialplan hunt.
On Mon, Sep 14, 2015 at 2:15 PM, Brian West <brian@freeswitch.org> wrote:
What directory do you have the file in and what is the file called?
On Mon, Sep 14, 2015 at 11:42 AM, Igor Olhovskiy <igorolhovskiy@gmail.com
wrote:
Yea, missed it. But the same
2015-09-14 18:41:19.880227 [DEBUG] switch_core_state_machine.c:166 loopback/3335-b Standard ROUTING 2015-09-14 18:41:19.880227 [INFO] mod_dialplan_xml.c:635 Processing <0000000000>->3335 in context test_cases 2015-09-14 18:41:19.880227 [INFO] switch_core_state_machine.c:241 No Route, Aborting
2015-09-14 19:29 GMT+03:00 Russell Treleaven <rtreleaven@bunnykick.ca>:
3555 != 3335
On Mon, Sep 14, 2015 at 12:26 PM, Igor Olhovskiy < igorolhovskiy@gmail.com> wrote:
Hi! I have a really strange dialplan problem or total misunderstanding of FreeSwitch dialplans.... I've created file test_cases.xml in dialplan directory with content: <include> <context name="test_cases"> <extension name="testing"> <condition field="destination_number" expression="^3335$"> <action application="info"/> </condition> </extension> </context> </include>
Than, after reloadxml. verify, that I have in log/freeswitch.xml.fsxml section with it (section="dialplan" and other....)
In fs_cli I've firing a commnand originate loopback/3555/test_cases/XML user/101
But can't get to 3555 extension in dialplan. Got in log
..... 2015-09-14 18:16:31.000258 [INFO] mod_dialplan_xml.c:635 Processing <0000000000>->3555 in context test_cases 2015-09-14 18:16:31.000258 [INFO] switch_core_state_machine.c:241 No Route, Aborting 2015-09-14 18:16:31.000258 [NOTICE] switch_core_state_machine.c:242 Hangup loopback/3555-b [CS_ROUTING] [NO_ROUTE_DESTINATION] ..... But why? I have a context test_cases and corresponding extension with condition field.....
Looks like dumb question, but I'm desperate...
-- Best regards, Igor
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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
-- Best regards, Igor
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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
--
*Brian West* brian@freeswitch.org
*Twitter: @FreeSWITCH , @briankwest* http://www.freeswitchbook.com http://www.freeswitchcookbook.com
Got Bugs? Report them here <https://freeswitch.org/jira>! | Reddit: /r/freeswitch <https://www.reddit.com/r/freeswitch>
*T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378) *iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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
-- Ítalo Rossi italo@freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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
-- Best regards, Igor
maybe it doesn't like the _ in the context name? On Monday, September 14, 2015, Igor Olhovskiy <igorolhovskiy@gmail.com> wrote:
File /usr/local/freeswitch/conf/dialplan/test_case.xml
xml_locate dialplan <section name="dialplan" description="Regex/XML Dialplan"> <context name="test_cases"> <extension name="testing"> <condition field="destination_number" expression="^3335$"> <action application="info"></action>
</condition>
</extension>
</context>
</section> ..... (other dialplan is handled by lua dbh)
reloadxml gives no error.... And I'm already at log7. What is strange - I can't see strings in log for regex matching (PASS and FAIL), just No Route....
2015-09-14 20:53 GMT+03:00 Ítalo Rossi <italo@freeswitch.org <javascript:_e(%7B%7D,'cvml','italo@freeswitch.org');>>:
You're probably not reloading your dialplan due to an error in your xml, or overwriting the context test_case.
xml_locate root dialplan
and examine what FreeSWITCH have loaded.
reloadxml give you an error?
/log 7 will help you to see the dialplan hunt.
On Mon, Sep 14, 2015 at 2:15 PM, Brian West <brian@freeswitch.org <javascript:_e(%7B%7D,'cvml','brian@freeswitch.org');>> wrote:
What directory do you have the file in and what is the file called?
On Mon, Sep 14, 2015 at 11:42 AM, Igor Olhovskiy < igorolhovskiy@gmail.com <javascript:_e(%7B%7D,'cvml','igorolhovskiy@gmail.com');>> wrote:
Yea, missed it. But the same
2015-09-14 18:41:19.880227 [DEBUG] switch_core_state_machine.c:166 loopback/3335-b Standard ROUTING 2015-09-14 18:41:19.880227 [INFO] mod_dialplan_xml.c:635 Processing <0000000000>->3335 in context test_cases 2015-09-14 18:41:19.880227 [INFO] switch_core_state_machine.c:241 No Route, Aborting
2015-09-14 19:29 GMT+03:00 Russell Treleaven <rtreleaven@bunnykick.ca <javascript:_e(%7B%7D,'cvml','rtreleaven@bunnykick.ca');>>:
3555 != 3335
On Mon, Sep 14, 2015 at 12:26 PM, Igor Olhovskiy < igorolhovskiy@gmail.com <javascript:_e(%7B%7D,'cvml','igorolhovskiy@gmail.com');>> wrote:
Hi! I have a really strange dialplan problem or total misunderstanding of FreeSwitch dialplans.... I've created file test_cases.xml in dialplan directory with content: <include> <context name="test_cases"> <extension name="testing"> <condition field="destination_number" expression="^3335$"> <action application="info"/> </condition> </extension> </context> </include>
Than, after reloadxml. verify, that I have in log/freeswitch.xml.fsxml section with it (section="dialplan" and other....)
In fs_cli I've firing a commnand originate loopback/3555/test_cases/XML user/101
But can't get to 3555 extension in dialplan. Got in log
..... 2015-09-14 18:16:31.000258 [INFO] mod_dialplan_xml.c:635 Processing <0000000000>->3555 in context test_cases 2015-09-14 18:16:31.000258 [INFO] switch_core_state_machine.c:241 No Route, Aborting 2015-09-14 18:16:31.000258 [NOTICE] switch_core_state_machine.c:242 Hangup loopback/3555-b [CS_ROUTING] [NO_ROUTE_DESTINATION] ..... But why? I have a context test_cases and corresponding extension with condition field.....
Looks like dumb question, but I'm desperate...
-- Best regards, Igor
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <javascript:_e(%7B%7D,'cvml','consulting@freeswitch.org');> http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <javascript:_e(%7B%7D,'cvml','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
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <javascript:_e(%7B%7D,'cvml','consulting@freeswitch.org');> http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <javascript:_e(%7B%7D,'cvml','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
-- Best regards, Igor
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <javascript:_e(%7B%7D,'cvml','consulting@freeswitch.org');> http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <javascript:_e(%7B%7D,'cvml','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
--
*Brian West* brian@freeswitch.org <javascript:_e(%7B%7D,'cvml','brian@freeswitch.org');>
*Twitter: @FreeSWITCH , @briankwest* http://www.freeswitchbook.com http://www.freeswitchcookbook.com
Got Bugs? Report them here <https://freeswitch.org/jira>! | Reddit: /r/freeswitch <https://www.reddit.com/r/freeswitch>
*T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378) *iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <javascript:_e(%7B%7D,'cvml','consulting@freeswitch.org');> http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <javascript:_e(%7B%7D,'cvml','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
-- Ítalo Rossi italo@freeswitch.org <javascript:_e(%7B%7D,'cvml','italo@freeswitch.org');>
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <javascript:_e(%7B%7D,'cvml','consulting@freeswitch.org');> http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <javascript:_e(%7B%7D,'cvml','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
-- Best regards, Igor
No.... Same.... 2015-09-14 22:14 GMT+03:00 Michael Jerris <mike@jerris.com>:
maybe it doesn't like the _ in the context name?
On Monday, September 14, 2015, Igor Olhovskiy <igorolhovskiy@gmail.com> wrote:
File /usr/local/freeswitch/conf/dialplan/test_case.xml
xml_locate dialplan <section name="dialplan" description="Regex/XML Dialplan"> <context name="test_cases"> <extension name="testing"> <condition field="destination_number" expression="^3335$"> <action application="info"></action>
</condition>
</extension>
</context>
</section> ..... (other dialplan is handled by lua dbh)
reloadxml gives no error.... And I'm already at log7. What is strange - I can't see strings in log for regex matching (PASS and FAIL), just No Route....
2015-09-14 20:53 GMT+03:00 Ítalo Rossi <italo@freeswitch.org>:
You're probably not reloading your dialplan due to an error in your xml, or overwriting the context test_case.
xml_locate root dialplan
and examine what FreeSWITCH have loaded.
reloadxml give you an error?
/log 7 will help you to see the dialplan hunt.
On Mon, Sep 14, 2015 at 2:15 PM, Brian West <brian@freeswitch.org> wrote:
What directory do you have the file in and what is the file called?
On Mon, Sep 14, 2015 at 11:42 AM, Igor Olhovskiy < igorolhovskiy@gmail.com> wrote:
Yea, missed it. But the same
2015-09-14 18:41:19.880227 [DEBUG] switch_core_state_machine.c:166 loopback/3335-b Standard ROUTING 2015-09-14 18:41:19.880227 [INFO] mod_dialplan_xml.c:635 Processing <0000000000>->3335 in context test_cases 2015-09-14 18:41:19.880227 [INFO] switch_core_state_machine.c:241 No Route, Aborting
2015-09-14 19:29 GMT+03:00 Russell Treleaven <rtreleaven@bunnykick.ca> :
3555 != 3335
On Mon, Sep 14, 2015 at 12:26 PM, Igor Olhovskiy < igorolhovskiy@gmail.com> wrote:
> Hi! > I have a really strange dialplan problem or total misunderstanding > of FreeSwitch dialplans.... > I've created file > test_cases.xml in dialplan directory with content: > <include> > <context name="test_cases"> > <extension name="testing"> > <condition field="destination_number" expression="^3335$"> > <action application="info"/> > </condition> > </extension> > </context> > </include> > > Than, after reloadxml. verify, that I have > in log/freeswitch.xml.fsxml section with it (section="dialplan" and > other....) > > In fs_cli I've firing a commnand > originate loopback/3555/test_cases/XML user/101 > > But can't get to 3555 extension in dialplan. Got in log > > ..... > 2015-09-14 18:16:31.000258 [INFO] mod_dialplan_xml.c:635 Processing > <0000000000>->3555 in context test_cases > 2015-09-14 18:16:31.000258 [INFO] switch_core_state_machine.c:241 No > Route, Aborting > 2015-09-14 18:16:31.000258 [NOTICE] switch_core_state_machine.c:242 > Hangup loopback/3555-b [CS_ROUTING] [NO_ROUTE_DESTINATION] > ..... > But why? I have a context test_cases and corresponding extension > with condition field..... > > Looks like dumb question, but I'm desperate... > > > -- > Best regards, > Igor > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting@freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > 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 >
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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
-- Best regards, Igor
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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
--
*Brian West* brian@freeswitch.org
*Twitter: @FreeSWITCH , @briankwest* http://www.freeswitchbook.com http://www.freeswitchcookbook.com
Got Bugs? Report them here <https://freeswitch.org/jira>! | Reddit: /r/freeswitch <https://www.reddit.com/r/freeswitch>
*T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378) *iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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
-- Ítalo Rossi italo@freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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
-- Best regards, Igor
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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
-- Best regards, Igor
Are you sure you don’t have build skew or something else going on here? I just copy/pasted your config into a file in my configs and it worked just fine From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Igor Olhovskiy Sent: Monday, September 14, 2015 2:18 PM To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org> Subject: Re: [Freeswitch-users] Dialplan question.... No.... Same.... 2015-09-14 22:14 GMT+03:00 Michael Jerris <mike@jerris.com <mailto:mike@jerris.com> >: maybe it doesn't like the _ in the context name? On Monday, September 14, 2015, Igor Olhovskiy <igorolhovskiy@gmail.com <mailto:igorolhovskiy@gmail.com> > wrote: File /usr/local/freeswitch/conf/dialplan/test_case.xml xml_locate dialplan <section name="dialplan" description="Regex/XML Dialplan"> <context name="test_cases"> <extension name="testing"> <condition field="destination_number" expression="^3335$"> <action application="info"></action> </condition> </extension> </context> </section> ..... (other dialplan is handled by lua dbh) reloadxml gives no error.... And I'm already at log7. What is strange - I can't see strings in log for regex matching (PASS and FAIL), just No Route.... 2015-09-14 20:53 GMT+03:00 Ítalo Rossi <italo@freeswitch.org <mailto:italo@freeswitch.org> >: You're probably not reloading your dialplan due to an error in your xml, or overwriting the context test_case. xml_locate root dialplan and examine what FreeSWITCH have loaded. reloadxml give you an error? /log 7 will help you to see the dialplan hunt. On Mon, Sep 14, 2015 at 2:15 PM, Brian West <brian@freeswitch.org <mailto:brian@freeswitch.org> > wrote: What directory do you have the file in and what is the file called? On Mon, Sep 14, 2015 at 11:42 AM, Igor Olhovskiy <igorolhovskiy@gmail.com <mailto:igorolhovskiy@gmail.com> > wrote: Yea, missed it. But the same 2015-09-14 18:41:19.880227 [DEBUG] switch_core_state_machine.c:166 loopback/3335-b Standard ROUTING 2015-09-14 18:41:19.880227 [INFO] mod_dialplan_xml.c:635 Processing <0000000000>->3335 in context test_cases 2015-09-14 18:41:19.880227 [INFO] switch_core_state_machine.c:241 No Route, Aborting 2015-09-14 19:29 GMT+03:00 Russell Treleaven <rtreleaven@bunnykick.ca <mailto:rtreleaven@bunnykick.ca> >: 3555 != 3335 On Mon, Sep 14, 2015 at 12:26 PM, Igor Olhovskiy <igorolhovskiy@gmail.com <mailto:igorolhovskiy@gmail.com> > wrote: Hi! I have a really strange dialplan problem or total misunderstanding of FreeSwitch dialplans.... I've created file test_cases.xml in dialplan directory with content: <include> <context name="test_cases"> <extension name="testing"> <condition field="destination_number" expression="^3335$"> <action application="info"/> </condition> </extension> </context> </include> Than, after reloadxml. verify, that I have in log/freeswitch.xml.fsxml section with it (section="dialplan" and other....) In fs_cli I've firing a commnand originate loopback/3555/test_cases/XML user/101 But can't get to 3555 extension in dialplan. Got in log ..... 2015-09-14 18:16:31.000258 [INFO] mod_dialplan_xml.c:635 Processing <0000000000>->3555 in context test_cases 2015-09-14 18:16:31.000258 [INFO] switch_core_state_machine.c:241 No Route, Aborting 2015-09-14 18:16:31.000258 [NOTICE] switch_core_state_machine.c:242 Hangup loopback/3555-b [CS_ROUTING] [NO_ROUTE_DESTINATION] ..... But why? I have a context test_cases and corresponding extension with condition field..... Looks like dumb question, but I'm desperate... -- Best regards, Igor _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com 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 _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com 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 -- Best regards, Igor _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com 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 -- Brian West brian@freeswitch.org <mailto:brian@freeswitch.org> <http://billing.freeswitch.org/templates/default/img/whmcslogo.png> Twitter: @FreeSWITCH , @briankwest http://www.freeswitchbook.com http://www.freeswitchcookbook.com Got Bugs? Report them here <https://freeswitch.org/jira> ! | Reddit: /r/freeswitch <https://www.reddit.com/r/freeswitch> T:+19184209001 <tel:%2B19184209001> | F:+19184209002 <tel:%2B19184209002> | M:+1918424WEST (9378) iNUM:+883 5100 1420 9001 | ISN:410*543 | Skype:briankwest _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com 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 -- Ítalo Rossi italo@freeswitch.org <mailto:italo@freeswitch.org> _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com 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 -- Best regards, Igor _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com 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 -- Best regards, Igor
That should be fine, I use it a lot On 14 September 2015 at 20:14, Michael Jerris <mike@jerris.com> wrote:
maybe it doesn't like the _ in the context name?
On Monday, September 14, 2015, Igor Olhovskiy <igorolhovskiy@gmail.com> wrote:
File /usr/local/freeswitch/conf/dialplan/test_case.xml
xml_locate dialplan <section name="dialplan" description="Regex/XML Dialplan"> <context name="test_cases"> <extension name="testing"> <condition field="destination_number" expression="^3335$"> <action application="info"></action>
</condition>
</extension>
</context>
</section> ..... (other dialplan is handled by lua dbh)
reloadxml gives no error.... And I'm already at log7. What is strange - I can't see strings in log for regex matching (PASS and FAIL), just No Route....
2015-09-14 20:53 GMT+03:00 Ítalo Rossi <italo@freeswitch.org>:
You're probably not reloading your dialplan due to an error in your xml, or overwriting the context test_case.
xml_locate root dialplan
and examine what FreeSWITCH have loaded.
reloadxml give you an error?
/log 7 will help you to see the dialplan hunt.
On Mon, Sep 14, 2015 at 2:15 PM, Brian West <brian@freeswitch.org> wrote:
What directory do you have the file in and what is the file called?
On Mon, Sep 14, 2015 at 11:42 AM, Igor Olhovskiy < igorolhovskiy@gmail.com> wrote:
Yea, missed it. But the same
2015-09-14 18:41:19.880227 [DEBUG] switch_core_state_machine.c:166 loopback/3335-b Standard ROUTING 2015-09-14 18:41:19.880227 [INFO] mod_dialplan_xml.c:635 Processing <0000000000>->3335 in context test_cases 2015-09-14 18:41:19.880227 [INFO] switch_core_state_machine.c:241 No Route, Aborting
2015-09-14 19:29 GMT+03:00 Russell Treleaven <rtreleaven@bunnykick.ca> :
3555 != 3335
On Mon, Sep 14, 2015 at 12:26 PM, Igor Olhovskiy < igorolhovskiy@gmail.com> wrote:
> Hi! > I have a really strange dialplan problem or total misunderstanding > of FreeSwitch dialplans.... > I've created file > test_cases.xml in dialplan directory with content: > <include> > <context name="test_cases"> > <extension name="testing"> > <condition field="destination_number" expression="^3335$"> > <action application="info"/> > </condition> > </extension> > </context> > </include> > > Than, after reloadxml. verify, that I have > in log/freeswitch.xml.fsxml section with it (section="dialplan" and > other....) > > In fs_cli I've firing a commnand > originate loopback/3555/test_cases/XML user/101 > > But can't get to 3555 extension in dialplan. Got in log > > ..... > 2015-09-14 18:16:31.000258 [INFO] mod_dialplan_xml.c:635 Processing > <0000000000>->3555 in context test_cases > 2015-09-14 18:16:31.000258 [INFO] switch_core_state_machine.c:241 No > Route, Aborting > 2015-09-14 18:16:31.000258 [NOTICE] switch_core_state_machine.c:242 > Hangup loopback/3555-b [CS_ROUTING] [NO_ROUTE_DESTINATION] > ..... > But why? I have a context test_cases and corresponding extension > with condition field..... > > Looks like dumb question, but I'm desperate... > > > -- > Best regards, > Igor > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting@freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > 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 >
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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
-- Best regards, Igor
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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
--
*Brian West* brian@freeswitch.org
*Twitter: @FreeSWITCH , @briankwest* http://www.freeswitchbook.com http://www.freeswitchcookbook.com
Got Bugs? Report them here <https://freeswitch.org/jira>! | Reddit: /r/freeswitch <https://www.reddit.com/r/freeswitch>
*T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378) *iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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
-- Ítalo Rossi italo@freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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
-- Best regards, Igor
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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
Really dunno. May be cause of mix of lua dbh dialplan and plain xml? Will play more on it.... 2015-09-14 22:52 GMT+03:00 Steven Ayre <steveayre@gmail.com>:
That should be fine, I use it a lot
On 14 September 2015 at 20:14, Michael Jerris <mike@jerris.com> wrote:
maybe it doesn't like the _ in the context name?
On Monday, September 14, 2015, Igor Olhovskiy <igorolhovskiy@gmail.com> wrote:
File /usr/local/freeswitch/conf/dialplan/test_case.xml
xml_locate dialplan <section name="dialplan" description="Regex/XML Dialplan"> <context name="test_cases"> <extension name="testing"> <condition field="destination_number" expression="^3335$"> <action application="info"></action>
</condition>
</extension>
</context>
</section> ..... (other dialplan is handled by lua dbh)
reloadxml gives no error.... And I'm already at log7. What is strange - I can't see strings in log for regex matching (PASS and FAIL), just No Route....
2015-09-14 20:53 GMT+03:00 Ítalo Rossi <italo@freeswitch.org>:
You're probably not reloading your dialplan due to an error in your xml, or overwriting the context test_case.
xml_locate root dialplan
and examine what FreeSWITCH have loaded.
reloadxml give you an error?
/log 7 will help you to see the dialplan hunt.
On Mon, Sep 14, 2015 at 2:15 PM, Brian West <brian@freeswitch.org> wrote:
What directory do you have the file in and what is the file called?
On Mon, Sep 14, 2015 at 11:42 AM, Igor Olhovskiy < igorolhovskiy@gmail.com> wrote:
Yea, missed it. But the same
2015-09-14 18:41:19.880227 [DEBUG] switch_core_state_machine.c:166 loopback/3335-b Standard ROUTING 2015-09-14 18:41:19.880227 [INFO] mod_dialplan_xml.c:635 Processing <0000000000>->3335 in context test_cases 2015-09-14 18:41:19.880227 [INFO] switch_core_state_machine.c:241 No Route, Aborting
2015-09-14 19:29 GMT+03:00 Russell Treleaven <rtreleaven@bunnykick.ca >:
> 3555 != 3335 > > > > On Mon, Sep 14, 2015 at 12:26 PM, Igor Olhovskiy < > igorolhovskiy@gmail.com> wrote: > >> Hi! >> I have a really strange dialplan problem or total misunderstanding >> of FreeSwitch dialplans.... >> I've created file >> test_cases.xml in dialplan directory with content: >> <include> >> <context name="test_cases"> >> <extension name="testing"> >> <condition field="destination_number" expression="^3335$"> >> <action application="info"/> >> </condition> >> </extension> >> </context> >> </include> >> >> Than, after reloadxml. verify, that I have >> in log/freeswitch.xml.fsxml section with it (section="dialplan" and >> other....) >> >> In fs_cli I've firing a commnand >> originate loopback/3555/test_cases/XML user/101 >> >> But can't get to 3555 extension in dialplan. Got in log >> >> ..... >> 2015-09-14 18:16:31.000258 [INFO] mod_dialplan_xml.c:635 Processing >> <0000000000>->3555 in context test_cases >> 2015-09-14 18:16:31.000258 [INFO] switch_core_state_machine.c:241 >> No Route, Aborting >> 2015-09-14 18:16:31.000258 [NOTICE] switch_core_state_machine.c:242 >> Hangup loopback/3555-b [CS_ROUTING] [NO_ROUTE_DESTINATION] >> ..... >> But why? I have a context test_cases and corresponding extension >> with condition field..... >> >> Looks like dumb question, but I'm desperate... >> >> >> -- >> Best regards, >> Igor >> >> >> _________________________________________________________________________ >> Professional FreeSWITCH Consulting Services: >> consulting@freeswitch.org >> http://www.freeswitchsolutions.com >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org >> http://confluence.freeswitch.org >> http://www.cluecon.com >> >> 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 >> > > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting@freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > 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 >
-- Best regards, Igor
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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
--
*Brian West* brian@freeswitch.org
*Twitter: @FreeSWITCH , @briankwest* http://www.freeswitchbook.com http://www.freeswitchcookbook.com
Got Bugs? Report them here <https://freeswitch.org/jira>! | Reddit: /r/freeswitch <https://www.reddit.com/r/freeswitch>
*T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378) *iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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
-- Ítalo Rossi italo@freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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
-- Best regards, Igor
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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
-- Best regards, Igor
Seems to be, if you have a mix of lua - driven dialplan and XML, freeswitch just drop your XML parts. Means in autoload_configs/lua.conf.xml i have <param name="xml-handler-bindings" value="configuration,dialplan,directory"/> When I transfer a call to another context, I get 2015-09-15 15:06:32.051880 [INFO] mod_dialplan_xml.c:635 Processing 601 <601>->5555 in context test_cases 2015-09-15 15:06:32.051880 [DEBUG] freeswitch_lua.cpp:360 DBH handle 0x7fb46c214d50 Connected. 2015-09-15 15:06:32.051880 [DEBUG] freeswitch_lua.cpp:377 DBH handle 0x7fb46c214d50 released. 2015-09-15 15:06:32.051880 [INFO] switch_core_state_machine.c:241 No Route, Aborting So, it tries to lookup this context via lua bindings, but not via plain XML. But when I do a xml_lookup in CLI, I see this context. Looks like a bug or not? 2015-09-14 23:16 GMT+03:00 Igor Olhovskiy <igorolhovskiy@gmail.com>:
Really dunno. May be cause of mix of lua dbh dialplan and plain xml? Will play more on it....
2015-09-14 22:52 GMT+03:00 Steven Ayre <steveayre@gmail.com>:
That should be fine, I use it a lot
On 14 September 2015 at 20:14, Michael Jerris <mike@jerris.com> wrote:
maybe it doesn't like the _ in the context name?
On Monday, September 14, 2015, Igor Olhovskiy <igorolhovskiy@gmail.com> wrote:
File /usr/local/freeswitch/conf/dialplan/test_case.xml
xml_locate dialplan <section name="dialplan" description="Regex/XML Dialplan"> <context name="test_cases"> <extension name="testing"> <condition field="destination_number" expression="^3335$"> <action application="info"></action>
</condition>
</extension>
</context>
</section> ..... (other dialplan is handled by lua dbh)
reloadxml gives no error.... And I'm already at log7. What is strange - I can't see strings in log for regex matching (PASS and FAIL), just No Route....
2015-09-14 20:53 GMT+03:00 Ítalo Rossi <italo@freeswitch.org>:
You're probably not reloading your dialplan due to an error in your xml, or overwriting the context test_case.
xml_locate root dialplan
and examine what FreeSWITCH have loaded.
reloadxml give you an error?
/log 7 will help you to see the dialplan hunt.
On Mon, Sep 14, 2015 at 2:15 PM, Brian West <brian@freeswitch.org> wrote:
What directory do you have the file in and what is the file called?
On Mon, Sep 14, 2015 at 11:42 AM, Igor Olhovskiy < igorolhovskiy@gmail.com> wrote:
> Yea, missed it. But the same > > 2015-09-14 18:41:19.880227 [DEBUG] switch_core_state_machine.c:166 > loopback/3335-b Standard ROUTING > 2015-09-14 18:41:19.880227 [INFO] mod_dialplan_xml.c:635 Processing > <0000000000>->3335 in context test_cases > 2015-09-14 18:41:19.880227 [INFO] switch_core_state_machine.c:241 No > Route, Aborting > > > 2015-09-14 19:29 GMT+03:00 Russell Treleaven < > rtreleaven@bunnykick.ca>: > >> 3555 != 3335 >> >> >> >> On Mon, Sep 14, 2015 at 12:26 PM, Igor Olhovskiy < >> igorolhovskiy@gmail.com> wrote: >> >>> Hi! >>> I have a really strange dialplan problem or total misunderstanding >>> of FreeSwitch dialplans.... >>> I've created file >>> test_cases.xml in dialplan directory with content: >>> <include> >>> <context name="test_cases"> >>> <extension name="testing"> >>> <condition field="destination_number" expression="^3335$"> >>> <action application="info"/> >>> </condition> >>> </extension> >>> </context> >>> </include> >>> >>> Than, after reloadxml. verify, that I have >>> in log/freeswitch.xml.fsxml section with it (section="dialplan" and >>> other....) >>> >>> In fs_cli I've firing a commnand >>> originate loopback/3555/test_cases/XML user/101 >>> >>> But can't get to 3555 extension in dialplan. Got in log >>> >>> ..... >>> 2015-09-14 18:16:31.000258 [INFO] mod_dialplan_xml.c:635 >>> Processing <0000000000>->3555 in context test_cases >>> 2015-09-14 18:16:31.000258 [INFO] switch_core_state_machine.c:241 >>> No Route, Aborting >>> 2015-09-14 18:16:31.000258 [NOTICE] >>> switch_core_state_machine.c:242 Hangup loopback/3555-b [CS_ROUTING] >>> [NO_ROUTE_DESTINATION] >>> ..... >>> But why? I have a context test_cases and corresponding extension >>> with condition field..... >>> >>> Looks like dumb question, but I'm desperate... >>> >>> >>> -- >>> Best regards, >>> Igor >>> >>> >>> _________________________________________________________________________ >>> Professional FreeSWITCH Consulting Services: >>> consulting@freeswitch.org >>> http://www.freeswitchsolutions.com >>> >>> Official FreeSWITCH Sites >>> http://www.freeswitch.org >>> http://confluence.freeswitch.org >>> http://www.cluecon.com >>> >>> 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 >>> >> >> >> >> _________________________________________________________________________ >> Professional FreeSWITCH Consulting Services: >> consulting@freeswitch.org >> http://www.freeswitchsolutions.com >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org >> http://confluence.freeswitch.org >> http://www.cluecon.com >> >> 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 >> > > > > -- > Best regards, > Igor > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting@freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > 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 >
--
*Brian West* brian@freeswitch.org
*Twitter: @FreeSWITCH , @briankwest* http://www.freeswitchbook.com http://www.freeswitchcookbook.com
Got Bugs? Report them here <https://freeswitch.org/jira>! | Reddit: /r/freeswitch <https://www.reddit.com/r/freeswitch>
*T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378) *iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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
-- Ítalo Rossi italo@freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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
-- Best regards, Igor
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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
-- Best regards, Igor
-- Best regards, Igor
participants (7)
-
Brian West
-
Igor Olhovskiy
-
Ken Rice
-
Michael Jerris
-
Russell Treleaven
-
Steven Ayre
-
Ítalo Rossi