From: Jonathan Rose Date: Thu, 26 Jan 2012 19:06:05 +0000 (+0000) Subject: Copy amaflags to sip_pvt from peer during create_addr_from_peer X-Git-Tag: 1.8.10.0-rc1~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=301cc6b1c0b71ce04a1d7290cec986a9cfced304;p=thirdparty%2Fasterisk.git 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 git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@352755 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 99a3d55da6..02e16280d5 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -5264,6 +5264,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); dialog->capability = peer->capability; dialog->prefs = peer->prefs; + dialog->amaflags = peer->amaflags; ast_string_field_set(dialog, engine, peer->engine);