mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-25 20:19:36 +00:00
revert some useless differences from the official sofia-sip tree
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4281 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
5578b9a889
commit
e77cedb948
@ -2043,20 +2043,8 @@ int nua_invite_server_report(nua_server_request_t *sr, tagi_t const *tags)
|
|||||||
}
|
}
|
||||||
|
|
||||||
assert(ss);
|
assert(ss);
|
||||||
#if 1
|
|
||||||
assert(ss->ss_state != nua_callstate_calling);
|
assert(ss->ss_state != nua_callstate_calling);
|
||||||
assert(ss->ss_state != nua_callstate_proceeding);
|
assert(ss->ss_state != nua_callstate_proceeding);
|
||||||
#else
|
|
||||||
// assert(ss->ss_state != nua_callstate_calling);
|
|
||||||
// assert(ss->ss_state != nua_callstate_proceeding);
|
|
||||||
if(ss->ss_state == nua_callstate_calling || ss->ss_state != nua_callstate_proceeding) {
|
|
||||||
/* somthing is badly wrong here. Lets kill it gracefully for now */
|
|
||||||
sr_status(sr, SIP_500_INTERNAL_SERVER_ERROR);
|
|
||||||
signal_call_state_change(nh, NULL, status, phrase,
|
|
||||||
nua_callstate_terminated);
|
|
||||||
return retval;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Update session state */
|
/* Update session state */
|
||||||
if (status < 300 || application != 0)
|
if (status < 300 || application != 0)
|
||||||
@ -2214,7 +2202,7 @@ int process_cancel(nua_server_request_t *sr,
|
|||||||
ss && (ss == nua_session_usage_get(nh->nh_ds))) {
|
ss && (ss == nua_session_usage_get(nh->nh_ds))) {
|
||||||
nua_stack_event(nh->nh_nua, nh, cancel, nua_i_cancel, SIP_200_OK, NULL);
|
nua_stack_event(nh->nh_nua, nh, cancel, nua_i_cancel, SIP_200_OK, NULL);
|
||||||
|
|
||||||
SR_STATUS1(sr, SIP_487_REQUEST_TERMINATED);
|
SR_STATUS1(sr, SIP_487_REQUEST_TERMINATED);
|
||||||
|
|
||||||
nua_server_respond(sr, NULL);
|
nua_server_respond(sr, NULL);
|
||||||
nua_server_report(sr);
|
nua_server_report(sr);
|
||||||
|
@ -930,10 +930,8 @@ sres_query(sres_resolver_t *res,
|
|||||||
SU_DEBUG_9(("sres_query(%p, %p, %s, \"%s\") called\n",
|
SU_DEBUG_9(("sres_query(%p, %p, %s, \"%s\") called\n",
|
||||||
(void *)res, (void *)context, sres_record_type(type, b), domain));
|
(void *)res, (void *)context, sres_record_type(type, b), domain));
|
||||||
|
|
||||||
if (res == NULL || domain == NULL) {
|
if (res == NULL || domain == NULL)
|
||||||
su_seterrno(EFAULT);
|
return su_seterrno(EFAULT), (void *)NULL;
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
dlen = strlen(domain);
|
dlen = strlen(domain);
|
||||||
if (dlen > SRES_MAXDNAME ||
|
if (dlen > SRES_MAXDNAME ||
|
||||||
@ -945,10 +943,8 @@ sres_query(sres_resolver_t *res,
|
|||||||
/* Reread resolv.conf if needed */
|
/* Reread resolv.conf if needed */
|
||||||
sres_resolver_update(res, 0);
|
sres_resolver_update(res, 0);
|
||||||
|
|
||||||
if (res->res_n_servers == 0) {
|
if (res->res_n_servers == 0)
|
||||||
su_seterrno(ENETDOWN);
|
return (void)su_seterrno(ENETDOWN), (sres_query_t *)NULL;
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
query = sres_query_alloc(res, callback, context, type, domain);
|
query = sres_query_alloc(res, callback, context, type, domain);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user