[asterisk-commits] branch russell/hold_handling r37876 - /team/russell/hold_handling/channels/

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Mon Jul 17 21:45:57 MST 2006


Author: russell
Date: Mon Jul 17 23:45:57 2006
New Revision: 37876

URL: http://svn.digium.com/view/asterisk?rev=37876&view=rev
Log:
set the correct default and honor mohinterpret setting

Modified:
    team/russell/hold_handling/channels/chan_skinny.c

Modified: team/russell/hold_handling/channels/chan_skinny.c
URL: http://svn.digium.com/view/asterisk/team/russell/hold_handling/channels/chan_skinny.c?rev=37876&r1=37875&r2=37876&view=diff
==============================================================================
--- team/russell/hold_handling/channels/chan_skinny.c (original)
+++ team/russell/hold_handling/channels/chan_skinny.c Mon Jul 17 23:45:57 2006
@@ -733,7 +733,7 @@
 static pthread_t accept_t;
 static char context[AST_MAX_CONTEXT] = "default";
 static char language[MAX_LANGUAGE] = "";
-static char mohinterpret[MAX_MUSICCLASS] = "";
+static char mohinterpret[MAX_MUSICCLASS] = "default";
 static char cid_num[AST_MAX_EXTENSION] = "";
 static char cid_name[AST_MAX_EXTENSION] = "";
 static char linelabel[AST_MAX_EXTENSION] ="";
@@ -2503,7 +2503,7 @@
 		transmit_tone(s, SKINNY_SILENCE);
 		break;
 	case AST_CONTROL_HOLD:
-		ast_moh_start(ast, data, NULL);
+		ast_moh_start(ast, data, l->mohinterpret);
 		break;
 	case AST_CONTROL_UNHOLD:
 		ast_moh_stop(ast);



More information about the asterisk-commits mailing list