[Freeswitch-users] Conference Caller Announce

Peter Stevens Peter.Stevens at bbc.co.uk
Mon Jun 18 17:38:39 MSD 2012


Hi Brian,
 
I was able to replicate your conference not found problem (purely by accident) and after a bit of investigation I think that I have probably found an answer to your problem.

In my case the last 4 digits of the extension number were 3000 (<condition field="destination_number" expression="^55(3\d\d\d)$">)
The last 4 digits become the value of $1 in this part of the res line ($1-${domain}) and also in the transfer line. So when the transfer occurs, the dialplan gets searched again but this time for a conference extension of 3000, which just happens to be one of the default conference numbers in the default.xml file (first 2 lines only):
<extension name="nb_conferences">
 <condition field="destination_number" expression="^(30\d{2})$">
 
and so it finds this extension (which I have in my dialplan) when the dialplan gets searched again.
 
I checked that this was the case, by changing the last 4 digits of my extension number to 3100 - which is the number for the wb_conferences in the same default.xml (which I have in my dialplan) and sure enough, it switches to that.
One more test confirmed this.
I don't have a conference number of 32xx in my dialplan. But by dialling 553200, the number gets picked up, it says the conference is being transferred, but is not found, so it bombs out. I think that if there is no
extension number that matches $1 in your dial plan, then it will fail to transfer
 
This might be worth trying: ensure that you have a conference number that matches your value of $1 in the destination number for your extension, but see if it works for you.

Maybe pop this INFO line into your dialplan, just to check the value of $1:

     <action application="log" data="INFO the dollar 1 value is: $1"/>
 
Not sure if there is a mechanism to reset the value of $1 (destination_number) after the extension has been picked up, but this time to point to the conference extension number required if different from the original destination number?
 
Let us know if this works and also if your audio gets played. My audio is still not playing as yet....
 
Peter

________________________________

From: Brian Meaney [mailto:brian.meaney at BSB.IE]
Sent: Sun 17/06/2012 17:32
To: FreeSWITCH Users Help
Subject: Re: [Freeswitch-users] Conference Caller Announce


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> 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 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] 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> 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] 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> 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 <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
	http://www.freeswitchsolutions.com <http://www.freeswitchsolutions.com/> 
	
	
	 </> 
	
	Official FreeSWITCH Sites
	http://www.freeswitch.org <http://www.freeswitch.org/> 
	http://wiki.freeswitch.org <http://wiki.freeswitch.org/> 
	http://www.cluecon.com <http://www.cluecon.com/> 
	
	Join Us At ClueCon - Aug 7-9, 2012
	
	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 <http://www.freeswitch.org/> 
	

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.
					
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20120618/e2291237/attachment-0001.html 


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