Author Topic: music on hold - how to do ?  (Read 5990 times)

gege98

  • Newbie
  • *
  • Posts: 1
    • View Profile
music on hold - how to do ?
« on: April 04, 2015, 06:54:41 AM »
Hello everybody,

I am new with yate client. I have installed on ubuntu 14.04 yate-qt4.
I have managed the SIP configuration in order to receive call by SIP ==> All is OK.

Right now, I would like to enable the moh (music on hold).

Th scenario is :
- I have a call, I answer and I want to hold the line (by taping 1234 or by mute option). During the conversation is stopped, the caller is listening to a music.

To perform that I have configured the following modules:
[regexroute.conf]
^1234$=moh/default;autoanswer=yes

[moh.conf]
default=while true; do mpg123 -q -m -r 8000 -s -Z /link/to/PCM.mp3; done

My problem is :
When I call 1234, my moh module works very well. But when I have a call and I tappe 1234, the caller doesn't listen to the music....


Any idea how to manage moh module during a call to hold music on the line ?

Thanks in advance,

Br

GM

marian

  • Hero Member
  • *****
  • Posts: 513
    • View Profile
Re: music on hold - how to do ?
« Reply #1 on: April 06, 2015, 02:06:15 AM »
Hi,

Any digits typed when you are in call are sent as DTMFs.
If you want to put some music on hold you must have a script to accumulate DTMFs and do something with them.

Or try to use the pbxassist module.
See
http://docs.yate.ro/wiki/Pbxassist
Look in pbxassit.conf file also.