Skip to content
GitLab
Explore
Sign in
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
2e3e1f5f
Commit
2e3e1f5f
authored
16 years ago
by
Emmanuel Milou
Browse files
Options
Downloads
Plain Diff
Merge branch 'sip_dev'
parents
7e68cd8d
effbc403
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
sflphone-gtk/src/audioconf.c
+3
-1
3 additions, 1 deletion
sflphone-gtk/src/audioconf.c
src/audio/pulselayer.cpp
+1
-0
1 addition, 0 deletions
src/audio/pulselayer.cpp
src/useragent.cpp
+10
-7
10 additions, 7 deletions
src/useragent.cpp
with
14 additions
and
8 deletions
sflphone-gtk/src/audioconf.c
+
3
−
1
View file @
2e3e1f5f
...
...
@@ -604,6 +604,7 @@ select_audio_manager( void )
if
(
!
SHOW_ALSA_CONF
&&
!
gtk_toggle_button_get_active
(
GTK_TOGGLE_BUTTON
(
pulse
)
)
)
{
dbus_set_audio_manager
(
ALSA
);
g_print
(
" display alsa conf panel
\n
"
);
alsabox
=
alsa_box
();
gtk_container_add
(
GTK_CONTAINER
(
alsa_conf
)
,
alsabox
);
...
...
@@ -611,13 +612,14 @@ select_audio_manager( void )
}
else
if
(
SHOW_ALSA_CONF
&&
gtk_toggle_button_get_active
(
GTK_TOGGLE_BUTTON
(
pulse
)
))
{
dbus_set_audio_manager
(
PULSEAUDIO
);
g_print
(
" remove alsa conf panel
\n
"
);
gtk_container_remove
(
GTK_CONTAINER
(
alsa_conf
)
,
alsabox
);
}
else
g_print
(
"alsa conf panel...nothing
\n
"
);
gtk_toggle_button_get_active
(
GTK_TOGGLE_BUTTON
(
pulse
)
)
?
dbus_set_audio_manager
(
PULSEAUDIO
)
:
dbus_set_audio_manager
(
ALSA
);
//
gtk_toggle_button_get_active( GTK_TOGGLE_BUTTON(pulse) )? dbus_set_audio_manager( PULSEAUDIO ):dbus_set_audio_manager( ALSA );
}
GtkWidget
*
api_box
()
...
...
This diff is collapsed.
Click to expand it.
src/audio/pulselayer.cpp
+
1
−
0
View file @
2e3e1f5f
...
...
@@ -52,6 +52,7 @@ PulseLayer::closeLayer( void )
record
->
disconnect
();
pa_context_disconnect
(
context
);
pa_context_unref
(
context
);
sleep
(
2
);
}
void
...
...
This diff is collapsed.
Click to expand it.
src/useragent.cpp
+
10
−
7
View file @
2e3e1f5f
...
...
@@ -368,7 +368,7 @@ bool UserAgent::addAccount(AccountID id, pjsip_regc **regc2, const std::string&
pj_str_t
aor
;
pj_str_t
contact
;
pj_mutex_lock
(
_mutex
);
//
pj_mutex_lock(_mutex);
std
::
string
tmp
;
SIPAccount
*
account
;
...
...
@@ -394,6 +394,7 @@ bool UserAgent::addAccount(AccountID id, pjsip_regc **regc2, const std::string&
status
=
pjsip_regc_init
(
regc
,
&
svr
,
&
aor
,
&
aor
,
1
,
&
contact
,
600
);
//timeout);
if
(
status
!=
PJ_SUCCESS
)
{
_debug
(
"UserAgent: Unable to initialize regc. %d
\n
"
,
status
);
//, regc->str_srv_url.ptr);
//pj_mutex_unlock(_mutex);
return
false
;
}
...
...
@@ -418,12 +419,14 @@ bool UserAgent::addAccount(AccountID id, pjsip_regc **regc2, const std::string&
status
=
pjsip_regc_register
(
regc
,
PJ_TRUE
,
&
tdata
);
if
(
status
!=
PJ_SUCCESS
)
{
_debug
(
"UserAgent: Unable to register regc.
\n
"
);
//pj_mutex_unlock(_mutex);
return
false
;
}
status
=
pjsip_regc_send
(
regc
,
tdata
);
if
(
status
!=
PJ_SUCCESS
)
{
_debug
(
"UserAgent: Unable to send regc request.
\n
"
);
pj_mutex_unlock
(
_mutex
);
return
false
;
}
...
...
@@ -434,7 +437,7 @@ bool UserAgent::addAccount(AccountID id, pjsip_regc **regc2, const std::string&
// associate regc with account
*
regc2
=
regc
;
pj_mutex_unlock
(
_mutex
);
//
pj_mutex_unlock(_mutex);
return
true
;
}
...
...
@@ -444,29 +447,29 @@ bool UserAgent::removeAccount(pjsip_regc *regc)
pj_status_t
status
=
0
;
pjsip_tx_data
*
tdata
=
NULL
;
pj_mutex_lock
(
_mutex
);
//
pj_mutex_lock(_mutex);
if
(
regc
)
{
status
=
pjsip_regc_unregister
(
regc
,
&
tdata
);
if
(
status
!=
PJ_SUCCESS
)
{
_debug
(
"UserAgent: Unable to unregister regc.
\n
"
);
pj_mutex_unlock
(
_mutex
);
//
pj_mutex_unlock(_mutex);
return
false
;
}
status
=
pjsip_regc_send
(
regc
,
tdata
);
if
(
status
!=
PJ_SUCCESS
)
{
_debug
(
"UserAgent: Unable to send regc request.
\n
"
);
pj_mutex_unlock
(
_mutex
);
//
pj_mutex_unlock(_mutex);
return
false
;
}
}
else
{
_debug
(
"UserAgent: regc is null!
\n
"
);
pj_mutex_unlock
(
_mutex
);
//
pj_mutex_unlock(_mutex);
return
false
;
}
pj_mutex_unlock
(
_mutex
);
//
pj_mutex_unlock(_mutex);
return
true
;
}
...
...
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