[Freeswitch-users] Transfering Attended Call

Luiz Fernando Softov fernando at softov.com.br
Tue Mar 24 10:36:53 MSK 2015


Hi... First of all i make a software with freeswitch and FreeBSD, named
Voipr...

voipr.brbyte.com

It's a softswitch with Billing, Redirect, IVR, Routes, GSM, Gateway and
other things.

I am not using dialplan, just a outbound socket, with my own ESL Server
written in C.
I parse the events, and send comands back to make things. Like bridge, play
some music, hangup the call....

<extension name="VoiprExt">
    <condition>
        <action application="socket" data="127.0.0.1:3012 async full"/>
        <action application="hangup"/>
    </condition>
</extension>

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

My question, is how to make a transfer of a call...

Like A (1001) call to B (1002).

Then i make a BRIDGE between extensions

"execute", "set", "dialed_extension=1002"
"execute", "export", "dialed_extension=1002"
"execute", "set", "call_timeout=30"
"execute", "set", "continue_on_fail=true"
"execute", "set", "park_after_bridge=true"
"execute", "bridge", "user/${dialed_extension}"

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

Let's say B (1002) is a secretary who want to transfer the call to C (1003)

B (1002), press the key [*], and i play a music, like "enter the desired
number and #".

B (1002), press the keys 1003#

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

At this point, I have all information, and want to know how 3 things

Consider that: the call already bridged between A (1001) and B (1002)

- - - - -
1 - Making a call between B and C.
Then, when C answer B hangup. And the call return between A and C.


- - - - -
2 - Making a call between B and C.
Then, when C answer, B talks with C. B press * and B hangup.
And the call return between A and C


- - - - -
3 - Making a call between A and C.
Then, when C answer, A hangup.
And the call return to B and C


Thank you in advance, who can help me.

Sorry for my english.
If anyone need help with socket events, gsmopen or xml_curl send me a
e-mail. I will be happy to help.

Att,
Luiz Fernando Softov
http://www.softov.com.br
fernando at softov.com.br
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20150324/820bb58d/attachment.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list