[Freeswitch-users] About att_xfer on caller leg

王聡 cong.wang.itsherpa at gmail.com
Mon Jun 15 05:13:43 UTC 2020

Hey all,

I’m trying call transfer function in freeswitch using att_xfer app, the dialplan looks like:

    <extension name="att_xfer">
     <condition field="destination_number" expression="^att_xfer$">
       <action application="read" data="3 6 'tone_stream://%(10000,0,350,440)' digits 300000 #"/>
       <action application="set" data="origination_cancel_key=#"/>
       <action application="set" data="attxfer_cancel_key=#"/>
       <action application="set" data="attxfer_hangup_key=*"/>
       <action application="set" data="attxfer_conf_key=0"/>
       <action application="set" data="ringback=%(2000,4000,440.0,480.0)"/>
       <action application="att_xfer" data="user/${digits}"/>

    <extension name=“inbound_call”>
      <action application="bind_meta_app" data="4 b s execute_extension::att_xfer XML features”/>
    <extension name=“outbound_call”>
      <action application="bind_meta_app" data="4 a s execute_extension::att_xfer XML features”/>

The transfer should work on receiver leg in inbound call and caller leg in outbound call when I push *4, and it works correctly in my test.
But an annoying problem occurred. When I tried to hangup after transfer(set as *) in outbound call, the transferred user would not hangup correctly and turned into a 3-way call.
I had considered if my dialplan has some problems, but the same function works well in inbound call and transferred user could hangup after a *.

Any suggestion about this problem would be appreciated.


P.S.: System Information:
FreeSWITCH: Version 1.8.7+git~20190702T200609Z~6047ebddfc~64bit (git 6047ebd 2019-07-02 20:06:09Z 64bit)
PBX: Asterisk 15.7.4
Client: Bria 5
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20200615/cc160ce4/attachment.html>

More information about the FreeSWITCH-users mailing list