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