[Freeswitch-users] DTMF

Tihomir Culjaga tculjaga at gmail.com
Fri May 19 11:53:55 UTC 2017


and for you my friend its like this:

   <extension name="OUTGOING_PSTN">
     <condition field="destination_number" expression="^([0-9]\d\d\d\d+)$">
       <action application="set"
data="effective_caller_id_number=${e164_caller_id}"/>
       <action application="set"
data="effective_caller_id_name=${e164_caller_id}"/>


       <action application="set" data="bind_meta_key=*"/>
       <action application="bind_meta_app" data="4 a s
execute_extension::att_xfer XML features"/>

       <action application="log" data="INFO execute info on B-leg"/>
       <action application="export"
data="nolocal:execute_on_answer=execute_extension EVALUATE_DTMF XML
default"/>

       <action application="bridge"
data="sofia/gateway/siptg-03/${dest_local}"/>
       <action application="hangup"/>
     </condition>
   </extension>


   <extension name="EVALUATE_DTMF">
     <condition field="destination_number" expression="^EVALUATE_DTMF$"/>
      <condition field="${switch_r_sdp}"
expression="a=rtpmap:(\d+)\stelephone-event/8000" break="never">
        <action application="set" data="rtp_payload_number=$1"/>
        <action application="log" data="INFO rfc2833 - on
profile:[${sofia_profile_name}]"/>
        <anti-action application="spandsp_start_dtmf"/>
        <anti-action application="log" data="INFO InBand - on
profile:[${sofia_profile_name}]"/>
     </condition>
   </extension>








On 19 May 2017 at 13:41, Tihomir Culjaga <tculjaga at gmail.com> wrote:

> well, this solved my issue :=)
>
>     <extension name="DTMF" continue="true">
>       <condition field="${switch_r_sdp}" expression="a=rtpmap:(\d+)\stelephone-event/8000"
> break="never">
>         <action application="set" data="rtp_payload_number=$1"/>
>         <action application="log" data="INFO rfc2833 - on
> profile:[${sofia_profile_name}]"/>
>         <anti-action application="spandsp_start_dtmf"/>
>         <anti-action application="log" data="INFO InBand - on
> profile:[${sofia_profile_name}]"/>
>       </condition>
>     </extension>
>
>
> not the best practice mode but for now, i can accept InBand DTMF
>
>     <extension name="Force_inBand_DTMF" continue="true">
>       <condition field="${sofia_profile_name}" expression="myPROFILENAME"
> break="never">
>         <action application="spandsp_start_dtmf"/>
>         <action application="log" data="INFO Forcing InBand DTMF on
> profile:[${sofia_profile_name}]"/>
>       </condition>
>     </extension>
>
>
>
>
> On 19 May 2017 at 13:11, Tihomir Culjaga <tculjaga at gmail.com> wrote:
>
>> hello FS uses,
>>
>>
>> On incoming calls, i got a carrier that advertises rfc2833
>> (telephone-event) while supporting inBand DTMF only.
>>
>> is there a chance FreeSWITCH can ignore telephone-event for incoming
>> calls from a specific gateway ( profile ) and switch to inBand ?
>>
>>
>> Regards,
>> T.
>>
>>
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20170519/a0fbbc22/attachment.html 


More information about the FreeSWITCH-users mailing list