XML
<extension name="inbound_to_cell_with_dtmf_control">
<condition field="destination_number" expression="^1000$">
<!-- Start in-band DTMF detection on the cell phone leg upon answer -->
<action application="export" data="nolocal:execute_on_answer=start_dtmf"/>
<!-- Bind DTMF digit sequences on the cell phone (B-leg) -->
<!-- Pressing *1 transfers the caller to extension 2000 in the default context -->
<action application="export" data="nolocal:bind_digit_action=cell_controls,*1,exec:transfer,2000 XML default,b,s"/>
<!-- Pressing *2 parks the caller in the call park context/valet park -->
<action application="export" data="nolocal:bind_digit_action=cell_controls,*2,exec:transfer,5555 XML default,b,s"/>
<!-- Enable the digit binding group for the call session -->
<action application="export" data="nolocal:digit_action_set_realm=cell_controls"/>
<!-- Dial the external cell phone number via your provider trunk -->
<action application="bridge" data="sofia/gateway/my_provider_trunk/15551234567"/>
</condition>
</extension>