diff options
author | Jonathan Rose <jrose@digium.com> | 2012-01-26 19:09:02 +0000 |
---|---|---|
committer | Jonathan Rose <jrose@digium.com> | 2012-01-26 19:09:02 +0000 |
commit | f4d98aeb28c11bffda2cd7af90c980a19922849e (patch) | |
tree | e0bbaf54c4170024c362c86c6809491349a57562 /channels/chan_sip.c | |
parent | ed32b1c098d6c1654e18a2a4f8e182af417d5657 (diff) |
Copy amaflags to sip_pvt from peer during create_addr_from_peer
For whatever reason, we don't have a single function for copying data like this
from SIP peers to the SIP pvt. This patch adds the copying of amaflags to the
sip_pvt, but it would probably be worth discussing this function along with
the others that essentially just copy some amount of data from a peer to a
private.
(Closes issue ASTERISK-19029)
Reported by: Matt Lehner
........
Merged revisions 352755 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........
Merged revisions 352756 from http://svn.asterisk.org/svn/asterisk/branches/10
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@352757 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/chan_sip.c')
-rw-r--r-- | channels/chan_sip.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 9b07ac490..9dfde12e0 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -5301,6 +5301,7 @@ static int create_addr_from_peer(struct sip_pvt *dialog, struct sip_peer *peer) ast_copy_flags(&dialog->flags[2], &peer->flags[2], SIP_PAGE3_FLAGS_TO_COPY); ast_format_cap_copy(dialog->caps, peer->caps); dialog->prefs = peer->prefs; + dialog->amaflags = peer->amaflags; ast_string_field_set(dialog, engine, peer->engine); |