Module: sip-router
Branch: master
Commit: 1d63ad4715cf046955f27726f3d0003fcfb5ffac
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=1d63ad4…
Author: Andrew Mortensen <admorten(a)isc.upenn.edu>
Committer: Andrew Mortensen <admorten(a)isc.upenn.edu>
Date: Mon Jan 27 12:03:55 2014 -0500
modules/sca: use sca_create_canonical_aor in INVITE/2OO OK handler.
- abstract AoR construction for future improvements.
---
modules/sca/sca_call_info.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/modules/sca/sca_call_info.c b/modules/sca/sca_call_info.c
index 6fa933f..b6d6b38 100644
--- a/modules/sca/sca_call_info.c
+++ b/modules/sca/sca_call_info.c
@@ -1288,11 +1288,9 @@ sca_call_info_invite_reply_200_handler( sip_msg_t *msg,
"parse_uri <%.*s> failed", STR_FMT( contact_uri ));
goto done;
}
- if ( sca_aor_create_from_info( &app_uri_aor, c_uri.type, &c_uri.user,
- &GET_TO_PURI( msg )->host, &GET_TO_PURI( msg )->port ) < 0 ) {
+ if ( sca_create_canonical_aor( msg, &app_uri_aor ) < 0 ) {
LM_ERR( "sca_call_info_invite_200_reply_handler: "
- "sca_aor_create_from_info %.*s and %.*s failed",
- STR_FMT( contact_uri ), STR_FMT( &to->uri ));
+ "sca_create_canonical_aor failed" );
goto done;
}