Commit 5aa3efa1 authored by Pekka Pessi's avatar Pekka Pessi

nua_stack.c, nua_session.c: moved OPTIONS probe hook into nua_stack.c

darcs-hash:20070108150344-65a35-d3e37860a371269ea672cfb71f4d71066ae1c4aa.gz
parent 93cf4ff2
......@@ -3807,12 +3807,6 @@ int nua_stack_process_options(nua_t *nua,
sip_t const *sip)
{
nua_server_request_t *sr, sr0[1];
int done;
/* Hook to outbound */
done = nua_registration_process_request(nua->nua_registrations, irq, sip);
if (done)
return done;
sr = nua_server_request(nua, nh, irq, sip, SR_INIT(sr0), sizeof *sr,
respond_to_options, 0);
......
......@@ -1148,6 +1148,8 @@ int nua_stack_process_request(nua_handle_t *nh,
char const *user_agent = NH_PGET(nh, user_agent);
sip_supported_t const *supported = NH_PGET(nh, supported);
sip_allow_t const *allow = NH_PGET(nh, allow);
int status;
enter;
nta_incoming_tag(irq, NULL);
......@@ -1231,6 +1233,11 @@ int nua_stack_process_request(nua_handle_t *nh,
return nua_stack_process_register(nua, nh, irq, sip);
case sip_method_options:
/* Hook to outbound */
status = nua_registration_process_request(nua->nua_registrations, irq, sip);
if (status)
return status;
return nua_stack_process_options(nua, nh, irq, sip);
case sip_method_refer:
......
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