]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Copy MOH settings when calling a peer so that if they put someone on hold or get...
authorJoshua Colp <jcolp@digium.com>
Thu, 18 Jan 2007 18:36:35 +0000 (18:36 +0000)
committerJoshua Colp <jcolp@digium.com>
Thu, 18 Jan 2007 18:36:35 +0000 (18:36 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@51243 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 5b5c6aeb5ae53d7b5a117294865fc4768f9895bf..d767ebe8fe02dc9442153788b02eeb3943c8631b 100644 (file)
@@ -2626,6 +2626,8 @@ static int create_addr_from_peer(struct sip_pvt *dialog, struct sip_peer *peer)
        ast_string_field_set(dialog, username, peer->username);
        ast_string_field_set(dialog, peersecret, peer->secret);
        ast_string_field_set(dialog, peermd5secret, peer->md5secret);
+       ast_string_field_set(dialog, mohsuggest, peer->mohsuggest);
+       ast_string_field_set(dialog, mohinterpret, peer->mohinterpret);
        ast_string_field_set(dialog, tohost, peer->tohost);
        ast_string_field_set(dialog, fullcontact, peer->fullcontact);
        if (!dialog->initreq.headers && !ast_strlen_zero(peer->fromdomain)) {