:-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