[asterisk-commits] rizzo: branch rizzo/astobj2 r51284 - /team/rizzo/astobj2/channels/chan_sip.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Fri Jan 19 02:16:58 MST 2007


Author: rizzo
Date: Fri Jan 19 03:16:57 2007
New Revision: 51284

URL: http://svn.digium.com/view/asterisk?view=rev&rev=51284
Log:

merge from trunk 51244,

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)



Modified:
    team/rizzo/astobj2/channels/chan_sip.c

Modified: team/rizzo/astobj2/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/team/rizzo/astobj2/channels/chan_sip.c?view=diff&rev=51284&r1=51283&r2=51284
==============================================================================
--- team/rizzo/astobj2/channels/chan_sip.c (original)
+++ team/rizzo/astobj2/channels/chan_sip.c Fri Jan 19 03:16:57 2007
@@ -3021,6 +3021,8 @@
 	ast_string_field_set(dialog, username, peer->username);
 	ast_string_field_set(dialog, secret, peer->secret);
 	ast_string_field_set(dialog, md5secret, 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)) {



More information about the asterisk-commits mailing list