From 8d4c8a4633f234184ae5698780858f8d1cc931b9 Mon Sep 17 00:00:00 2001 From: Sylvain Berfini Date: Tue, 5 Mar 2013 16:16:03 +0100 Subject: [PATCH] Few changes in tests to use new test server (without tls for now) --- .../LibLinphoneTester-wp8.v11.suo | Bin 144896 -> 154624 bytes .../LibLinphoneTester-wp8/Assets/laure_rc | 3 +- .../LibLinphoneTester-wp8/Assets/marie_rc | 4 +-- .../Assets/multi_account_lrc | 9 ++++-- .../LibLinphoneTester-wp8/Assets/pauline_rc | 4 +-- .../LibLinphoneTester-wp8.csproj | 3 -- tester/liblinphone_tester.c | 3 +- tester/liblinphone_tester.h | 2 +- tester/register_tester.c | 28 ++++++++++++------ 9 files changed, 34 insertions(+), 22 deletions(-) diff --git a/build/vsx/LibLinphoneTester-wp8/LibLinphoneTester-wp8.v11.suo b/build/vsx/LibLinphoneTester-wp8/LibLinphoneTester-wp8.v11.suo index 3b78758d40a2f62923ef1e0c18f59b48effa3186..63fa0e9d12918868b29a213da7d66dce5d012a08 100644 GIT binary patch delta 7948 zcmdT}dtB7jw*Rdk!wAD`cq0N1PZ0r!5fJb-JXA#9;>i>rh^Q0-!eB-ygPHXyQ=Fab zj^PWHJk~h}84hD+Honr#k7mcC9`CK&1fY#txzBnW~Gal5at4>JJ}p@?|I9F|(5_&!8R3whS=KE zupEgXI{)a`J`T$fh{=c$#8gBe(zneUj&*lL1|kR%CkTyFrx#X~2wIR5u}h3(V(x-? z6p@4&f(SrFSc#6rauy;Qp++PiqOdO(^F##E*ogU9ga+Z=kC_oz_Y+uJnNPR}7X1c9`2+ z%PQur7y%`0f?`rMF&B>QA&5{!m~{*(;|Ob+#t_(E#bqTG7Gg&!q6)#9ozz~`Sc8>X zL=)nD>bT&f4t%Knce-YR?CzfPNEmXSu#?7p1%R2VIHen+6Z%5FaAEt>dJE+ zB}*goMFA*gVNObiOx$)l>P*~`p^)LRGtNcQ9;lH#3gt}g5*)OLWGH+MbL`-d1qqCNtCeJ=#?|9lnx)-o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/build/vsx/LibLinphoneTester-wp8/LibLinphoneTester-wp8/Assets/laure_rc index b4480494c..de69db066 100644 --- a/build/vsx/LibLinphoneTester-wp8/LibLinphoneTester-wp8/Assets/laure_rc +++ b/build/vsx/LibLinphoneTester-wp8/LibLinphoneTester-wp8/Assets/laure_rc @@ -14,7 +14,8 @@ realm="sip.example.org" [proxy_0] -reg_proxy=sip.example.org +reg_proxy=sip2.linphone.org +reg_route=sip2.linphone.org reg_identity=sip:laure@sip.example.org reg_expires=3600 reg_sendregister=1 diff --git a/build/vsx/LibLinphoneTester-wp8/LibLinphoneTester-wp8/Assets/marie_rc b/build/vsx/LibLinphoneTester-wp8/LibLinphoneTester-wp8/Assets/marie_rc index 26cb42992..9510974c2 100644 --- a/build/vsx/LibLinphoneTester-wp8/LibLinphoneTester-wp8/Assets/marie_rc +++ b/build/vsx/LibLinphoneTester-wp8/LibLinphoneTester-wp8/Assets/marie_rc @@ -14,8 +14,8 @@ realm="sip.example.org" [proxy_0] -reg_proxy=sip.example.org;transport=tcp -reg_route=sip.example.org;transport=tcp;lr +reg_proxy=sip2.linphone.org;transport=tcp +reg_route=sip2.linphone.org;transport=tcp;lr reg_identity=sip:marie@sip.example.org reg_expires=3600 reg_sendregister=1 diff --git a/build/vsx/LibLinphoneTester-wp8/LibLinphoneTester-wp8/Assets/multi_account_lrc b/build/vsx/LibLinphoneTester-wp8/LibLinphoneTester-wp8/Assets/multi_account_lrc index df91cf251..4a42f5e6d 100644 --- a/build/vsx/LibLinphoneTester-wp8/LibLinphoneTester-wp8/Assets/multi_account_lrc +++ b/build/vsx/LibLinphoneTester-wp8/LibLinphoneTester-wp8/Assets/multi_account_lrc @@ -29,7 +29,8 @@ passwd=secret realm="sip.example.org" [proxy_0] -reg_proxy=sip.example.org;transport=tls +reg_proxy=sip2.linphone.org;transport=tcp +reg_route=sip2.linphone.org;transport=tcp reg_identity=sip:pauline@sip.example.org reg_expires=3600 reg_sendregister=1 @@ -37,7 +38,8 @@ publish=0 dial_escape_plus=0 [proxy_1] -reg_proxy=sip.example.org;transport=tcp +reg_proxy=sip2.linphone.org;transport=tcp +reg_route=sip2.linphone.org;transport=tcp reg_identity=sip:marie@sip.example.org reg_expires=3600 reg_sendregister=1 @@ -45,7 +47,8 @@ publish=0 dial_escape_plus=0 [proxy_2] -reg_proxy=auth1.example.org +reg_proxy=sip2.linphone.org +reg_route=sip2.linphone.org reg_identity=sip:liblinphone_tester@auth1.example.org reg_expires=3600 reg_sendregister=1 diff --git a/build/vsx/LibLinphoneTester-wp8/LibLinphoneTester-wp8/Assets/pauline_rc b/build/vsx/LibLinphoneTester-wp8/LibLinphoneTester-wp8/Assets/pauline_rc index f2da8991c..af6c66a93 100644 --- a/build/vsx/LibLinphoneTester-wp8/LibLinphoneTester-wp8/Assets/pauline_rc +++ b/build/vsx/LibLinphoneTester-wp8/LibLinphoneTester-wp8/Assets/pauline_rc @@ -14,8 +14,8 @@ realm="sip.example.org" [proxy_0] -reg_proxy=sip.example.org;transport=tls -reg_route=sip.example.org;transport=tls;lr +reg_proxy=sip2.linphone.org;transport=tcp +reg_route=sip2.linphone.org;transport=tcp;lr reg_identity=sip:pauline@sip.example.org reg_expires=3600 reg_sendregister=1 diff --git a/build/vsx/LibLinphoneTester-wp8/LibLinphoneTester-wp8/LibLinphoneTester-wp8.csproj b/build/vsx/LibLinphoneTester-wp8/LibLinphoneTester-wp8/LibLinphoneTester-wp8.csproj index 43c29fa40..c737c799f 100644 --- a/build/vsx/LibLinphoneTester-wp8/LibLinphoneTester-wp8/LibLinphoneTester-wp8.csproj +++ b/build/vsx/LibLinphoneTester-wp8/LibLinphoneTester-wp8/LibLinphoneTester-wp8.csproj @@ -167,9 +167,6 @@ AppResources.Designer.cs - - - {5E94A00B-B14A-4E42-8284-8CB0EF099534} diff --git a/tester/liblinphone_tester.c b/tester/liblinphone_tester.c index 032e7fe94..31b64fe2e 100644 --- a/tester/liblinphone_tester.c +++ b/tester/liblinphone_tester.c @@ -36,6 +36,7 @@ const char* test_domain="sipopen.example.org"; const char* auth_domain="sip.example.org"; const char* test_username="liblinphone_tester"; const char* test_password="secret"; +const char* test_route="sip2.linphone.org"; LinphoneAddress * create_linphone_address(const char * domain) { @@ -43,7 +44,7 @@ LinphoneAddress * create_linphone_address(const char * domain) { CU_ASSERT_PTR_NOT_NULL_FATAL(addr); linphone_address_set_username(addr,test_username); CU_ASSERT_STRING_EQUAL(test_username,linphone_address_get_username(addr)); - if (!domain) domain= test_domain; + if (!domain) domain= test_route; linphone_address_set_domain(addr,domain); CU_ASSERT_STRING_EQUAL(domain,linphone_address_get_domain(addr)); linphone_address_set_display_name(addr, NULL); diff --git a/tester/liblinphone_tester.h b/tester/liblinphone_tester.h index 209ebc46f..c7e84b480 100644 --- a/tester/liblinphone_tester.h +++ b/tester/liblinphone_tester.h @@ -75,7 +75,7 @@ const char* test_domain; const char* auth_domain; const char* test_username; const char* test_password; - +const char* test_route; typedef struct _stats { diff --git a/tester/register_tester.c b/tester/register_tester.c index 7c3805160..149b21a45 100644 --- a/tester/register_tester.c +++ b/tester/register_tester.c @@ -118,9 +118,11 @@ static void register_with_refresh_with_send_error(void) { LinphoneCore* lc = create_lc_with_auth(1); stats* counters = (stats*)linphone_core_get_user_data(lc); LinphoneAuthInfo *info=linphone_auth_info_new(test_username,NULL,test_password,NULL,auth_domain); /*create authentication structure from identity*/ + char route[256]; + sprintf(route,"sip:%s",test_route); linphone_core_add_auth_info(lc,info); /*add authentication info to LinphoneCore*/ - register_with_refresh_base(lc,TRUE,auth_domain,NULL); + register_with_refresh_base(lc,TRUE,auth_domain,route); /*simultate a network error*/ sal_set_send_error(lc->sal, -1); while (counters->number_of_LinphoneRegistrationFailed<1 && retry++ <20) { @@ -152,33 +154,37 @@ static void simple_register_with_refresh() { static void simple_auth_register_with_refresh() { LinphoneCore* lc = create_lc_with_auth(1); stats* counters = (stats*)linphone_core_get_user_data(lc); - register_with_refresh(lc,TRUE,auth_domain,NULL); + char route[256]; + sprintf(route,"sip:%s",test_route); + register_with_refresh(lc,TRUE,auth_domain,route); CU_ASSERT_EQUAL(counters->number_of_auth_info_requested,1); } static void simple_tcp_register(){ char route[256]; LinphoneCore* lc; - sprintf(route,"sip:%s;transport=tcp",test_domain); + sprintf(route,"sip:%s;transport=tcp",test_route); lc = create_lc(); - register_with_refresh(lc,FALSE,NULL,route); + register_with_refresh(lc,FALSE,test_domain,route); } static void simple_tls_register(){ char route[256]; LinphoneCore* lc; - sprintf(route,"sip:%s;transport=tls",test_domain); + sprintf(route,"sip:%s;transport=tls",test_route); lc = create_lc(); - register_with_refresh(lc,FALSE,NULL,route); + register_with_refresh(lc,FALSE,test_domain,route); } static void simple_authenticated_register(){ stats* counters; LinphoneCore* lc = create_lc(); LinphoneAuthInfo *info=linphone_auth_info_new(test_username,NULL,test_password,NULL,auth_domain); /*create authentication structure from identity*/ + char route[256]; + sprintf(route,"sip:%s",test_route); linphone_core_add_auth_info(lc,info); /*add authentication info to LinphoneCore*/ counters = (stats*)linphone_core_get_user_data(lc); - register_with_refresh(lc,FALSE,auth_domain,NULL); + register_with_refresh(lc,FALSE,auth_domain,route); CU_ASSERT_EQUAL(counters->number_of_auth_info_requested,0); } @@ -187,6 +193,8 @@ static void authenticated_register_with_no_initial_credentials(){ LinphoneCore* lc; stats stat; stats* counters; + char route[256]; + sprintf(route,"sip:%s",test_route); memset (&v_table,0,sizeof(v_table)); v_table.registration_state_changed=registration_state_changed; v_table.auth_info_requested=auth_info_requested; @@ -194,7 +202,7 @@ static void authenticated_register_with_no_initial_credentials(){ linphone_core_set_user_data(lc,&stat); counters= (stats*)linphone_core_get_user_data(lc); counters->number_of_auth_info_requested=0; - register_with_refresh(lc,FALSE,auth_domain,NULL); + register_with_refresh(lc,FALSE,auth_domain,route); CU_ASSERT_EQUAL(counters->number_of_auth_info_requested,1); } @@ -212,13 +220,15 @@ static void authenticated_register_with_late_credentials(){ LinphoneCore* lc; stats stat; stats* counters; + char route[256]; + sprintf(route,"sip:%s",test_route); memset (&v_table,0,sizeof(v_table)); v_table.registration_state_changed=registration_state_changed; v_table.auth_info_requested=auth_info_requested2; lc = linphone_core_new(&v_table,NULL,NULL,NULL); linphone_core_set_user_data(lc,&stat); counters = (stats*)linphone_core_get_user_data(lc); - register_with_refresh_base_2(lc,FALSE,auth_domain,NULL,TRUE); + register_with_refresh_base_2(lc,FALSE,auth_domain,route,TRUE); CU_ASSERT_EQUAL(counters->number_of_auth_info_requested,1); linphone_core_destroy(lc); }