Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
jami-daemon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
jami-daemon
Commits
5fa8d522
Commit
5fa8d522
authored
17 years ago
by
Emmanuel Milou
Browse files
Options
Downloads
Patches
Plain Diff
IAX bug: Music on hold implemented
Replace iax_quelch by iax_quelch_moh ( with boolean = true )
parent
f76fafc7
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/iaxvoiplink.cpp
+4
-1
4 additions, 1 deletion
src/iaxvoiplink.cpp
with
4 additions
and
1 deletion
src/iaxvoiplink.cpp
+
4
−
1
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
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment