Browse Source

modules/sca: ensure line-seize sub update uses index from request

- lazy removal of line-seize subscriptions that were not used for a
  call could lead to failure to release expired seized appearance.
  Client must have a lingering, expired line-seize subscription that
  hasn't yet been purged by the timer, and indices must not match.
  Fix ensures that the appearance-index from the new line-seize
  subscription overwrites the index left over from the expired one.
Andrew Mortensen 12 years ago
parent
commit
43cc6015e8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      modules/sca/sca_subscribe.c

+ 1 - 1
modules/sca/sca_subscribe.c

@@ -1161,7 +1161,7 @@ sca_handle_subscribe( sip_msg_t *msg, char *p1, char *p2 )
 				"Invalid Call-Info header", msg );
 		goto done;
 	    }
-	    app_idx = call_info.index;
+	    req_sub.index = app_idx = call_info.index;
 	} else {
 	    SCA_SUB_REPLY_ERROR( sca, 400, "Bad Request - "
 			    "missing Call-Info header", msg );