Now that I have solved the problem of loading the dialplan from the xml files ... I get to the point that it doesn't work as I expect. This is the only extension defined: <context name="default"> <extension name="t38_transcode"> <condition field="sip_h_X-T38-Transcode" expresion="^True"/> <condition field="destination_number" expresion="^(\+1|1)([2-9]\d\d[2-9]\d{6})$"> <action application="set" data="fax_enable_t38=true"/> <action application="set" data="sip_execute_on_image=t38_gateway peer nocng"/> <action application="bridge" data="sofia/external/$1$2@proxy.server.tld"/> </condition> </extension> </context> I expect not to call the bridge app if there is no T38-Transcode header on the incoming INVITE request and if it is present ... that $1$2 will be filled ... but what I get on the traces is that any call fires the call to the bridge app and also that the dialled number is exactly $1$2 ... instead of the values they should have. I'm loading a minimal setup of modules, did I need to load someother one to get the conditions and the expresions to work on this simple dialplan? My modules.conf.xml file: <configuration name="modules.conf" description="Modules"> <modules> <load module="mod_syslog"/> <load module="mod_logfile"/> <load module="mod_event_socket"/> <load module="mod_sofia"/> <load module="mod_commands"/> <load module="mod_dptools"/> <load module="mod_spandsp"/> <load module="mod_tone_stream"/> <load module="mod_db"/> <load module="mod_xml_rpc"/> <load module="mod_expr"/> <load module="mod_dialplan_xml"/> </modules> </configuration> Best regards
add <action application="info"/> and check if the channel variable is setup always. Regards, Alfonso. On Thu, May 18, 2017 at 12:01 PM, Raúl Alexis Betancor Santana <rbetancor@gmail.com> wrote:
Now that I have solved the problem of loading the dialplan from the xml files ... I get to the point that it doesn't work as I expect.
This is the only extension defined:
<context name="default"> <extension name="t38_transcode"> <condition field="sip_h_X-T38-Transcode" expresion="^True"/> <condition field="destination_number" expresion="^(\+1|1)([2-9]\d\d[2-9]\d{6})$"> <action application="set" data="fax_enable_t38=true"/> <action application="set" data="sip_execute_on_image=t38_gateway peer nocng"/> <action application="bridge" data="sofia/external/$1$2@proxy.server.tld"/> </condition> </extension> </context>
I expect not to call the bridge app if there is no T38-Transcode header on the incoming INVITE request and if it is present ... that $1$2 will be filled ... but what I get on the traces is that any call fires the call to the bridge app and also that the dialled number is exactly $1$2 ... instead of the values they should have. I'm loading a minimal setup of modules, did I need to load someother one to get the conditions and the expresions to work on this simple dialplan?
My modules.conf.xml file:
<configuration name="modules.conf" description="Modules"> <modules>
<load module="mod_syslog"/> <load module="mod_logfile"/>
<load module="mod_event_socket"/> <load module="mod_sofia"/> <load module="mod_commands"/> <load module="mod_dptools"/> <load module="mod_spandsp"/> <load module="mod_tone_stream"/> <load module="mod_db"/> <load module="mod_xml_rpc"/> <load module="mod_expr"/> <load module="mod_dialplan_xml"/>
</modules> </configuration>
Best regards
_________________________________________________________________________ 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
http://lists.freeswitch.org/pipermail/freeswitch-users/2013-September/099883... ᐧ Regards, David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337 On Thu, May 18, 2017 at 12:01 PM, Raúl Alexis Betancor Santana < rbetancor@gmail.com> wrote:
Now that I have solved the problem of loading the dialplan from the xml files ... I get to the point that it doesn't work as I expect.
This is the only extension defined:
<context name="default"> <extension name="t38_transcode"> <condition field="sip_h_X-T38-Transcode" expresion="^True"/> <condition field="destination_number" expresion="^(\+1|1)([2-9]\d\d[2-9]\d{6})$">
<action application="set" data="fax_enable_t38=true"/> <action application="set" data="sip_execute_on_image=t38_gateway peer nocng"/> <action application="bridge" data="sofia/external/$1$2@proxy.server.tld"/>
</condition> </extension> </context>
I expect not to call the bridge app if there is no T38-Transcode header on the incoming INVITE request and if it is present ... that $1$2 will be filled ... but what I get on the traces is that any call fires the call to the bridge app and also that the dialled number is exactly $1$2 ... instead of the values they should have. I'm loading a minimal setup of modules, did I need to load someother one to get the conditions and the expresions to work on this simple dialplan?
My modules.conf.xml file:
<configuration name="modules.conf" description="Modules"> <modules>
<load module="mod_syslog"/> <load module="mod_logfile"/>
<load module="mod_event_socket"/> <load module="mod_sofia"/> <load module="mod_commands"/> <load module="mod_dptools"/> <load module="mod_spandsp"/> <load module="mod_tone_stream"/> <load module="mod_db"/> <load module="mod_xml_rpc"/> <load module="mod_expr"/> <load module="mod_dialplan_xml"/>
</modules> </configuration>
Best regards
_________________________________________________________________________ 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
But I used a logical AND, two conditions ... if the header is not there, so been consider emty, the condition should evaluate to false because there is no match ... and the app inside the condition should never been fired. 2017-05-18 13:59 GMT+01:00 David Villasmil <david.villasmil.work@gmail.com>:
http://lists.freeswitch.org/pipermail/freeswitch-users/ 2013-September/099883.html ᐧ
Regards,
David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337 <+34%20669%2044%2083%2037>
On Thu, May 18, 2017 at 12:01 PM, Raúl Alexis Betancor Santana < rbetancor@gmail.com> wrote:
Now that I have solved the problem of loading the dialplan from the xml files ... I get to the point that it doesn't work as I expect.
This is the only extension defined:
<context name="default"> <extension name="t38_transcode"> <condition field="sip_h_X-T38-Transcode" expresion="^True"/> <condition field="destination_number" expresion="^(\+1|1)([2-9]\d\d[2-9]\d{6})$">
<action application="set" data="fax_enable_t38=true"/> <action application="set" data="sip_execute_on_image=t38_gateway peer nocng"/> <action application="bridge" data="sofia/external/$1$2@proxy.server.tld"/>
</condition> </extension> </context>
I expect not to call the bridge app if there is no T38-Transcode header on the incoming INVITE request and if it is present ... that $1$2 will be filled ... but what I get on the traces is that any call fires the call to the bridge app and also that the dialled number is exactly $1$2 ... instead of the values they should have. I'm loading a minimal setup of modules, did I need to load someother one to get the conditions and the expresions to work on this simple dialplan?
My modules.conf.xml file:
<configuration name="modules.conf" description="Modules"> <modules>
<load module="mod_syslog"/> <load module="mod_logfile"/>
<load module="mod_event_socket"/> <load module="mod_sofia"/> <load module="mod_commands"/> <load module="mod_dptools"/> <load module="mod_spandsp"/> <load module="mod_tone_stream"/> <load module="mod_db"/> <load module="mod_xml_rpc"/> <load module="mod_expr"/> <load module="mod_dialplan_xml"/>
</modules> </configuration>
Best regards
_________________________________________________________________________ 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
"expression" is with 2 "s"... and that works for me ᐧ Regards, David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337 On Thu, May 18, 2017 at 12:01 PM, Raúl Alexis Betancor Santana < rbetancor@gmail.com> wrote:
Now that I have solved the problem of loading the dialplan from the xml files ... I get to the point that it doesn't work as I expect.
This is the only extension defined:
<context name="default"> <extension name="t38_transcode"> <condition field="sip_h_X-T38-Transcode" expresion="^True"/> <condition field="destination_number" expresion="^(\+1|1)([2-9]\d\d[2-9]\d{6})$">
<action application="set" data="fax_enable_t38=true"/> <action application="set" data="sip_execute_on_image=t38_gateway peer nocng"/> <action application="bridge" data="sofia/external/$1$2@proxy.server.tld"/>
</condition> </extension> </context>
I expect not to call the bridge app if there is no T38-Transcode header on the incoming INVITE request and if it is present ... that $1$2 will be filled ... but what I get on the traces is that any call fires the call to the bridge app and also that the dialled number is exactly $1$2 ... instead of the values they should have. I'm loading a minimal setup of modules, did I need to load someother one to get the conditions and the expresions to work on this simple dialplan?
My modules.conf.xml file:
<configuration name="modules.conf" description="Modules"> <modules>
<load module="mod_syslog"/> <load module="mod_logfile"/>
<load module="mod_event_socket"/> <load module="mod_sofia"/> <load module="mod_commands"/> <load module="mod_dptools"/> <load module="mod_spandsp"/> <load module="mod_tone_stream"/> <load module="mod_db"/> <load module="mod_xml_rpc"/> <load module="mod_expr"/> <load module="mod_dialplan_xml"/>
</modules> </configuration>
Best regards
_________________________________________________________________________ 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
:-P 2017-05-18 15:38 GMT+01:00 David Villasmil <david.villasmil.work@gmail.com>:
"expression" is with 2 "s"... and that works for me ᐧ
Regards,
David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337 <+34%20669%2044%2083%2037>
On Thu, May 18, 2017 at 12:01 PM, Raúl Alexis Betancor Santana < rbetancor@gmail.com> wrote:
Now that I have solved the problem of loading the dialplan from the xml files ... I get to the point that it doesn't work as I expect.
This is the only extension defined:
<context name="default"> <extension name="t38_transcode"> <condition field="sip_h_X-T38-Transcode" expresion="^True"/> <condition field="destination_number" expresion="^(\+1|1)([2-9]\d\d[2-9]\d{6})$">
<action application="set" data="fax_enable_t38=true"/> <action application="set" data="sip_execute_on_image=t38_gateway peer nocng"/> <action application="bridge" data="sofia/external/$1$2@proxy.server.tld"/>
</condition> </extension> </context>
I expect not to call the bridge app if there is no T38-Transcode header on the incoming INVITE request and if it is present ... that $1$2 will be filled ... but what I get on the traces is that any call fires the call to the bridge app and also that the dialled number is exactly $1$2 ... instead of the values they should have. I'm loading a minimal setup of modules, did I need to load someother one to get the conditions and the expresions to work on this simple dialplan?
My modules.conf.xml file:
<configuration name="modules.conf" description="Modules"> <modules>
<load module="mod_syslog"/> <load module="mod_logfile"/>
<load module="mod_event_socket"/> <load module="mod_sofia"/> <load module="mod_commands"/> <load module="mod_dptools"/> <load module="mod_spandsp"/> <load module="mod_tone_stream"/> <load module="mod_db"/> <load module="mod_xml_rpc"/> <load module="mod_expr"/> <load module="mod_dialplan_xml"/>
</modules> </configuration>
Best regards
_________________________________________________________________________ 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
I'll need to add the syntax check to my sublime editor 2017-05-18 15:41 GMT+01:00 Raúl Alexis Betancor Santana <rbetancor@gmail.com
:
:-P
2017-05-18 15:38 GMT+01:00 David Villasmil <david.villasmil.work@gmail.com
:
"expression" is with 2 "s"... and that works for me ᐧ
Regards,
David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337 <+34%20669%2044%2083%2037>
On Thu, May 18, 2017 at 12:01 PM, Raúl Alexis Betancor Santana < rbetancor@gmail.com> wrote:
Now that I have solved the problem of loading the dialplan from the xml files ... I get to the point that it doesn't work as I expect.
This is the only extension defined:
<context name="default"> <extension name="t38_transcode"> <condition field="sip_h_X-T38-Transcode" expresion="^True"/> <condition field="destination_number" expresion="^(\+1|1)([2-9]\d\d[2-9]\d{6})$">
<action application="set" data="fax_enable_t38=true"/> <action application="set" data="sip_execute_on_image=t38_gateway peer nocng"/> <action application="bridge" data="sofia/external/$1$2@proxy.server.tld"/>
</condition> </extension> </context>
I expect not to call the bridge app if there is no T38-Transcode header on the incoming INVITE request and if it is present ... that $1$2 will be filled ... but what I get on the traces is that any call fires the call to the bridge app and also that the dialled number is exactly $1$2 ... instead of the values they should have. I'm loading a minimal setup of modules, did I need to load someother one to get the conditions and the expresions to work on this simple dialplan?
My modules.conf.xml file:
<configuration name="modules.conf" description="Modules"> <modules>
<load module="mod_syslog"/> <load module="mod_logfile"/>
<load module="mod_event_socket"/> <load module="mod_sofia"/> <load module="mod_commands"/> <load module="mod_dptools"/> <load module="mod_spandsp"/> <load module="mod_tone_stream"/> <load module="mod_db"/> <load module="mod_xml_rpc"/> <load module="mod_expr"/> <load module="mod_dialplan_xml"/>
</modules> </configuration>
Best regards
____________________________________________________________ _____________ 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
Arrrrg, I see a typo more than a syntax problem... Does sublime have typo checkers? :P On Thu, May 18, 2017 at 7:41 AM, Raúl Alexis Betancor Santana < rbetancor@gmail.com> wrote:
I'll need to add the syntax check to my sublime editor
2017-05-18 15:41 GMT+01:00 Raúl Alexis Betancor Santana < rbetancor@gmail.com>:
:-P
2017-05-18 15:38 GMT+01:00 David Villasmil <david.villasmil.work@gmail.co m>:
"expression" is with 2 "s"... and that works for me ᐧ
Regards,
David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337 <+34%20669%2044%2083%2037>
On Thu, May 18, 2017 at 12:01 PM, Raúl Alexis Betancor Santana < rbetancor@gmail.com> wrote:
Now that I have solved the problem of loading the dialplan from the xml files ... I get to the point that it doesn't work as I expect.
This is the only extension defined:
<context name="default"> <extension name="t38_transcode"> <condition field="sip_h_X-T38-Transcode" expresion="^True"/> <condition field="destination_number" expresion="^(\+1|1)([2-9]\d\d[2-9]\d{6})$">
<action application="set" data="fax_enable_t38=true"/> <action application="set" data="sip_execute_on_image=t38_gateway peer nocng"/> <action application="bridge" data="sofia/external/$1$2@proxy.server.tld"/>
</condition> </extension> </context>
I expect not to call the bridge app if there is no T38-Transcode header on the incoming INVITE request and if it is present ... that $1$2 will be filled ... but what I get on the traces is that any call fires the call to the bridge app and also that the dialled number is exactly $1$2 ... instead of the values they should have. I'm loading a minimal setup of modules, did I need to load someother one to get the conditions and the expresions to work on this simple dialplan?
My modules.conf.xml file:
<configuration name="modules.conf" description="Modules"> <modules>
<load module="mod_syslog"/> <load module="mod_logfile"/>
<load module="mod_event_socket"/> <load module="mod_sofia"/> <load module="mod_commands"/> <load module="mod_dptools"/> <load module="mod_spandsp"/> <load module="mod_tone_stream"/> <load module="mod_db"/> <load module="mod_xml_rpc"/> <load module="mod_expr"/> <load module="mod_dialplan_xml"/>
</modules> </configuration>
Best regards
____________________________________________________________ _____________ 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/free switch-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
_________________________________________________________________________ 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
You just need an english checker :) On Thu, May 18, 2017 at 4:46 PM Joel Serrano <joel@gogii.net> wrote:
Arrrrg, I see a typo more than a syntax problem... Does sublime have typo checkers? :P
On Thu, May 18, 2017 at 7:41 AM, Raúl Alexis Betancor Santana < rbetancor@gmail.com> wrote:
I'll need to add the syntax check to my sublime editor
2017-05-18 15:41 GMT+01:00 Raúl Alexis Betancor Santana < rbetancor@gmail.com>:
:-P
2017-05-18 15:38 GMT+01:00 David Villasmil < david.villasmil.work@gmail.com>:
"expression" is with 2 "s"... and that works for me ᐧ
Regards,
David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337 <+34%20669%2044%2083%2037>
On Thu, May 18, 2017 at 12:01 PM, Raúl Alexis Betancor Santana < rbetancor@gmail.com> wrote:
Now that I have solved the problem of loading the dialplan from the xml files ... I get to the point that it doesn't work as I expect.
This is the only extension defined:
<context name="default"> <extension name="t38_transcode"> <condition field="sip_h_X-T38-Transcode" expresion="^True"/> <condition field="destination_number" expresion="^(\+1|1)([2-9]\d\d[2-9]\d{6})$"> <action application="set" data="fax_enable_t38=true"/> <action application="set" data="sip_execute_on_image=t38_gateway peer nocng"/> <action application="bridge" data="sofia/external/$1$2@proxy.server.tld"/> </condition> </extension> </context>
I expect not to call the bridge app if there is no T38-Transcode header on the incoming INVITE request and if it is present ... that $1$2 will be filled ... but what I get on the traces is that any call fires the call to the bridge app and also that the dialled number is exactly $1$2 ... instead of the values they should have. I'm loading a minimal setup of modules, did I need to load someother one to get the conditions and the expresions to work on this simple dialplan?
My modules.conf.xml file:
<configuration name="modules.conf" description="Modules"> <modules>
<load module="mod_syslog"/> <load module="mod_logfile"/>
<load module="mod_event_socket"/> <load module="mod_sofia"/> <load module="mod_commands"/> <load module="mod_dptools"/> <load module="mod_spandsp"/> <load module="mod_tone_stream"/> <load module="mod_db"/> <load module="mod_xml_rpc"/> <load module="mod_expr"/> <load module="mod_dialplan_xml"/>
</modules> </configuration>
Best regards
_________________________________________________________________________ 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
_________________________________________________________________________ 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
Could do it, if you have a completion plugging for the syntax file ... 2017-05-18 15:45 GMT+01:00 Joel Serrano <joel@gogii.net>:
Arrrrg, I see a typo more than a syntax problem... Does sublime have typo checkers? :P
On Thu, May 18, 2017 at 7:41 AM, Raúl Alexis Betancor Santana < rbetancor@gmail.com> wrote:
I'll need to add the syntax check to my sublime editor
2017-05-18 15:41 GMT+01:00 Raúl Alexis Betancor Santana < rbetancor@gmail.com>:
:-P
2017-05-18 15:38 GMT+01:00 David Villasmil < david.villasmil.work@gmail.com>:
"expression" is with 2 "s"... and that works for me ᐧ
Regards,
David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337 <+34%20669%2044%2083%2037>
On Thu, May 18, 2017 at 12:01 PM, Raúl Alexis Betancor Santana < rbetancor@gmail.com> wrote:
Now that I have solved the problem of loading the dialplan from the xml files ... I get to the point that it doesn't work as I expect.
This is the only extension defined:
<context name="default"> <extension name="t38_transcode"> <condition field="sip_h_X-T38-Transcode" expresion="^True"/> <condition field="destination_number" expresion="^(\+1|1)([2-9]\d\d[2-9]\d{6})$">
<action application="set" data="fax_enable_t38=true"/> <action application="set" data="sip_execute_on_image=t38_gateway peer nocng"/> <action application="bridge" data="sofia/external/$1$2@proxy.server.tld"/>
</condition> </extension> </context>
I expect not to call the bridge app if there is no T38-Transcode header on the incoming INVITE request and if it is present ... that $1$2 will be filled ... but what I get on the traces is that any call fires the call to the bridge app and also that the dialled number is exactly $1$2 ... instead of the values they should have. I'm loading a minimal setup of modules, did I need to load someother one to get the conditions and the expresions to work on this simple dialplan?
My modules.conf.xml file:
<configuration name="modules.conf" description="Modules"> <modules>
<load module="mod_syslog"/> <load module="mod_logfile"/>
<load module="mod_event_socket"/> <load module="mod_sofia"/> <load module="mod_commands"/> <load module="mod_dptools"/> <load module="mod_spandsp"/> <load module="mod_tone_stream"/> <load module="mod_db"/> <load module="mod_xml_rpc"/> <load module="mod_expr"/> <load module="mod_dialplan_xml"/>
</modules> </configuration>
Best regards
____________________________________________________________ _____________ 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/free switch-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/free switch-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
_________________________________________________________________________ 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
participants (4)
-
Alfonso Pinto
-
David Villasmil
-
Joel Serrano
-
Raúl Alexis Betancor Santana