Background music during a call

Home » Asterisk Users » Background music during a call
Asterisk Users 4 Comments

On Fri, May 6, 2011 at 6:30 PM, Rizwan Hisham 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


4 thoughts on - Background music during a call

  • Thanks for the reply. I looked into the G option of Dial applications. No
    problem with that but How do I create a ghost call?

    My dial plan will look like this:

    Caller A calls Caller B normally:

    exten=> _XXX,1,SomePreDialApps()
    exten=> _XXX,n,Dial(SIP/B)
    exten=> _XXX,n,Hangup()

    Caller A calls caller B ith background music
    exten=> _*9XXX,1,SomePreDialApps()
    exten=> _*9XXX,n,Dial(SIP/B,,G(10))
    exten=> _*9XXX,n,Hangup()

    exten=> _*9XXX,10,Goto(mm,1,1)
    exten=> _*9XXX,11,Goto(mm,1,1)

    Waiting for your replies


  • Will this work:

    exten=> 123,1,Meetme(1234)
    exten=> 123,n,Hangup()

    exten=> 5000,1,Dial(Local/123@bk_music/n,,m())
    exten=> 5000,2,Goto(bk_music,123,1)

    Parties can call 123 to enter a meeting room. and with the help of a
    callfile ic an dial a local channel to 5000 extension which in return calls
    a local channel to exten 123 to enter meet me. The dial command with second
    local channel will use m() option with moh call defind for each caller. will
    ring indefinately with moh and conf members will listen to it.

    Not tested it yet. Just sharing, will try it and let you know list.


    Mon, May 9, 2011 at 8:47 AM, Rizwan Hisham wrote:

  • 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