summaryrefslogtreecommitdiff
path: root/pjnath/src
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2007-03-27 11:00:38 +0000
committerBenny Prijono <bennylp@teluu.com>2007-03-27 11:00:38 +0000
commitd700d4a60001dd6a9c0c515e6cb359c9118d00ce (patch)
tree56d431bc74745df0fe73f41e6e1cf2c0f592d3a4 /pjnath/src
parent63bbc72f8536347656ac59dea7fb9576c82ac55d (diff)
ICE: added media index in pjmedia when handling SDP containing ICE candidates
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1108 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjnath/src')
-rw-r--r--pjnath/src/pjnath-test/ice_test.c11
-rw-r--r--pjnath/src/pjnath-test/test.c2
2 files changed, 11 insertions, 2 deletions
diff --git a/pjnath/src/pjnath-test/ice_test.c b/pjnath/src/pjnath-test/ice_test.c
index f8673356..d9a97ee6 100644
--- a/pjnath/src/pjnath-test/ice_test.c
+++ b/pjnath/src/pjnath-test/ice_test.c
@@ -459,7 +459,11 @@ int ice_test(void)
pj_stun_config_init(&stun_cfg, mem, 0, ioqueue, timer_heap);
- //pj_log_set_level(4);
+#if 1
+ pj_log_set_level(5);
+#endif
+
+ goto test;
/* Basic create/destroy */
rc = ice_basic_create_destroy_test();
@@ -487,10 +491,13 @@ int ice_test(void)
goto on_return;
/* Direct communication with two components */
+test:
rc = perform_ice_test("With two components (RTP and RTCP)", PJ_TRUE, 2, PJ_TRUE, D1, D2, 0, NULL, 0, NULL);
if (rc != 0)
goto on_return;
+ goto on_return;
+
/* Direct communication with mismatch number of components */
/* Direct communication with 2 components and 2 invalid address */
@@ -501,7 +508,7 @@ int ice_test(void)
on_return:
- //pj_log_set_level(3);
+ pj_log_set_level(3);
pj_ioqueue_destroy(stun_cfg.ioqueue);
pj_pool_release(pool);
return rc;
diff --git a/pjnath/src/pjnath-test/test.c b/pjnath/src/pjnath-test/test.c
index 6cc829d5..3dc2085d 100644
--- a/pjnath/src/pjnath-test/test.c
+++ b/pjnath/src/pjnath-test/test.c
@@ -49,9 +49,11 @@ static int test_inner(void)
mem = &caching_pool.factory;
+#if 0
pj_log_set_level(3);
pj_log_set_decor(PJ_LOG_HAS_NEWLINE | PJ_LOG_HAS_TIME |
PJ_LOG_HAS_MICRO_SEC);
+#endif
rc = pj_init();
if (rc != 0) {