#1918 closed enhancement (fixed)
Add API to update STUN servers and option to retry STUN for media on failure
Reported by: | ming | Owned by: | bennylp |
---|---|---|---|
Priority: | normal | Milestone: | release-2.5.1 |
Component: | pjsua-lib | Version: | trunk |
Keywords: | Cc: | ||
Backport to 1.x milestone: | Backported: | no |
Description
Issue:
- Start PJSIP with STUN server A, STUN server B (both STUN servers are reachable)
- PJSIP will sue STUN server A
- STUN server A becomes unreachable, STUN servr B remains reachable
- User dials a call
- PJSIP tries to resolve call media with STUN server A, but fails. (PJLIB_UTIL_ESTUNNOTRESPOND)
- PJSIP does NOT try to fall back to STUN server B (issue)
The ticket will add an API pjsua_update_stun_servers() to update STUN servers list after startup (previously, it can only be specified prior to calling pjsua_init()). Then when call media fails due to pjstun_get_mapped_addr(), we add an option PJSUA_STUN_RETRY_ON_FAILURE in pjsua_acc_config.media_stun_use (by default it's disabled/no retry), which enables retrying other STUN servers when the above scenario happens.
Change History (3)
comment:1 Changed 9 years ago by ming
- Resolution set to fixed
- Status changed from new to closed
comment:2 Changed 9 years ago by riza
In 5307:
comment:3 Changed 9 years ago by nanang
In 5326:
Note: See
TracTickets for help on using
tickets.
In 5297: