summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2010-01-04 13:08:31 +0000
committerBenny Prijono <bennylp@teluu.com>2010-01-04 13:08:31 +0000
commit2aabb553061330da0b8cc97d488b89e9213361c9 (patch)
tree72e190d11d51d938c6be8b7927c14d3f2a08cee0
parentce2d9eacaa82339d8d66e95166234f78106f478d (diff)
Misc fix (#1003): resolve NAT type after mapped addresses for SIP/RTP/RTCP sockets have been resolved, so reduce chattiness during initialization and simplify debugging related to STUN problems
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3041 74dad513-b988-da41-8d7b-12977e46ad98
-rw-r--r--pjsip/src/pjsua-lib/pjsua_media.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/pjsip/src/pjsua-lib/pjsua_media.c b/pjsip/src/pjsua-lib/pjsua_media.c
index ebabd8e2..3a6bb04f 100644
--- a/pjsip/src/pjsua-lib/pjsua_media.c
+++ b/pjsip/src/pjsua-lib/pjsua_media.c
@@ -334,9 +334,6 @@ pj_status_t pjsua_media_subsys_init(const pjsua_media_config *cfg)
}
#endif
- /* Perform NAT detection */
- pjsua_detect_nat_type();
-
return PJ_SUCCESS;
}
@@ -641,6 +638,9 @@ pj_status_t pjsua_media_subsys_start(void)
pj_timer_entry_init(&pjsua_var.snd_idle_timer, PJ_FALSE, NULL,
&close_snd_timer_cb);
+ /* Perform NAT detection */
+ pjsua_detect_nat_type();
+
return PJ_SUCCESS;
}