[Freeswitch-users] att_xfer+loopback

x y fs_ask_sy at citromail.hu
Fri Nov 7 00:03:34 PST 2008


            Hi!

Thanks for the fast answer. Of course, there is user/${username}@${domain} in the config, i was just lazy or tired, so i forgot the @${domain}. So, here is the part of the config.

    <extension name="668([0-9]{4})">

      <condition field="destination_number" expression="^668([0-9]{4})$">

        <action application="bind_meta_app" data="2 b s execute_extension::xfer XML default"/>

        <action application="bind_meta_app" data="1 b s execute_extension::att_xfer XML default"/>

        <action application="bridge" data="user/$1@${domain}"/>

      </condition>

    </extension>



    <extension name="att_xfer">

      <condition field="destination_number" expression="^att_xfer$">

        <action application="read" data="1 15
/opt/freeswitch/sounds/en/us/callie/misc/8000/transfer1.wav
callednumber 4000 #"/>

        <action application="att_xfer" data="user/${callednumber}@${domain}"/>

      </condition>

    </extension>


------------------------------------------------------------------------

or for the loopback:
------------------------------------------------------------------------


    <extension name="att_xfer">
      <condition field="destination_number" expression="^att_xfer$">
        <action application="read" data="1 15 /opt/freeswitch/sounds/en/us/callie/misc/8000/transfer1.wav callednumber 4000 #"/>
        <action application="att_xfer" data="loopback/669${callednumber}"/>
      </condition>
    </extension>
    

    <extension name="connect_extension">
      <condition field="destination_number" expression="^669([0-9]{4})$">
        <action application="bridge" data="user/$1@${domain}"/>
      </condition>
    </extension>

The connect_extension just simulates that, we execute something in the dialplan.
The rest is the defult config.
Btw, the xfer is a transfer with loopback channel, and it works fine.

Cheers,
Viktor
-- Eredeti üzenet --
Feladó: Brian West <brian at freeswitch.org>Címzett: freeswitch-users at lists.freeswitch.orgMásolat: Elküldve: 2008.11.06  17:58Téma: Re: [Freeswitch-users] att_xfer+loopback

Viktor, For the user channel its user/user at domain.com  ... as for the rest can you show me your entire config?
http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_att_xfer
/b
On Nov 6, 2008, at 9:45 AM, x y wrote:Hi!

I'm new to freeswitch, and I'm trying to make an att_xfer in a dialplan, but instead of giving a sofia/${domain}/${called_number} as <channel url>, i would like to use a loopback/${called_number}, because i would like to transfer the call not just to different extensions. Is there any way to achive this? When i'm trying to do this like that:

<action application="att_xfer" data="loopback/${callednumber}"/>

in a A-call->B-att_xfer->C situation, A gets hanged up, as soon as the bridge has been estabilished between B and C.

Btw, i have tryed out att_xfer by giving user/${legal_user} as <channel url>. I've found att_xfer this way a kind of instable, sometimes it worked perfectly, sometimes not: A and C did not hang up, but there weren't succesfully connected (1 time from 10). The log printed the same at both cases.

Cheers:
Viktor

_______________________________________________
 Freeswitch-users mailing list
 Freeswitch-users at lists.freeswitch.org
 http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
 UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
 http://www.freeswitch.org
 





Hirdetés (x)      

Váltson most olcsóbb kötelezőre a biztosítás-hu-val. www.biztositas.hu - a kötelező biztosítások kiindulópontja!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20081107/44f9d52b/attachment-0002.html 


More information about the FreeSWITCH-users mailing list