mirror of
https://git.jami.net/savoirfairelinux/jami-daemon.git
synced 2025-08-12 22:09:25 +08:00
IAX bug: Music on hold implemented
Replace iax_quelch by iax_quelch_moh ( with boolean = true )
This commit is contained in:
@ -39,6 +39,9 @@
|
||||
|
||||
#define RANDOM_IAX_PORT rand() % 64000 + 1024
|
||||
|
||||
#define MUSIC_ONHOLD true
|
||||
#define NO_MUSIC_ONHOLD false
|
||||
|
||||
// from IAXC : iaxclient.h
|
||||
|
||||
#define IAX__20S_8KHZ_MAX 320 //320 samples, IAX packets can have more than 20ms.
|
||||
@ -530,7 +533,7 @@ IAXVoIPLink::onhold(const CallID& id)
|
||||
//if (call->getState() == Call::Hold) { _debug("Call is already on hold\n"); return false; }
|
||||
|
||||
_mutexIAX.enterMutex();
|
||||
iax_quelch(call->getSession());
|
||||
iax_quelch_moh(call->getSession() , MUSIC_ONHOLD);
|
||||
_mutexIAX.leaveMutex();
|
||||
|
||||
call->setState(Call::Hold);
|
||||
|
Reference in New Issue
Block a user