diff options
author | Mark Michelson <mmichelson@digium.com> | 2013-07-30 15:17:56 +0000 |
---|---|---|
committer | Mark Michelson <mmichelson@digium.com> | 2013-07-30 15:17:56 +0000 |
commit | 895c8e0d2c97cd04299f3f179e99d8a3873c06c6 (patch) | |
tree | 87aa12b92909a9579198ac486fe8dc902c9d2d5a /res/res_sip_messaging.c | |
parent | 7fded3378948b9076cc092145bb4823a50b8501c (diff) |
Reorganize the ast_sip_endpoint structure into substructures.
(closes issue ASTERISK-22135)
reported by Matt Jordan
Review: https://reviewboard.asterisk.org/r/2707
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@395748 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'res/res_sip_messaging.c')
-rw-r--r-- | res/res_sip_messaging.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/res/res_sip_messaging.c b/res/res_sip_messaging.c index 10d47047f..da5bf0eca 100644 --- a/res/res_sip_messaging.c +++ b/res/res_sip_messaging.c @@ -402,8 +402,8 @@ static enum pjsip_status_code rx_data_to_ast_msg(pjsip_rx_data *rdata, struct as } /* endpoint name */ - if (endpt->id.name.valid) { - CHECK_RES(ast_msg_set_var(msg, "SIP_PEERNAME", endpt->id.name.str)); + if (endpt->id.self.name.valid) { + CHECK_RES(ast_msg_set_var(msg, "SIP_PEERNAME", endpt->id.self.name.str)); } CHECK_RES(headers_to_vars(rdata, msg)); |