Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
liblinphone
Commits
c1968e3f
Commit
c1968e3f
authored
Oct 04, 2013
by
Ghislain MARY
Browse files
Normalize linphone_proxy_config_set_expires() name.
parent
b8453d1b
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
8 additions
and
7 deletions
+8
-7
console/commands.c
console/commands.c
+1
-1
coreapi/linphonecore.h
coreapi/linphonecore.h
+2
-1
coreapi/linphonecore_jni.cc
coreapi/linphonecore_jni.cc
+1
-1
coreapi/proxy.c
coreapi/proxy.c
+1
-1
gtk/propertybox.c
gtk/propertybox.c
+1
-1
gtk/setupwizard.c
gtk/setupwizard.c
+1
-1
tester/register_tester.c
tester/register_tester.c
+1
-1
No files found.
console/commands.c
View file @
c1968e3f
...
...
@@ -1616,7 +1616,7 @@ linphonec_proxy_add(LinphoneCore *lc)
continue
;
}
linphone_proxy_config_expires
(
cfg
,
expires
);
linphone_proxy_config_
set_
expires
(
cfg
,
expires
);
linphonec_out
(
"Expiration: %d seconds
\n
"
,
linphone_proxy_config_get_expires
(
cfg
));
free
(
input
);
...
...
coreapi/linphonecore.h
View file @
c1968e3f
...
...
@@ -658,7 +658,8 @@ LINPHONE_PUBLIC LinphoneProxyConfig *linphone_proxy_config_new(void);
LINPHONE_PUBLIC
int
linphone_proxy_config_set_server_addr
(
LinphoneProxyConfig
*
obj
,
const
char
*
server_addr
);
LINPHONE_PUBLIC
int
linphone_proxy_config_set_identity
(
LinphoneProxyConfig
*
obj
,
const
char
*
identity
);
LINPHONE_PUBLIC
int
linphone_proxy_config_set_route
(
LinphoneProxyConfig
*
obj
,
const
char
*
route
);
LINPHONE_PUBLIC
void
linphone_proxy_config_expires
(
LinphoneProxyConfig
*
obj
,
int
expires
);
LINPHONE_PUBLIC
void
linphone_proxy_config_set_expires
(
LinphoneProxyConfig
*
obj
,
int
expires
);
#define linphone_proxy_config_expires linphone_proxy_config_set_expires
/**
* Indicates either or not, REGISTRATION must be issued for this #LinphoneProxyConfig .
* <br> In case this #LinphoneProxyConfig has been added to #LinphoneCore, follows the linphone_proxy_config_edit() rule.
...
...
coreapi/linphonecore_jni.cc
View file @
c1968e3f
...
...
@@ -2600,7 +2600,7 @@ extern "C" jint Java_org_linphone_core_LinphoneProxyConfigImpl_getState(JNIEnv*
return
(
jint
)
linphone_proxy_config_get_state
((
const
LinphoneProxyConfig
*
)
ptr
);
}
extern
"C"
void
Java_org_linphone_core_LinphoneProxyConfigImpl_setExpires
(
JNIEnv
*
env
,
jobject
thiz
,
jlong
ptr
,
jint
delay
)
{
linphone_proxy_config_expires
((
LinphoneProxyConfig
*
)
ptr
,
(
int
)
delay
);
linphone_proxy_config_
set_
expires
((
LinphoneProxyConfig
*
)
ptr
,
(
int
)
delay
);
}
extern
"C"
jint
Java_org_linphone_core_LinphoneCallImpl_getDuration
(
JNIEnv
*
env
,
jobject
thiz
,
jlong
ptr
)
{
...
...
coreapi/proxy.c
View file @
c1968e3f
...
...
@@ -227,7 +227,7 @@ void linphone_proxy_config_enableregister(LinphoneProxyConfig *obj, bool_t val){
/**
* Sets the registration expiration time in seconds.
**/
void
linphone_proxy_config_expires
(
LinphoneProxyConfig
*
obj
,
int
val
){
void
linphone_proxy_config_
set_
expires
(
LinphoneProxyConfig
*
obj
,
int
val
){
if
(
val
<
0
)
val
=
600
;
obj
->
expires
=
val
;
}
...
...
gtk/propertybox.c
View file @
c1968e3f
...
...
@@ -738,7 +738,7 @@ void linphone_gtk_proxy_ok(GtkButton *button){
gtk_entry_get_text
(
GTK_ENTRY
(
linphone_gtk_get_widget
(
w
,
"route"
))));
linphone_proxy_config_set_contact_parameters
(
cfg
,
gtk_entry_get_text
(
GTK_ENTRY
(
linphone_gtk_get_widget
(
w
,
"params"
))));
linphone_proxy_config_expires
(
cfg
,
linphone_proxy_config_
set_
expires
(
cfg
,
(
int
)
gtk_spin_button_get_value
(
GTK_SPIN_BUTTON
(
linphone_gtk_get_widget
(
w
,
"regperiod"
))));
linphone_proxy_config_enable_publish
(
cfg
,
...
...
gtk/setupwizard.c
View file @
c1968e3f
...
...
@@ -416,7 +416,7 @@ static void linphone_gtk_assistant_prepare(GtkWidget *assistant, GtkWidget *page
linphone_proxy_config_set_identity
(
cfg
,
creator
->
username
);
linphone_proxy_config_set_server_addr
(
cfg
,
creator
->
domain
);
linphone_proxy_config_set_route
(
cfg
,
creator
->
route
);
linphone_proxy_config_expires
(
cfg
,
3600
);
linphone_proxy_config_
set_
expires
(
cfg
,
3600
);
linphone_proxy_config_enable_publish
(
cfg
,
FALSE
);
linphone_proxy_config_enable_register
(
cfg
,
TRUE
);
...
...
tester/register_tester.c
View file @
c1968e3f
...
...
@@ -87,7 +87,7 @@ static void register_with_refresh_base_3(LinphoneCore* lc
server_addr
=
linphone_address_get_domain
(
from
);
linphone_proxy_config_enable_register
(
proxy_cfg
,
TRUE
);
linphone_proxy_config_expires
(
proxy_cfg
,
1
);
linphone_proxy_config_
set_
expires
(
proxy_cfg
,
1
);
if
(
route
)
{
linphone_proxy_config_set_route
(
proxy_cfg
,
route
);
linphone_proxy_config_set_server_addr
(
proxy_cfg
,
route
);
...
...
Write
Preview
Markdown
is supported
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