mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-09 21:14:02 +00:00
SFSIP-180 report hack in sofia lib to pekka for better answer
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15190 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -943,14 +943,19 @@ static int nua_session_client_response(nua_client_request_t *cr,
|
||||
SU_DEBUG_5(("nua(%p): %s: %s %s in %u %s\n", \
|
||||
(void *)nh, cr->cr_method_name, (m), received, status, phrase))
|
||||
|
||||
retry:
|
||||
|
||||
if (!ss || !sip || 300 <= status)
|
||||
/* Xyzzy */;
|
||||
else if (!session_get_description(sip, &sdp, &len))
|
||||
/* No SDP */;
|
||||
else if (cr->cr_answer_recv) {
|
||||
/* Ignore spurious answers after completing O/A */
|
||||
LOG3("ignoring duplicate");
|
||||
sdp = NULL;
|
||||
//LOG3("ignoring duplicate");
|
||||
//sdp = NULL;
|
||||
// we need to make sure its *actually* a dup, so we can't assume for now.
|
||||
cr->cr_answer_recv = 0;
|
||||
goto retry;
|
||||
}
|
||||
else if (cr->cr_offer_sent) {
|
||||
/* case 1: answer to our offer */
|
||||
|
||||
Reference in New Issue
Block a user