Module: sip-router
Branch: master
Commit: 27d02adf7bd3405cd67d2331ab7aa05b53d97c50
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=27d02ad…
Author: Andrew Mortensen <admorten(a)isc.upenn.edu>
Committer: Andrew Mortensen <admorten(a)isc.upenn.edu>
Date: Mon Dec 10 17:08:51 2012 -0500
sca: ignore transport parameter in RURI when processing SUBSCRIBEs.
- Fix AoR hash lookups when client subscribes over TCP, TLS or SCTP.
- Report from Robert Boisvert.
---
modules/sca/sca_subscribe.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/modules/sca/sca_subscribe.c b/modules/sca/sca_subscribe.c
index 54331ef..2f7a7f0 100644
--- a/modules/sca/sca_subscribe.c
+++ b/modules/sca/sca_subscribe.c
@@ -1043,7 +1043,11 @@ sca_subscription_from_request( sca_mod *scam, sip_msg_t *msg, int
event_type,
}
req_sub->subscriber = contact_uri;
- req_sub->target_aor = REQ_LINE( msg ).uri;
+ if ( sca_uri_extract_aor( &REQ_LINE( msg ).uri, &req_sub->target_aor) <
0) {
+ LM_ERR( "Failed to extract AoR from RURI %.*s",
+ STR_FMT( &REQ_LINE( msg ).uri ));
+ goto error;
+ }
req_sub->event = event_type;
req_sub->index = SCA_CALL_INFO_APPEARANCE_INDEX_ANY;
req_sub->expires = expires;