[Freeswitch-users] Conference Caller Announce

Brian Meaney brian.meaney at BSB.IE
Sun Jun 17 20:32:12 MSD 2012


Hi Peter and thank you for your input. Glad to hear somebody else is searching for answers to this. Hopefully we can help one another with resolving the issue!

I have already defined the conference profile within the conference XML file, so I assume that's all that's required to put the caller into the conference.

If I discover anything I'll be sure to update this thread.

On 17 Jun 2012, at 17:16, "Peter Stevens" <Peter.Stevens at bbc.co.uk<mailto:Peter.Stevens at bbc.co.uk>> wrote:

Hi Brian,

I've also been looking at this particular example this week and also posted a question! See [Freeswitch-users] Problem passing and playing audio files into a conference.

Mine will transfer into the default conference (using conference $1-${domain} in the res line below, but not play the files parsed into the res line.

My guess with yours is that you are specifying conference$1 at conference_2<mailto:conference$1 at conference_2> in the res line. I think that it expects to find a conference_2 profile in the conference.conf.xml file, so if you don't have that it might well bomb out.
The other thing that you may also find is that with your existing res line in the debug log you may also be getting [res]=[UNDEF]
The only way I could get it not to produce this was to add a left brace after sched_api and a right brace after the last audio file to be parsed in the res line, as here:

<action application="set" data="res=${sched_api (+2 none conference $1-${domain} play file_string://${sound_prefix}/conference/8000/conf-welcome.wav!${sound_prefix}/conference/8000/conf-has_joined.wav)}"/>
I hope that this helps you and maybe you and/or someone else might be able to help me with the audio files being played once the conference starts.

Peter


________________________________
From: Brian Meaney [mailto:brian.meaney at BSB.IE]
Sent: Sat 16/06/2012 11:21
To: FreeSWITCH Users Help
Subject: Re: [Freeswitch-users] Conference Caller Announce

Thanks MC,

 Here it is:-

<extension name="main_number_11" continue="true">
      <condition field="destination_number" expression="^(xxxxxxxxxxx)$">
        <action application="export" data="hold_music=silence"/>
        <action application="set" data="namefile=/tmp/${uuid}-name.wav" inline="true"/>
        <action application="answer"/>
        <action application="sleep" data="1000"/>
        <action application="playback" data="conference/conf-welcome.wav"/>
        <action application="sleep" data="1000"/>
        <action application="playback" data="voicemail/vm-record_name1.wav"/>
        <action application="playback" data="tone_stream://%(1000,0,500)"/>
        <action application="record" data="${namefile} 1"/>
        <action application="playback" data="ivr/ivr-call_being_transferred.wav"/>
        <action application="set" data="res=${sched_api +1 none conference $1 at conference_2 play file_string://${namefile}!conference/conf-has_joined.wav}"/>
        <action application="transfer" data="$1 XML default"/>
      </condition>
    </extension>

From: freeswitch-users-bounces at lists.freeswitch.org<mailto:freeswitch-users-bounces at lists.freeswitch.org> [mailto:freeswitch-users-bounces at lists.freeswitch.org] On Behalf Of Michael Collins
Sent: 15 June 2012 23:00
To: FreeSWITCH Users Help
Subject: Re: [Freeswitch-users] Conference Caller Announce

Show us the dialplan code where you put the caller into the conference.
-MC
On Fri, Jun 15, 2012 at 11:21 AM, Brian Meaney <brian.meaney at bsb.ie<mailto:brian.meaney at bsb.ie>> wrote:
Hi and thanks for your response. I altered the expression to include parentheses, and the number is successfully picked up. I also attempted to simplify the ‘res’ expression by using $1-{domain}
However, it still wont connect to the conference. Sophia output is now:-

2012-06-15 18:12:53.303084 [DEBUG] mod_commands.c:3092 Command conference(35319017881-192.168.3.178 play file_string:///tmp/799d7748-e75b-425c-bccd-1e6632eacc72-name.wav!conference/conf-has_joined.wav):
Conference 35319017881-192.168.3.178 not found

Its clear my issue is now with how the ‘res’ statement should be formed. I now have:-

<action application="set" data="res=${sched_api +1 none conference $1 at conference_2 play file_string://${namefile}!conference/conf-has_joined.wav}"/>

How should I construct the statement such that it connects the caller to the conference named conference_2 ? Should I even be referencing the conference name, seeing as I already have the expression matching in place earlier in the definition?





From: freeswitch-users-bounces at lists.freeswitch.org<mailto:freeswitch-users-bounces at lists.freeswitch.org> [mailto:freeswitch-users-bounces at lists.freeswitch.org<mailto:freeswitch-users-bounces at lists.freeswitch.org>] On Behalf Of Michael Collins
Sent: 15 June 2012 18:43
To: FreeSWITCH Users Help
Subject: Re: [Freeswitch-users] Conference Caller Announce

As best I can tell it looks like this line is the problem:
<condition field="destination_number" expression="^xxxxxxxxxxx$">

You need to wrap the capture value in parens like this:
<condition field="destination_number" expression="^(xxxxxxxxxxx)$">

That should make $1 have something useful in it.

-MC
On Fri, Jun 15, 2012 at 10:08 AM, Bobthebeat <brian.meaney at bsb.ie<mailto:brian.meaney at bsb.ie>> wrote:
Hi Folks,

 brand new Freeswitch user here.

I have modified the example shown on the mod_conference
(http://wiki.freeswitch.org/wiki/Mod_conference#FAQ) wiki for my own
deployment.

I am attempting to have a user record his name, then have this recording
announced on joining the conference, but I am struggling. Here is my
dialplan entry:-


<extension name="main_number_11" continue="true">
     <condition field="destination_number" expression="^xxxxxxxxxxx$">
       <action application="export" data="hold_music=silence"/>
       <action application="set" data="namefile=/tmp/${uuid}-name.wav"
inline="true"/>
       <action application="answer"/>
       <action application="sleep" data="1000"/>
       <action application="playback" data="conference/conf-welcome.wav"/>
       <action application="sleep" data="1000"/>
       <action application="playback"
data="voicemail/vm-record_name1.wav"/>
       <action application="playback" data="tone_stream://%(1000,0,500)"/>
       <action application="record" data="${namefile} 1"/>
       <action application="playback"
data="ivr/ivr-call_being_transferred.wav"/>
       <action application="set" data="res=${sched_api +1 none conference
$1-${domain_name}@conference_2 play
file_string://${namefile}!conference/conf-has_joined.wav}"/>
       <action application="transfer" data="$1 XML default"/>
     </condition>
   </extension>

The call connects and I am prompted to record, then I am notified of the
imminent transfer, but it bombs out here. Sophia output reads

Command conference($1-192.168.3.178 at conference_2 play
file_string:///tmp/b34c9679-9fdb-4934-a1d9-dd4b646c88e2-name.wav!conference/conf-has_joined.wav):
Conference $1-192.168.3.178 at conference_2 not found

I can dial into the conference without issues when I disregard the 'Set'
expression and just dial the conference directly.

Can anybody point me in the right direction?
Thank you very much,
B
P Please consider the environment before printing this email


http://www.bbc.co.uk
This e-mail (and any attachments) is confidential and may contain personal views which are not the views of the BBC unless specifically stated.
If you have received it in error, please delete it from your system.
Do not use, copy or disclose the information in any way nor act in reliance on it and notify the sender immediately.
Please note that the BBC monitors e-mails sent or received.
Further communication will signify your consent to this.
_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting at freeswitch.org<mailto:consulting at freeswitch.org>
http://www.freeswitchsolutions.com




Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.freeswitch.org
http://www.cluecon.com

Join Us At ClueCon - Aug 7-9, 2012

FreeSWITCH-users mailing list
FreeSWITCH-users at lists.freeswitch.org<mailto: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


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20120617/724dc66b/attachment-0001.html 


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