Commit 0c52c683 authored by Pekka Pessi's avatar Pekka Pessi
Browse files

sip_util.c: fixed return value for 405.

darcs-hash:20060831115743-65a35-7f20ea53679ef08e6cc7d827df602043e82283ff.gz
parent 0c8e8812
...@@ -1003,7 +1003,14 @@ int sip_response_terminates_dialog(int response_code, ...@@ -1003,7 +1003,14 @@ int sip_response_terminates_dialog(int response_code,
given usage affects only that usage, but does not affect other given usage affects only that usage, but does not affect other
usages of the dialog. usages of the dialog.
*/ */
return terminate_usage; switch (method) {
case sip_method_notify:
case sip_method_subscribe:
case sip_method_invite:
return terminate_usage;
}
*return_graceful_terminate_usage = 0;
return 0;
case 406: /** @par 406 Not Acceptable case 406: /** @par 406 Not Acceptable
......
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