[Freeswitch-users] 3-user conference from 2-user call

lorentz.nails lorentz.nails at gmail.com
Thu Apr 5 13:40:52 MSD 2012


I would like to create a 3-user conference from a 2-user call (bridge)
without calling the third user twice.

The scenario is the following:
1. user 1000 calls user 1001 (that responds);
2. user 1001 may decide to create a 3-user conference by transferring the
execution to an extension that use conference_set_auto_outcall to invite
user 1002 and create the conference.

<action application="bind_meta_app" data="3 b s execute_extension::cf XML
features"/>

<extension name="cf">
    <condition field="destination_number" expression="^cf$">
        <action application="answer"/>
        <action application="transfer" data="-both 3000 XML default"/>
    </condition>
</extension>

<extension name="nb_conferences">
    <condition field="destination_number" expression="^(3000)$">
        <action application="answer"/>
        <action application="set"
data="conference_auto_outcall_timeout=20"/>
        <action application="set"
data="conference_auto_outcall_flags=none"/>
        <action application="set"
data="conference_auto_outcall_caller_id_name=${effective_caller_id_name}"/>
        <action application="set"
data="conference_auto_outcall_caller_id_number=${effective_caller_id_number}"/>
        <action application="set"
data="conference_auto_outcall_profile=default"/>
        <action application="conference_set_auto_outcall" data="user/1002@
${domain}"/>
        <action application="conference" data="$1 at default"/>
    </condition>
</extension>

At this point user 1002 receive two simultaneous calls: one from user 1000
and one from user 1001 (I'm using softphones).

The behavior I would like to achieve is that user 1002 only gets one call
from user 1001 or from the conference.


Lorentz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20120405/0b66dc65/attachment.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list