Meetme with background music

jsree
Posts: 50
Member Since:
2006-12-25

Hi

Like to have a meetme feature with music on background.. ie the music will be very low volume. or one the meetme participant shound be music-on-hold app, is that possible?

Any other suggestions or hints.

Thanks in Advance

jay



dickson
Posts: 1831
Member Since:
2006-06-02
Do you mean you want to have

Do you mean you want to have music playing during a meeting? Or just when people are waiting for the meeting bridge to start



jsree
Posts: 50
Member Since:
2006-12-25
Music Playing during a meeting

Thanks for the rpely

I want music paly during a meeting.

Jay



dickson
Posts: 1831
Member Since:
2006-06-02
That is actually entirely

That is actually entirely possible.
I assume you want this to be an automatic thing?
It would take a little bit of custom dialplan, but its totally possible to make happen.
The way I would set it up is upon creation of a meeting and someone joining the meeting, i would have asterisk bridge a 'ghost' call between MeetMe and a generic queue. The queue would simply be one that would never get answered, but would queue the call indefinitely.
The queue you could assign the music you wanted played.
I'm sure it would work. There might be some coding magic to have the system disconnect the bridge call when the meeting is over, but nothing that cant be done.
I don't have time to code it today, but I can on Monday.
(if someone comes up with some alternative code or way to do it, that would be great too).
THere are actually 2 or 3 other ways you could do this...do you want to play mp3 music? or do you have a specfic source you want played?



mmitchel
Posts: 333
Member Since:
2007-01-10
I have to ask...

I agree, def doable.... but I have to ask... Can you tell us why you would want music playing during a conference call...? I'm extremely curious....



mkleine
Posts: 207
Member Since:
2007-04-22
I'm curious tooooo

I'm curious tooooo



jsree
Posts: 50
Member Since:
2006-12-25
play mp3 music

Hi dickson

thanks. I want to play random mp3 music.

Jay



jsree
Posts: 50
Member Since:
2006-12-25
why I want music to play

Hi

1. My boss want me to play the music and he feels it make listerners much more interested in conference, he have good collection of CDs.

Warm Regards
Jay



dickson
Posts: 1831
Member Since:
2006-06-02
....not sure about anyone

Your boss wants more people to be interested in a conference call? Talk about something interesting!!!!!
....not sure about anyone else here...but the only way to make a conference interesting for me is if there is free pizza and beer at my desk for the duration of the meeting. Not sure about others reading this, but I think the only thing more annoying than a conference bridge (and god forbid, an accompanying powerpoint presentation) would be annoying elevator music that I can't control the volume of. To be truthful, its going to be something that you will find SUPER DUPER annoying and is an all round band idea.

1- Have you ever been on a conference call where you can't quite hear the person? They are on a cell phone calling in....but are also on a moving train on their commute to work? Imagine trying to listen to that person talk with electric guitars or a string section playing in the background.

2- What kind of music will you play? Have you ever been forced to listen to elevator music or the radio while on a noisy conference bridge? Whats to say your boss's taste in music is going to be everyone's cup of tea? If i were on a conference bridge and the song "Life is a highway" EVER played...i would call off the deal!! (i really really REALLY hate that song)

3- Honestly..this is an idea where the FIRST thing that is going to happen is your boss is going to say "..how do we turn the music off? We're on a conference bridge with our investors and our paying customers and this thing sounds absolutely totally unprofessional"

The FIRST comment from every listener will be "whoever has the clock radio running in the background please turn it off" I bet.

Anyway, its not a great idea, but people like to deploy Voice Recognition IVR's too...don't know why...but maybe they will like this too. I'll code it anyway.



n9jr
Posts: 91
Member Since:
2007-08-11
Legal Issues

Besides being annoying, music CDs are copyrighted intellectual property. You would need to pay royalties everytime you played a track. There have been a number of cases recently where the music industry has come down hard on music pirates.



jsree
Posts: 50
Member Since:
2006-12-25
Thanks for coding

