[asterisk-users] Background music during a call
Ioan Indreias
indreias at gmail.com
Mon May 9 08:25:00 CDT 2011
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
More information about the asterisk-users
mailing list