Module: sip-router
Branch: master
Commit: 43cc6015e8604e309672da4d754b5022d1e256c9
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=43cc601…
Author: Andrew Mortensen <admorten(a)isc.upenn.edu>
Committer: Andrew Mortensen <admorten(a)isc.upenn.edu>
Date: Wed Apr 3 14:54:36 2013 -0400
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.
---
modules/sca/sca_subscribe.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules/sca/sca_subscribe.c b/modules/sca/sca_subscribe.c
index 0698464..f30386a 100644
--- a/modules/sca/sca_subscribe.c
+++ b/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 );