Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
savoirfairelinux
jami-daemon
Commits
5fa8d522
Commit
5fa8d522
authored
Mar 28, 2008
by
Emmanuel Milou
Browse files
IAX bug: Music on hold implemented
Replace iax_quelch by iax_quelch_moh ( with boolean = true )
parent
f76fafc7
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/iaxvoiplink.cpp
View file @
5fa8d522
...
...
@@ -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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment