Hi All, I am in desperate need of this feature. I want to play background music during a call while the 2 parties are having some lovely conversation (or maybe give them a sort of cursing background if they are cursing each other). I found this post which talks about creating a ghost call with the help of queues and putting that queue in a meetme room where queue will play the song/curse and the two parties will enjoy/maybe not. I could'nt make it to work. Anyways, I think this feature will require some creative dialplanning as its not supported by default by the software. If anyone can tell me how to create a ghost call then the rest I may be able to figure out myself. If there is another way plz share coz im on a deadline. I am a wee bit of a programmer also, so if your idea needs changes in the code please dont hesitate to share, otherwise you WILL get a call from me with a special background noise crafted just for you :) Meanwhile i'll try my best to come up with a solution. Cheers -- Best Ragards Rizwan Qureshi VoIP/Asterisk Engineer Axvoice Inc. V: +92 (0) 3333 6767 26 E: rizwanhasham at gmail.com W: www.axvoice.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20110506/460a82e8/attachment.htm>
On Fri, May 6, 2011 at 6:30 PM, Rizwan Hisham <rizwanhasham at gmail.com> wrote:> I am in desperate need of this feature. I want to play background music > during a call while the 2 parties are having some lovely conversation (or > maybe give them a sort of cursing background if they are cursing each > other).Let's start with your actual dialplan (without the background music) and we could start from that point. Hint: I am planning to use option G of the Dial application + a meetme room where a "ghost" call will play the specified MOH class (lovely/cursing). HTH, Ioan.
Updated dialplan: fix a typo when using MOH variable and now you have truly dynamic conference rooms. Have fun, Ioan. +++++++++++++++++++++++++++++++++++++++++ exten => _[12]XXX,1,Set(__MM=${EPOCH}) exten => _1XXX,n,Dial(SIP/${EXTEN:1},,G(chat-room,love,1)) exten => _2XXX,n,Dial(SIP/${EXTEN:1},,G(chat-room,curse,1)) [chat-room] exten => love,1,Goto(love-a,1) exten => love,2,Goto(love-b,1) exten => love-a,1,Set(__MOH=love) exten => love-a,n,Dial(Local/fake at chat-room,,G(chat-room,chat,1)) exten => love-b,1,Goto(chat,100) exten => curse,1,Goto(curse-a,1) exten => curse,2,Goto(curse-b,1) exten => curse-a,1,Set(__MOH=curse) exten => curse-a,n,Dial(Local/fake at chat-room,,G(chat-room,chat,1)) exten => curse-b,1,Goto(chat,100) exten => fake,1,Answer exten => fake,2,MusicOnHold(${MOH}) exten => chat,1,Goto(100) exten => chat,2,MeetMe(${MM},dx1q) exten => chat,100,MeetMe(${MM},daAx1q) exten => h,1,MeetMeAdmin(${MM},K) +++++++++++++++++++++++++++++++++++++++++ On Mon, May 9, 2011 at 4:02 PM, Ioan Indreias <indreias at gmail.com> wrote:> I have tested the following dialplan and it could be used as a > starting point. What you have to resolve is how to generate different > MeetMe conference room - in the example we have only one room = 1234 > > If you prefix the dialled extension with 1 => you will have a "lovely > chat". With 2 -> "cursing chat". > > HTH, > > Ioan
Thanks a lot loan. Will try it today. Cheers On Mon, May 9, 2011 at 6:25 PM, Ioan Indreias <indreias at gmail.com> wrote:> Updated dialplan: fix a typo when using MOH variable and now you have > truly dynamic conference rooms. > > Have fun, > Ioan. > > +++++++++++++++++++++++++++++++++++++++++ > exten => _[12]XXX,1,Set(__MM=${EPOCH}) > exten => _1XXX,n,Dial(SIP/${EXTEN:1},,G(chat-room,love,1)) > exten => _2XXX,n,Dial(SIP/${EXTEN:1},,G(chat-room,curse,1)) > > [chat-room] > exten => love,1,Goto(love-a,1) > exten => love,2,Goto(love-b,1) > > exten => love-a,1,Set(__MOH=love) > exten => love-a,n,Dial(Local/fake at chat-room,,G(chat-room,chat,1)) > > exten => love-b,1,Goto(chat,100) > > exten => curse,1,Goto(curse-a,1) > exten => curse,2,Goto(curse-b,1) > > exten => curse-a,1,Set(__MOH=curse) > exten => curse-a,n,Dial(Local/fake at chat-room,,G(chat-room,chat,1)) > > exten => curse-b,1,Goto(chat,100) > > exten => fake,1,Answer > exten => fake,2,MusicOnHold(${MOH}) > > exten => chat,1,Goto(100) > exten => chat,2,MeetMe(${MM},dx1q) > > exten => chat,100,MeetMe(${MM},daAx1q) > > exten => h,1,MeetMeAdmin(${MM},K) > +++++++++++++++++++++++++++++++++++++++++ > > On Mon, May 9, 2011 at 4:02 PM, Ioan Indreias <indreias at gmail.com> wrote: > > I have tested the following dialplan and it could be used as a > > starting point. What you have to resolve is how to generate different > > MeetMe conference room - in the example we have only one room = 1234 > > > > If you prefix the dialled extension with 1 => you will have a "lovely > > chat". With 2 -> "cursing chat". > > > > HTH, > > > > Ioan > > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > New to Asterisk? Join us for a live introductory webinar every Thurs: > http://www.asterisk.org/hello > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >-- Best Ragards Rizwan Qureshi VoIP/Asterisk Engineer Axvoice Inc. V: +92 (0) 3333 6767 26 E: rizwanhasham at gmail.com W: www.axvoice.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20110510/9973d62c/attachment.htm>
Very nice Loan. Here is the chat-room dialplan with a little tweek which lets you set the volume up/down or mute/unmute the song. Use 4/6 to increase/decrease the volume and 2/8 to mute/unmute the song [chat-room] exten => love,1,Goto(love-a,1) exten => love,2,Goto(love-b,1) exten => love-a,1,Set(__MOH=love) exten => love-a,n,Dial(Local/fake at chat- room,,G(chat-room,chat,1)) exten => love-b,1,Goto(chat,100) exten => curse,1,Goto(curse-a,1) exten => curse,2,Goto(curse-b,1) exten => curse-a,1,Set(__MOH=curse) exten => curse-a,n,Dial(Local/fake at chat-room,,G(chat-room,chat,1)) exten => curse-b,1,Goto(chat,100) exten => fake,1,Answer exten => fake,2,MusicOnHold(${MOH}) exten => chat,1,Goto(100) exten => chat,2,MeetMe(${MM},dx1q) exten => chat,100,MeetMe(${MM},daAx1q) exten => h,1,MeetMeAdmin(${MM},K) exten => 4,1,MeetMeAdmin(${MM},t,2) exten => 6,1,MeetMeAdmin(${MM},T,2) exten => 2,1,MeetMeAdmin(${MM},M,2) exten => 8,1,MeetMeAdmin(${MM},m,2) exten=> _X,2,Goto(chat-room,chat,100) Here channel 2 always seem to be the one playing the MOH, thats why its hard coded into the MeetMeAdmin application. If there is a another way to know which channel is playing the song then please do let me know. Cheers On Tue, May 10, 2011 at 9:33 AM, Rizwan Hisham <rizwanhasham at gmail.com>wrote:> Thanks a lot loan. Will try it today. > > Cheers > > > On Mon, May 9, 2011 at 6:25 PM, Ioan Indreias <indreias at gmail.com> wrote: > >> Updated dialplan: fix a typo when using MOH variable and now you have >> truly dynamic conference rooms. >> >> Have fun, >> Ioan. >> >> +++++++++++++++++++++++++++++++++++++++++ >> exten => _[12]XXX,1,Set(__MM=${EPOCH}) >> exten => _1XXX,n,Dial(SIP/${EXTEN:1},,G(chat-room,love,1)) >> exten => _2XXX,n,Dial(SIP/${EXTEN:1},,G(chat-room,curse,1)) >> >> [chat-room] >> exten => love,1,Goto(love-a,1) >> exten => love,2,Goto(love-b,1) >> >> exten => love-a,1,Set(__MOH=love) >> exten => love-a,n,Dial(Local/fake at chat-room,,G(chat-room,chat,1)) >> >> exten => love-b,1,Goto(chat,100) >> >> exten => curse,1,Goto(curse-a,1) >> exten => curse,2,Goto(curse-b,1) >> >> exten => curse-a,1,Set(__MOH=curse) >> exten => curse-a,n,Dial(Local/fake at chat-room,,G(chat-room,chat,1)) >> >> exten => curse-b,1,Goto(chat,100) >> >> exten => fake,1,Answer >> exten => fake,2,MusicOnHold(${MOH}) >> >> exten => chat,1,Goto(100) >> exten => chat,2,MeetMe(${MM},dx1q) >> >> exten => chat,100,MeetMe(${MM},daAx1q) >> >> exten => h,1,MeetMeAdmin(${MM},K) >> +++++++++++++++++++++++++++++++++++++++++ >> >> On Mon, May 9, 2011 at 4:02 PM, Ioan Indreias <indreias at gmail.com> wrote: >> > I have tested the following dialplan and it could be used as a >> > starting point. What you have to resolve is how to generate different >> > MeetMe conference room - in the example we have only one room = 1234 >> > >> > If you prefix the dialled extension with 1 => you will have a "lovely >> > chat". With 2 -> "cursing chat". >> > >> > HTH, >> > >> > Ioan >> >> -- >> _____________________________________________________________________ >> -- Bandwidth and Colocation Provided by http://www.api-digital.com -- >> New to Asterisk? Join us for a live introductory webinar every Thurs: >> http://www.asterisk.org/hello >> >> asterisk-users mailing list >> To UNSUBSCRIBE or update options visit: >> http://lists.digium.com/mailman/listinfo/asterisk-users >> > > > > -- > Best Ragards > Rizwan Qureshi > VoIP/Asterisk Engineer > Axvoice Inc. > > V: +92 (0) 3333 6767 26 > E: rizwanhasham at gmail.com > W: www.axvoice.com > >-- Best Ragards Rizwan Qureshi VoIP/Asterisk Engineer Axvoice Inc. V: +92 (0) 3333 6767 26 E: rizwanhasham at gmail.com W: www.axvoice.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20110510/002a5fa6/attachment.htm>
Ooops, here is the correct version, Missed the capital X option in meetme before which lets you control the volume etc. [chat-room] exten => love,1,Goto(love-a,1) exten => love,2,Goto(love-b,1) exten => love-a,1,Set(__MOH=love) exten => love-a,n,Dial(Local/fake at chat- room,,G(chat-room,chat,1)) exten => love-b,1,Goto(chat,100) exten => curse,1,Goto(curse-a,1) exten => curse,2,Goto(curse-b,1) exten => curse-a,1,Set(__MOH=curse) exten => curse-a,n,Dial(Local/fake at chat-room,,G(chat-room,chat,1)) exten => curse-b,1,Goto(chat,100) exten => fake,1,Answer exten => fake,2,MusicOnHold(${MOH}) exten => chat,1,Goto(100) exten => chat,2,MeetMe(${MM},dx1qX) exten => chat,100,MeetMe(${MM},daAx1qX) exten => h,1,MeetMeAdmin(${MM},K) exten => 4,1,MeetMeAdmin(${MM},t,2) exten => 6,1,MeetMeAdmin(${MM},T,2) exten => 2,1,MeetMeAdmin(${MM},M,2) exten => 8,1,MeetMeAdmin(${MM},m,2) exten=> _X,2,Goto(chat-room,chat,100) On Tue, May 10, 2011 at 9:57 PM, Rizwan Hisham <rizwanhasham at gmail.com>wrote:> Very nice Loan. Here is the chat-room dialplan with a little tweek which > lets you set the volume up/down or mute/unmute the song. > > Use 4/6 to increase/decrease the volume and 2/8 to mute/unmute the song > > > [chat-room] > exten => love,1,Goto(love-a,1) > exten => love,2,Goto(love-b,1) > > exten => love-a,1,Set(__MOH=love) > exten => love-a,n,Dial(Local/fake at chat- > room,,G(chat-room,chat,1)) > > exten => love-b,1,Goto(chat,100) > > exten => curse,1,Goto(curse-a,1) > exten => curse,2,Goto(curse-b,1) > > exten => curse-a,1,Set(__MOH=curse) > exten => curse-a,n,Dial(Local/fake at chat-room,,G(chat-room,chat,1)) > > exten => curse-b,1,Goto(chat,100) > > exten => fake,1,Answer > exten => fake,2,MusicOnHold(${MOH}) > > exten => chat,1,Goto(100) > exten => chat,2,MeetMe(${MM},dx1q) > > exten => chat,100,MeetMe(${MM},daAx1q) > > exten => h,1,MeetMeAdmin(${MM},K) > > exten => 4,1,MeetMeAdmin(${MM},t,2) > exten => 6,1,MeetMeAdmin(${MM},T,2) > exten => 2,1,MeetMeAdmin(${MM},M,2) > exten => 8,1,MeetMeAdmin(${MM},m,2) > > exten=> _X,2,Goto(chat-room,chat,100) > > Here channel 2 always seem to be the one playing the MOH, thats why its > hard coded into the MeetMeAdmin application. > > If there is a another way to know which channel is playing the song then > please do let me know. > > Cheers > > > > On Tue, May 10, 2011 at 9:33 AM, Rizwan Hisham <rizwanhasham at gmail.com>wrote: > >> Thanks a lot loan. Will try it today. >> >> Cheers >> >> >> On Mon, May 9, 2011 at 6:25 PM, Ioan Indreias <indreias at gmail.com> wrote: >> >>> Updated dialplan: fix a typo when using MOH variable and now you have >>> truly dynamic conference rooms. >>> >>> Have fun, >>> Ioan. >>> >>> +++++++++++++++++++++++++++++++++++++++++ >>> exten => _[12]XXX,1,Set(__MM=${EPOCH}) >>> exten => _1XXX,n,Dial(SIP/${EXTEN:1},,G(chat-room,love,1)) >>> exten => _2XXX,n,Dial(SIP/${EXTEN:1},,G(chat-room,curse,1)) >>> >>> [chat-room] >>> exten => love,1,Goto(love-a,1) >>> exten => love,2,Goto(love-b,1) >>> >>> exten => love-a,1,Set(__MOH=love) >>> exten => love-a,n,Dial(Local/fake at chat-room,,G(chat-room,chat,1)) >>> >>> exten => love-b,1,Goto(chat,100) >>> >>> exten => curse,1,Goto(curse-a,1) >>> exten => curse,2,Goto(curse-b,1) >>> >>> exten => curse-a,1,Set(__MOH=curse) >>> exten => curse-a,n,Dial(Local/fake at chat-room,,G(chat-room,chat,1)) >>> >>> exten => curse-b,1,Goto(chat,100) >>> >>> exten => fake,1,Answer >>> exten => fake,2,MusicOnHold(${MOH}) >>> >>> exten => chat,1,Goto(100) >>> exten => chat,2,MeetMe(${MM},dx1q) >>> >>> exten => chat,100,MeetMe(${MM},daAx1q) >>> >>> exten => h,1,MeetMeAdmin(${MM},K) >>> +++++++++++++++++++++++++++++++++++++++++ >>> >>> On Mon, May 9, 2011 at 4:02 PM, Ioan Indreias <indreias at gmail.com> >>> wrote: >>> > I have tested the following dialplan and it could be used as a >>> > starting point. What you have to resolve is how to generate different >>> > MeetMe conference room - in the example we have only one room = 1234 >>> > >>> > If you prefix the dialled extension with 1 => you will have a "lovely >>> > chat". With 2 -> "cursing chat". >>> > >>> > HTH, >>> > >>> > Ioan >>> >>> -- >>> _____________________________________________________________________ >>> -- Bandwidth and Colocation Provided by http://www.api-digital.com -- >>> New to Asterisk? Join us for a live introductory webinar every Thurs: >>> http://www.asterisk.org/hello >>> >>> asterisk-users mailing list >>> To UNSUBSCRIBE or update options visit: >>> http://lists.digium.com/mailman/listinfo/asterisk-users >>> >> >> >> >> -- >> Best Ragards >> Rizwan Qureshi >> VoIP/Asterisk Engineer >> Axvoice Inc. >> >> V: +92 (0) 3333 6767 26 >> E: rizwanhasham at gmail.com >> W: www.axvoice.com >> >> > > > -- > Best Ragards > Rizwan Qureshi > VoIP/Asterisk Engineer > Axvoice Inc. > > V: +92 (0) 3333 6767 26 > E: rizwanhasham at gmail.com > W: www.axvoice.com > >-- Best Ragards Rizwan Qureshi VoIP/Asterisk Engineer Axvoice Inc. V: +92 (0) 3333 6767 26 E: rizwanhasham at gmail.com W: www.axvoice.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20110510/4a39a49c/attachment.htm>
Glad to know it works for you. I would like to hear your love/curse MOH - do you have some links to your mp3 files? :) BR, Ioan (with capital i) On Tue, May 10, 2011 at 6:59 PM, Rizwan Hisham <rizwanhasham at gmail.com> wrote:> Ooops, > > here is the correct version, Missed the capital X option in meetme before > which lets you control the volume etc.
Its in testing phase right now Ioan. Also the curse thing is just an idea. We may not implement it actually, or maybe we do in future but not now. Lets see. On Tue, May 10, 2011 at 10:23 PM, Ioan Indreias <indreias at gmail.com> wrote:> Glad to know it works for you. > I would like to hear your love/curse MOH - do you have some links to > your mp3 files? :) > > BR, > Ioan (with capital i) > > On Tue, May 10, 2011 at 6:59 PM, Rizwan Hisham <rizwanhasham at gmail.com> > wrote: > > Ooops, > > > > here is the correct version, Missed the capital X option in meetme before > > which lets you control the volume etc. > > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > New to Asterisk? Join us for a live introductory webinar every Thurs: > http://www.asterisk.org/hello > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >-- Best Ragards Rizwan Qureshi VoIP/Asterisk Engineer Axvoice Inc. V: +92 (0) 3333 6767 26 E: rizwanhasham at gmail.com W: www.axvoice.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20110511/ea94b181/attachment.htm>