Transfer Call Feature

306 views
Skip to first unread message

Leandro Campos

unread,
Jan 11, 2019, 2:05:34 PM1/11/19
to ASTPP
Hi,

I am trying add a transfer call feature. I check and the Freeswitch has a default feature, but I can't find how I will use.

I add this: table.insert(xml, [[<action application="bind_meta_app" data="3 a a execute_extension::dx XML features"/>]]); to astpp.xml.lua dialplan.

With XML features, shows a error on log: mod_dialplan_xml.c:667 Context features not found
If I change to XML default the *3 bind works, but the extension DX never are executed.

I put a features.xml with below code on /usr/local/freeswitch/conf/autoload_configs:

<include>
  <context name="features">
<extension name="dx">
      <condition field="destination_number" expression="^dx$">
        <action application="answer"/>
        <action application="read" data="11 11 'tone_stream://%(10000,0,350,440)' digits 5000 #"/>
        <action application="execute_extension" data="is_transfer XML features"/>
      </condition>
    </extension>
    <extension name="att_xfer">
     <condition field="destination_number" expression="^att_xfer$">
       <action application="read" data="3 4 'tone_stream://%(10000,0,350,440)' digits 30000 #"/>
       <action application="set" data="origination_cancel_key=#"/>
       <action application="att_xfer" data="user/${digits}@$${domain}"/>
      </condition>
    </extension>
 <extension name="attended_xfer">
   <condition field="destination_number" expression="^attended_xfer$">
     <action application="set" data="continue_on_fail=true"/>
     <action application="read" data="3 4 ivr/ivr-enter_ext.wav attxfer_callthis 30000 #"/>
     <action application="set" data="attxfer_cancel_key=#"/>
     <action application="set" data="attxfer_hangup_key=*"/>
     <action application="set" data="attxfer_conf_key=0"/>
     <action application="att_xfer" data="user/${attxfer_callthis}@${domain_name}"/>
   </condition>
 </extension>
    <extension name="cf">
      <condition field="destination_number" expression="^cf$">
        <action application="answer"/>
        <action application="transfer" data="-both 30${dialed_extension:2} XML default"/>
      </condition>
    </extension>
    <extension name="please_hold">
      <condition field="destination_number" expression="^(10[01][0-9])$">
        <action application="set" data="transfer_ringback=$${hold_music}"/>
        <action application="answer"/>
        <action application="sleep" data="1500"/>
        <action application="playback" data="ivr/ivr-hold_connect_call.wav"/>
        <action application="transfer" data="$1 XML default"/>
      </condition>
    </extension>
    <extension name="is_zrtp_secure" continue="true">
      <condition field="${zrtp_secure_media_confirmed}" expression="^true$">
        <action application="sleep" data="1000"/>
        <action application="playback" data="misc/call_secured.wav"/>
        <anti-action application="eval" data="not_secure"/>
      </condition>
    </extension>
    <extension name="is_secure" continue="true">
      <!-- Only Truly consider it secure if its TLS and SRTP -->
      <condition field="${sip_via_protocol}" expression="tls"/>
      <condition field="${rtp_secure_media_confirmed}" expression="^true$">
        <action application="sleep" data="1000"/>
        <action application="playback" data="misc/call_secured.wav"/>
        <anti-action application="eval" data="not_secure"/>
      </condition>
    </extension>
  </context>
</include>

Samir Doshi

unread,
Jan 12, 2019, 2:00:39 AM1/12/19
to ASTPP
Do you want to transfer call to any specific destination or want to allow user to dial the number after pressing *2 or transfer feature code? 

Thanks,

Samir Doshi

iNextrix Technologies Pvt. Ltd.

https://www.inextrix.com

https://www.astppbilling.org


Disclaimer:

The information contained in this communication is confidential and may be legally privileged. It is intended solely for the use of the individual or entity to whom it is addressed and others authorized to receive it. If you are not the intended recipient you are hereby notified that any disclosure, copying, distribution or taking action in reliance on the contents of this information is strictly prohibited and may be unlawful. Please notify the sender immediately and destroy all copies of this message and any attachments contained in it.


Mailtrack Sender notified by
Mailtrack 01/12/19, 12:29:56 PM

--
=====================================================================
Please motivate us by contributing little here: https://www.indiegogo.com/projects/astpp-open-source-voip-billing-solution
 
Documentation: https://astpp.readthedocs.io/
Please contact at sa...@inextrix.com for commercial support.
---
You received this message because you are subscribed to the Google Groups "ASTPP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to astpp+un...@googlegroups.com.
To post to this group, send email to as...@googlegroups.com.
Visit this group at https://groups.google.com/group/astpp.
To view this discussion on the web visit https://groups.google.com/d/msgid/astpp/e57cb9fa-20a9-40dc-81f9-94b23975445f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Leandro Campos

unread,
Jan 12, 2019, 11:46:38 AM1/12/19
to as...@googlegroups.com
I want to allow user transfer call after pressing *2.
The bind command works, but dont go to extension will make the transfer call.


Atenciosamente,



Reply all
Reply to author
Forward
0 new messages