res_pjsip: Failover when server is not available
authorKevin Harwell <kharwell@digium.com>
Tue, 30 Jun 2015 20:19:31 +0000 (15:19 -0500)
committerKevin Harwell <kharwell@digium.com>
Mon, 6 Jul 2015 15:49:08 +0000 (10:49 -0500)
commit74135c8efa826a9ce47604dadb6a65b56c10c71d
tree2e4a36d9ef747d2abcabd836dc88dff5243d74fd
parentc12ace3ab31bd61606252f5a3721ce720d2ad209
res_pjsip: Failover when server is not available

Previously Asterisk did not properly failover to the next resolved DNS
address when a endpoint could not be reached. With this patch, and while
using res_pjsip, SIP requests (both in/out of dialog) now attempt to use
the next address in the list of resolved addresses until a proper response
is received or no more addresses are left.

ASTERISK-25076 #close
Reported by: Joshua Colp

Change-Id: Ief14f4ebd82474881f72f4538f4577f30af2a764
include/asterisk/res_pjsip.h
res/res_pjsip.c
res/res_pjsip_session.c