diff options
author | Benny Prijono <bennylp@teluu.com> | 2007-09-24 19:46:41 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2007-09-24 19:46:41 +0000 |
commit | c326f938bbf72127885ac09179912b8a2cbfb030 (patch) | |
tree | 3ed5b986b9ec57dc1a5c3614f68ea3fcfeee907d /pjnath/src/pjnath/ice_session.c | |
parent | 21f0a8aa71305095f9d7682c571ca56c1559ac6e (diff) |
Ticket #382: Updated ICE from draft-ietf-mmusic-ice-14 to ice-18 specification, and also done some other tweaks as well
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1450 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjnath/src/pjnath/ice_session.c')
-rw-r--r-- | pjnath/src/pjnath/ice_session.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/pjnath/src/pjnath/ice_session.c b/pjnath/src/pjnath/ice_session.c index 94e5989d..695c66d0 100644 --- a/pjnath/src/pjnath/ice_session.c +++ b/pjnath/src/pjnath/ice_session.c @@ -214,7 +214,7 @@ static pj_status_t init_comp(pj_ice_sess *ice, /* Create STUN session for this candidate */ status = pj_stun_session_create(&ice->stun_cfg, NULL, - &sess_cb, PJ_FALSE, + &sess_cb, PJ_TRUE, &comp->stun_sess); if (status != PJ_SUCCESS) return status; @@ -296,17 +296,17 @@ PJ_DEF(pj_status_t) pj_ice_sess_create(pj_stun_config *stun_cfg, } if (local_ufrag == NULL) { - ice->rx_ufrag.ptr = (char*) pj_pool_alloc(ice->pool, 16); - pj_create_random_string(ice->rx_ufrag.ptr, 16); - ice->rx_ufrag.slen = 16; + ice->rx_ufrag.ptr = (char*) pj_pool_alloc(ice->pool, PJ_ICE_UFRAG_LEN); + pj_create_random_string(ice->rx_ufrag.ptr, PJ_ICE_UFRAG_LEN); + ice->rx_ufrag.slen = PJ_ICE_UFRAG_LEN; } else { pj_strdup(ice->pool, &ice->rx_ufrag, local_ufrag); } if (local_passwd == NULL) { - ice->rx_pass.ptr = (char*) pj_pool_alloc(ice->pool, 16); - pj_create_random_string(ice->rx_pass.ptr, 16); - ice->rx_pass.slen = 16; + ice->rx_pass.ptr = (char*) pj_pool_alloc(ice->pool, PJ_ICE_UFRAG_LEN); + pj_create_random_string(ice->rx_pass.ptr, PJ_ICE_UFRAG_LEN); + ice->rx_pass.slen = PJ_ICE_UFRAG_LEN; } else { pj_strdup(ice->pool, &ice->rx_pass, local_passwd); } |