[asterisk-users] Background music during a call

Ioan Indreias indreias at gmail.com
Mon May 9 08:02:31 CDT 2011


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

===========================================

[from-internal]
....
exten => _1XXX,1,Dial(SIP/${EXTEN:1},,G(chat-room,love,1))
exten => _2XXX,1,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,2,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(1234,dx1q)

exten => chat,100,MeetMe(1234,daAx1q)

exten => h,1,MeetMeAdmin(1234,K)
===========================================

On Mon, May 9, 2011 at 8:20 AM, Rizwan Hisham <rizwanhasham at gmail.com> wrote:
> Will this work:
> exten=> 123,1,Meetme(1234)
> exten=> 123,n,Hangup()
> exten=> 5000,1,Dial(Local/123 at bk_music/n,,m())
> exten=> 5000,2,Goto(bk_music,123,1)



More information about the asterisk-users mailing list