<div dir="ltr"><br><div>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.</div><div><br></div><div>This is the only extension defined:</div><div><br></div><div><span style="font-family:monospace"><span style="color:rgb(0,0,0)"><context name="default">
</span><br> <extension name="t38_transcode">
<br> <condition field="sip_h_X-T38-Transcode" expresion="^True"/>
<br> <condition field="destination_number" expresion="^(\+1|1)([2-9]\d\d[2-9]\d{6})$">
<br> <action application="set" data="fax_enable_t38=true"/>
<br> <action application="set" data="sip_execute_on_image=t38_gateway peer nocng"/>
<br> <action application="bridge" data="sofia/external/$1$2@proxy.server.tld"/>
<br> </condition>
<br> </extension>
<br></context><br></span></div><div><br></div><div>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.</div><div>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?</div><div><br></div><div>My modules.conf.xml file:</div><div><br></div><div><span style="font-family:monospace"><span style="color:rgb(0,0,0)"><configuration name="modules.conf" description="Modules">
</span><br> <modules>
<br>
<br> <load module="mod_syslog"/>
<br> <load module="mod_logfile"/>
<br>
<br> <load module="mod_event_socket"/>
<br> <load module="mod_sofia"/>
<br> <load module="mod_commands"/>
<br> <load module="mod_dptools"/>
<br> <load module="mod_spandsp"/>
<br> <load module="mod_tone_stream"/>
<br> <load module="mod_db"/>
<br> <load module="mod_xml_rpc"/>
<br> <load module="mod_expr"/>
<br> <load module="mod_dialplan_xml"/>
<br>
<br> </modules>
<br></configuration></span></div><div><span style="font-family:monospace"><br></span></div><div><span style="font-family:monospace">Best regards<br>
<br></span></div></div>