I tried several variations of dialplans without success and was hoping someone could help me, the call stablishes in G711 and I could not find a way to switch to t38.
<condition field="destination_number" expression=".*" break="on-true">
<action application="set" data="fax_enable_t38=true"/>
<action application="set" data="execute_on_answer=t38_gateway peer"/>
<action application="set" data="hangup_after_bridge=true"/>
<action application="set" data="progress_timeout=10"/>
<action application="set" data="effective_caller_id_name=0000"/>
<action application="set" data="effective_caller_id_number=0000"/>
<action application="set" data="execute_on_answer=sched_hangup +9000 alloted_timeout"/>
<action application="bridge" data="sofia/testfax/
1234@1.2.3.4"/>
</condition>
Thank you,
Wesley Akio