summaryrefslogtreecommitdiff
path: root/pjnath
diff options
context:
space:
mode:
authorNanang Izzuddin <nanang@teluu.com>2016-06-13 07:11:41 +0000
committerNanang Izzuddin <nanang@teluu.com>2016-06-13 07:11:41 +0000
commit78bf67e1d5dc32e877e490edb1b927776c539523 (patch)
treee9f8b0e00b11bd964447264d145a6cca478e3417 /pjnath
parent4f9cc0791cef6f1c4460cd941c0bd19afe4c6c0d (diff)
Re #422: Enable IPv6 in ICE transport in pjsua-lib:
- currently only IPv6 host candidate will be generated, still not sure whether IPv6 NAT is really used in real world - if the account enables IPv6 media and the host has IPv4 address, ICE will generate IPv4+IPv6 candidates, it should be very useful in NAT64 environment, and should not add delay in ICE nego in IPv6 only environment (note: candidate check pair must have same IP address family). git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5342 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjnath')
-rw-r--r--pjnath/src/pjnath/ice_strans.c16
1 files changed, 12 insertions, 4 deletions
diff --git a/pjnath/src/pjnath/ice_strans.c b/pjnath/src/pjnath/ice_strans.c
index 592b1a03..fead0c04 100644
--- a/pjnath/src/pjnath/ice_strans.c
+++ b/pjnath/src/pjnath/ice_strans.c
@@ -674,15 +674,23 @@ static pj_status_t create_comp(pj_ice_strans *ice_st, unsigned comp_id)
/* Create STUN transport if configured */
for (i=0; i<ice_st->cfg.stun_tp_cnt; ++i) {
status = add_stun_and_host(ice_st, comp, i);
- if (status != PJ_SUCCESS)
- return status;
+ if (status != PJ_SUCCESS) {
+ PJ_PERROR(3,(ice_st->obj_name, status,
+ "Failed creating STUN transport #%d for comp %d",
+ i, comp->comp_id));
+ //return status;
+ }
}
/* Create TURN relay if configured. */
for (i=0; i<ice_st->cfg.turn_tp_cnt; ++i) {
status = add_update_turn(ice_st, comp, i);
- if (status != PJ_SUCCESS)
- return status;
+ if (status != PJ_SUCCESS) {
+ PJ_PERROR(3,(ice_st->obj_name, status,
+ "Failed creating TURN transport #%d for comp %d",
+ i, comp->comp_id));
+ //return status;
+ }
}
/* It's possible that we end up without any candidates */