summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Colp <jcolp@digium.com>2007-01-18 18:39:21 +0000
committerJoshua Colp <jcolp@digium.com>2007-01-18 18:39:21 +0000
commit1a06a5825076e0c3db030c69f0924674cffe50c5 (patch)
tree66b9334d8ebbde50bde4fba50696c80146bd1649
parent11dd11e5a196d61b7e00d2fd86efaa384b6e003d (diff)
Merged revisions 51243 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r51243 | file | 2007-01-18 13:36:35 -0500 (Thu, 18 Jan 2007) | 2 lines Copy MOH settings when calling a peer so that if they put someone on hold or get put on hold themselves they get the right music class. (issue #8840 reported by mdu113) ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@51244 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rw-r--r--channels/chan_sip.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index e115cf1c9..833202bf7 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -2745,6 +2745,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)) {