Module: sip-router Branch: master Commit: 9cb26a2eefe93e0ca162db917e34e784e703770a URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=9cb26a2e...
Author: Andrew Mortensen admorten@isc.upenn.edu Committer: Andrew Mortensen admorten@isc.upenn.edu Date: Thu Feb 21 22:32:23 2013 -0500
sca: ensure SCA caller has correct callee CLI when callee is non-SCA.
- previously only set when callee was also SCA
---
modules/sca/sca_call_info.c | 9 ++++++--- 1 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/modules/sca/sca_call_info.c b/modules/sca/sca_call_info.c index d717eb1..8e893f5 100644 --- a/modules/sca/sca_call_info.c +++ b/modules/sca/sca_call_info.c @@ -1185,17 +1185,20 @@ sca_call_info_invite_reply_200_handler( sip_msg_t *msg,
if ( call_info != NULL ) { /* this implies To-AoR is SCA */ - rc = sca_call_info_uri_update( to_aor, call_info, from, to, contact_uri, &msg->callid->body ); - - rc = sca_call_info_insert_asserted_identity( msg, contact_uri, to ); }
if ( !sca_uri_is_shared_appearance( sca, from_aor )) { goto done; }
+ if ( sca_call_info_insert_asserted_identity( msg, contact_uri, to ) < 0 ) { + LM_WARN( "sca_call_info_invite_reply_200_handler: failed to " + "add P-Asserted-Identity header to response from %.*s", + STR_FMT( contact_uri )); + } + /* * XXX in a reply with no Call-Info header, we look for a matching * dialog for the From URI. if we don't find one, this isn't an SCA