Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#1914 closed enhancement (fixed)

Ignore STUN error after pjstun_get_mapped_addr2()

Reported by: riza Owned by: bennylp
Priority: normal Milestone: release-2.5
Component: pjsua-lib Version: trunk
Keywords: Cc:
Backport to 1.x milestone: Backported: no

Description

On media stream creation, the stack will call pjstun_get_mapped_addr2() and might fail if the STUN server is unreachable.

Scenario:

  1. Start PJSIP with STUN server A, STUN server B (both STUN servers are reachable)
  2. PJSIP will use STUN server A
  3. STUN server A becomes unreachable, STUN servr B remains reachable
  4. User dials a call
  5. PJSIP tries to resolve call media with STUN server A, but fails. (PJLIB_UTIL_ESTUNNOTRESPOND)
  6. The stack will not fallback to STUN server B nor continue without STUN.

This patch will ignore the error from pjstun_get_mapped_addr2() using pjsua_config::stun_ignore_failure.

Change History (2)

comment:1 Changed 9 years ago by riza

  • Resolution set to fixed
  • Status changed from new to closed

In 5283:

Fixed #1914: Ignore STUN error after pjstun_get_mapped_addr2().

comment:2 Changed 9 years ago by riza

In 5288:

Fixed #1914: onCreateMediaTransport() callback might not be called on PJSUA2.

Version 0, edited 9 years ago by riza (next)
Note: See TracTickets for help on using tickets.