Commit 4c2d0d24 authored by Pekka Pessi's avatar Pekka Pessi

sip_util.c: updated sip_response_terminates_dialog() as per RFC 5057.

Changes handling of 423 in case of SUBSCRIBE.

darcs-hash:20080122161504-65a35-64e99aa5c97846e918f849fad4edf07ac89dde4c.gz
parent 3e19c991
......@@ -883,8 +883,7 @@ sip_security_client_select(sip_security_client_t const *client,
* decide whether to gracefully terminate or not, the
* @a *return_graceful_terminate_usage is left unmodified.
*
* @sa
* http://www.ietf.org/internet-drafts/draft-ietf-sipping-dialogusage-02.txt
* @RFC 5057
*/
int sip_response_terminates_dialog(int response_code,
sip_method_t method,
......@@ -1060,8 +1059,6 @@ int sip_response_terminates_dialog(int response_code,
usage in an existing dialog, no new usage is created and existing
usages are unaffected.
*/
*return_graceful_terminate_usage = 0;
return 0;
case 423: /** @par 423 Interval Too Brief
......@@ -1070,8 +1067,6 @@ int sip_response_terminates_dialog(int response_code,
subscribe usage is not destroyed (or otherwise affected). No
other usages of the dialog are affected.
*/
*return_graceful_terminate_usage = 0;
return sip_method_subscribe == method ? terminate_usage : no_effect;
case 428: /** @par 428 Use Identity Header
......@@ -1079,8 +1074,6 @@ int sip_response_terminates_dialog(int response_code,
the usage. The usage is not affected. The dialog is only
affected by a change in its local @CSeq. No other usages of the
dialog are affected. */
*return_graceful_terminate_usage = 0;
return 0;
case 429: /** @par 429 Provide Referrer Identity
......
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