Changes between Version 1 and Version 2 of sound-problems/Getting_Around_Nat
- Timestamp:
- Jul 13, 2015 6:54:15 AM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
sound-problems/Getting_Around_Nat
v1 v2 3 3 If [wiki:audio-check-rx-rtp no RTP packet is received] (or [wiki:audio-problem-local-no-audio you can't any hear audio]), perhaps it's because of the NAT device is blocking the incoming RTP packets. 4 4 5 == Use STUN ==5 == Use STUN and/or TURN and/or ICE == 6 6 One of the obvious reason why no incoming packet is received is because the application sends private IP address as its RTP address. This can be verified by looking at the SDP {{{c=}}} line that is sent by the application. 7 7 8 If the SDP {{{c=}}} line contains private address, then probably you need to use STUN . You can enable STUN support in ''pjsua'' by using '''{{{--stun-srv}}}''' option from the command line. For example:8 If the SDP {{{c=}}} line contains private address, then probably you need to use STUN or TURN. You can enable STUN support in ''pjsua'' by using '''{{{--stun-srv}}}''' option from the command line. For example: 9 9 {{{ 10 $ ./pjsua -- use-stunstun.pjsip.org10 $ ./pjsua --stun-srv stun.pjsip.org 11 11 }}} 12 12 13 13 Another example to use TURN and ICE: 14 {{{ 15 $ ./pjsua --use-ice --use-turn --turn-srv turn.pjsip.org --turn-user [username] --turn-passwd *** 16 }}} 14 17 15 18 == Disabling VAD ==