Commit d8a38739 authored by Pekka Pessi's avatar Pekka Pessi
Browse files

Fixed problem with initial un-REGISTER by test_nua.c in test_proxy.c

darcs-hash:20060324161801-65a35-bec9bb4e4732c8cbd6e17b9c37374c2b6d17b860.gz
parent d1259899
......@@ -602,10 +602,6 @@ int process_register(struct proxy *proxy,
if (status)
return status;
status = check_out_of_order_unregister(e, sip);
if (status)
return status;
e = registration_entry_find(proxy, sip->sip_to->a_url);
if (!sip->sip_contact) {
......@@ -615,6 +611,10 @@ int process_register(struct proxy *proxy,
return 200;
}
status = check_out_of_order_unregister(e, sip);
if (status)
return status;
if (!e)
e = registration_entry_new(proxy, sip->sip_to->a_url);
......@@ -663,6 +663,9 @@ int check_out_of_order_unregister(struct registration_entry *e,
if (!sip->sip_contact || sip->sip_contact->m_url->url_type != url_any)
return 0;
if (e == NULL)
return 0;
id = sip->sip_call_id;
/* RFC 3261 subsection 10.3 step 6: */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment