[Freeswitch-users] Conference Setup

Deepika Yadav deepikay at iiitd.ac.in
Tue Apr 19 15:55:56 MSD 2016


Hi All,

I want to set up a conference initiated from a python esl script.
My Dialplans are:

<extension name="conf_demo">
<condition field="destination_number" expression="^9099$">
<action application="conference"
data="radioHealth_${strftime(%Y-%m-%d)}+flags{endconf}"/>
</condition>

<extension name="conf_demo">
<condition field="destination_number" expression="^9098$">
<action application="conference"
data="radioHealth_${strftime(%Y-%m-%d)}+flags{mute}"/>
</condition>

Python script snippets:

Calling the first person in unmute mode :

freeswitchcon =  ESL.ESLconnection('127.0.0.2', '8021', 'ClueCon')

freeswitchcon.api("originate","sofia/gateway/MySIP/91XXXXXXXXXX+"
&conference(9099)"

Calling the second persion

freeswitchcon.api("originate","sofia/gateway/MySIP/91XXXXXXXXXX+"
&conference(radioHealth_${strftime(%Y-%m-%d)}+flags{mute})"

Two outbound calls are created but these are not bridged, I can't hear the
voice of first person

I tried bridge flags

<extension name="conf_demo">
<condition field="destination_number" expression="^9098$">
<action application="conference" data="bridge
:radioHealth_${strftime(%Y-%m-%d)}+flags{mute}"/>
</condition>

 not sure if it is the correct way.

I also tried calling from SIP internal account :

freeswitchcon.api("originate","sofia/internal/1004 at X>X.X.X.X:5080 4446")

where 4446 transfers a call to the conference dialplan and called other
members from the script to add them in the conference

but in this case, I get logs as:

switch_channel.c:1055 New Channel loopback/app=voicemail:default X.X.X.X
1004-

 loopback/app=voicemail:default X.X.X.X 1004-a setup codec opus/

and conference is not setup

Any help would be appreciated

Regards,
Deepiak
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20160419/f626f4a0/attachment.html 


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