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
f1928d24
Commit
f1928d24
authored
Mar 11, 2013
by
Sylvain Berfini
🐮
Browse files
Fix dns timeout test issue + fix terminate call mhen state = OutgoingInit
parent
275d7c10
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
31 additions
and
8 deletions
+31
-8
build/vsx/LibLinphone/LibLinphone.vcxproj
build/vsx/LibLinphone/LibLinphone.vcxproj
+1
-0
build/vsx/LibLinphoneTester-wp8/LibLinphoneTester-wp8.v11.suo
...d/vsx/LibLinphoneTester-wp8/LibLinphoneTester-wp8.v11.suo
+0
-0
build/vsx/LibLinphoneTester-wp8/LibLinphoneTester-wp8/Assets/empty_rc
...bLinphoneTester-wp8/LibLinphoneTester-wp8/Assets/empty_rc
+5
-0
build/vsx/LibLinphoneTester-wp8/LibLinphoneTester-wp8/LibLinphoneTester-wp8.csproj
...er-wp8/LibLinphoneTester-wp8/LibLinphoneTester-wp8.csproj
+1
-0
coreapi/bellesip_sal/sal_op_call.c
coreapi/bellesip_sal/sal_op_call.c
+1
-0
coreapi/linphonecore.c
coreapi/linphonecore.c
+7
-1
coreapi/linphonecore.h
coreapi/linphonecore.h
+1
-1
tester/call_tester.c
tester/call_tester.c
+2
-2
tester/empty_rc
tester/empty_rc
+5
-0
tester/liblinphone_tester.c
tester/liblinphone_tester.c
+6
-2
tester/liblinphone_tester.h
tester/liblinphone_tester.h
+1
-1
tester/register_tester.c
tester/register_tester.c
+1
-1
No files found.
build/vsx/LibLinphone/LibLinphone.vcxproj
View file @
f1928d24
...
...
@@ -125,6 +125,7 @@
<AdditionalUsingDirectories>
$(WindowsSDK_MetadataPath);$(AdditionalUsingDirectories)
</AdditionalUsingDirectories>
<PreprocessToFile>
false
</PreprocessToFile>
<IgnoreStandardIncludePath>
false
</IgnoreStandardIncludePath>
<ExceptionHandling>
Sync
</ExceptionHandling>
</ClCompile>
<Link>
<SubSystem>
Console
</SubSystem>
...
...
build/vsx/LibLinphoneTester-wp8/LibLinphoneTester-wp8.v11.suo
View file @
f1928d24
No preview for this file type
build/vsx/LibLinphoneTester-wp8/LibLinphoneTester-wp8/Assets/empty_rc
0 → 100644
View file @
f1928d24
[net]
mtu=1300
[sip]
ping_with_options=0
\ No newline at end of file
build/vsx/LibLinphoneTester-wp8/LibLinphoneTester-wp8/LibLinphoneTester-wp8.csproj
View file @
f1928d24
...
...
@@ -129,6 +129,7 @@
</Page>
</ItemGroup>
<ItemGroup>
<Content
Include=
"Assets\empty_rc"
/>
<Content
Include=
"Assets\laure_rc"
/>
<Content
Include=
"Assets\marie_rc"
/>
<Content
Include=
"Assets\oldphone.wav"
/>
...
...
coreapi/bellesip_sal/sal_op_call.c
View file @
f1928d24
...
...
@@ -453,6 +453,7 @@ int sal_call(SalOp *op, const char *from, const char *to){
sal_op_set_from
(
op
,
from
);
sal_op_set_to
(
op
,
to
);
ms_message
(
"[%s] calling [%s] on op [%p]"
,
from
,
to
,
op
);
invite
=
sal_op_build_request
(
op
,
"INVITE"
);
sal_op_fill_invite
(
op
,
invite
);
...
...
coreapi/linphonecore.c
View file @
f1928d24
...
...
@@ -3313,7 +3313,13 @@ int linphone_core_terminate_call(LinphoneCore *lc, LinphoneCall *the_call)
call
=
the_call
;
}
sal_call_terminate
(
call
->
op
);
if
(
call
->
state
!=
LinphoneCallOutgoingInit
)
sal_call_terminate
(
call
->
op
);
else
{
/* In state OutgoingInit, op has to be destroyed */
sal_op_release
(
call
->
op
);
call
->
op
=
NULL
;
}
terminate_call
(
lc
,
call
);
return
0
;
}
...
...
coreapi/linphonecore.h
View file @
f1928d24
...
...
@@ -1323,7 +1323,7 @@ LINPHONE_PUBLIC void linphone_core_set_user_data(LinphoneCore *lc, void *userdat
/* returns LpConfig object to read/write to the config file: usefull if you wish to extend
the config file with your own sections */
struct
_LpConfig
*
linphone_core_get_config
(
LinphoneCore
*
lc
);
LINPHONE_PUBLIC
struct
_LpConfig
*
linphone_core_get_config
(
LinphoneCore
*
lc
);
/*set a callback for some blocking operations, it takes you informed of the progress of the operation*/
void
linphone_core_set_waiting_callback
(
LinphoneCore
*
lc
,
LinphoneWaitingCallback
cb
,
void
*
user_context
);
...
...
tester/call_tester.c
View file @
f1928d24
...
...
@@ -19,6 +19,7 @@
#include <stdio.h>
#include "CUnit/Basic.h"
#include "linphonecore.h"
#include "lpconfig.h"
#include "private.h"
#include "liblinphone_tester.h"
...
...
@@ -200,12 +201,11 @@ static void cancelled_call(void) {
}
static
void
call_with_dns_time_out
(
void
)
{
LinphoneCoreManager
*
marie
=
linphone_core_manager_new
(
NULL
,
NULL
);
LinphoneCoreManager
*
marie
=
linphone_core_manager_new
2
(
liblinphone_tester_file_prefix
,
"empty_rc"
,
FALSE
);
LCSipTransports
transport
=
{
9773
,
0
,
0
,
0
};
linphone_core_set_sip_transports
(
marie
->
lc
,
&
transport
);
linphone_core_iterate
(
marie
->
lc
);
sal_set_dns_timeout
(
marie
->
lc
->
sal
,
0
);
linphone_core_set_mtu
(
marie
->
lc
,
1300
);
linphone_core_invite
(
marie
->
lc
,
"sip:toto@toto.com"
);
linphone_core_iterate
(
marie
->
lc
);
linphone_core_iterate
(
marie
->
lc
);
...
...
tester/empty_rc
0 → 100644
View file @
f1928d24
[net]
mtu=1300
[sip]
ping_with_options=0
\ No newline at end of file
tester/liblinphone_tester.c
View file @
f1928d24
...
...
@@ -162,7 +162,7 @@ static void enable_codec(LinphoneCore* lc,const char* type,int rate) {
}
}
LinphoneCoreManager
*
linphone_core_manager_new
(
const
char
*
path
,
const
char
*
rc_file
)
{
LinphoneCoreManager
*
linphone_core_manager_new
2
(
const
char
*
path
,
const
char
*
rc_file
,
int
check_for_proxies
)
{
LinphoneCoreManager
*
mgr
=
malloc
(
sizeof
(
LinphoneCoreManager
));
LinphoneProxyConfig
*
proxy
;
memset
(
mgr
,
0
,
sizeof
(
LinphoneCoreManager
));
...
...
@@ -173,7 +173,7 @@ LinphoneCoreManager* linphone_core_manager_new(const char* path, const char* rc_
mgr
->
v_table
.
new_subscription_request
=
new_subscribtion_request
;
mgr
->
v_table
.
notify_presence_recv
=
notify_presence_received
;
mgr
->
v_table
.
transfer_state_changed
=
linphone_transfer_state_changed
;
mgr
->
lc
=
configure_lc_from
(
&
mgr
->
v_table
,
path
,
rc_file
,
rc_file
?
1
:
0
);
mgr
->
lc
=
configure_lc_from
(
&
mgr
->
v_table
,
path
,
rc_file
,
check_for_proxies
?
(
rc_file
?
1
:
0
)
:
0
)
;
enable_codec
(
mgr
->
lc
,
"PCMU"
,
8000
);
linphone_core_set_user_data
(
mgr
->
lc
,
&
mgr
->
stat
);
linphone_core_get_default_proxy
(
mgr
->
lc
,
&
proxy
);
...
...
@@ -184,6 +184,10 @@ LinphoneCoreManager* linphone_core_manager_new(const char* path, const char* rc_
return
mgr
;
}
LinphoneCoreManager
*
linphone_core_manager_new
(
const
char
*
path
,
const
char
*
rc_file
)
{
return
linphone_core_manager_new2
(
path
,
rc_file
,
TRUE
);
}
void
linphone_core_manager_destroy
(
LinphoneCoreManager
*
mgr
)
{
linphone_core_destroy
(
mgr
->
lc
);
if
(
mgr
->
identity
)
linphone_address_destroy
(
mgr
->
identity
);
...
...
tester/liblinphone_tester.h
View file @
f1928d24
...
...
@@ -130,7 +130,7 @@ typedef struct _LinphoneCoreManager {
LinphoneAddress
*
identity
;
}
LinphoneCoreManager
;
LinphoneCoreManager
*
linphone_core_manager_new2
(
const
char
*
path
,
const
char
*
rc_file
,
int
check_for_proxies
);
LinphoneCoreManager
*
linphone_core_manager_new
(
const
char
*
path
,
const
char
*
rc_file
);
void
linphone_core_manager_destroy
(
LinphoneCoreManager
*
mgr
);
...
...
tester/register_tester.c
View file @
f1928d24
...
...
@@ -313,7 +313,7 @@ static void io_recv_error(){
test_t
register_tests
[]
=
{
{
"Simple register"
,
simple_register
},
{
"TCP register"
,
simple_tcp_register
},
#ifndef ANDROID
#ifndef ANDROID
{
"TLS register"
,
simple_tls_register
},
#endif
{
"Simple authenticated register"
,
simple_authenticated_register
},
...
...
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