Hi Dickson

I have no idea why boss need this. However I thought it is possible, I will convey the your reply and legal issues.

Thanking you once again

Jay



jsree
Posts: 50
Member Since:
2006-12-25
Progress

Hi Dickson

Any progress in coding ?

Thanks a lot

Jay



dickson
Posts: 1831
Member Since:
2006-06-02
yep! just been a little

yep! just been a little busy. System uses a dummy queue to play music, just trying to make it stop when everyone leaves a meeting



dickson
Posts: 1831
Member Since:
2006-06-02
Ok, not that I really think

Ok, not that I really think that this is a good idea to begin with, but here's the code as promised. Tested it on a couple of revisions, seems to work.
At the very least, gives some examples of dialplan codes that people might find useful.

What it does.
When the user joins the conference, the system bridges a queue into the meetingroom to play music...in the background.
When the last real caller leaves, the queue music is dropped.

How it works:
The system sets each real caller who joins a meeting as a "MARKED" user, but does not set the music 'call' as marked. This way, when the last user leaves a meeting, it will disconnect the music automatically. This differences is achieved by using a variable in the .call file.

Installation:

Open the /etc/asterisk/extensions_custom.conf file

Past the code below between the ======= symbols
Save the code.

Open FreePBX
Create a ringgroup (i used number 600, whatever number you use, match it to the variable in the dialplan
SetVar(meetroom=600)

In the 'extension list' in the ringgroup put in any invalid extension number
Point the ring group to a custom failover destination
custom-meetme-music,s,1

Create a Queue. I used 5000 in my example, you can use any number you want, just match it to the variable in the dialplan
SetVar(meetmemusicnumber=5000)
Leave the queue defaults. This will allow a system to queue a call forever. For this code, it will just play music forever.

Save your changes, click the "RELOAD" button on the screen and call your ring group number and test.

=======
[custom-meetme-music]
exten => s,1,NoOp(&& MeetMe with Music Dial Plan &&)
exten => s,n,SetVar(meetroom=600)
;set this to be the same number you dial to get to the meeting room.
;this code used a ring group "600" to execute this code

exten => s,n,SetVar(meetmemusicnumber=5000)
;the queue number you assign to play music

exten => s,n,MeetMeCount(${meetroom}|count)
exten => s,n,Gotoif,$[${meetmemusic} = 1]?joinmusic
exten => s,n,Gotoif,$[${count} > 0]?joincaller
exten => s,n,NoOp(&& Creating .call file to bridge music &&)
exten => s,n,system(echo "Channel: Local/${meetmemusicnumber}@from-internal/n" >> /etc/asterisk/${meetmemusicnumber}.call)
exten => s,n,system(echo "MaxRetries: 1" >> /etc/asterisk/${meetmemusicnumber}.call)
exten => s,n,system(echo "WaitTime:5" >> /etc/asterisk/${meetmemusicnumber}.call)
exten => s,n,system(echo "Context: from-internal" >> /etc/asterisk/${meetmemusicnumber}.call)
exten => s,n,system(echo "Extension: ${meetroom}" >> /etc/asterisk/${meetmemusicnumber}.call)
exten => s,n,system(echo "Priority: 1" >> /etc/asterisk/${meetmemusicnumber}.call)
exten => s,n,system(echo "SetVar: meetmemusic=1" >> /etc/asterisk/${meetmemusicnumber}.call)
exten => s,n,system(chown asterisk:asterisk ${meetmemusicnumber}.call)
exten => s,n,Wait(1)
exten => s,n,system(mv /etc/asterisk/${meetmemusicnumber}.call /var/spool/asterisk/outgoing)
exten => s,n,Goto(joincaller)
exten => s,n(joinmusic),SetVar(meetmemusic=0)
exten => s,n,NoOp(&& STARTING THE MUSIC &&)
exten => s,n,MeetMe(${meetroom}|dsx))
exten => s,n(joincaller),MeetMe(${meetroom}|Adsx)
=======================



Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.