From: Mark Spencer Date: Sat, 8 May 2004 14:45:49 +0000 (+0000) Subject: Copy musicclass to right field (bug #1582) X-Git-Tag: 1.0.0-rc1~521 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=297e62b8be41e32390d04aa371a969ca12f4c54b;p=thirdparty%2Fasterisk.git Copy musicclass to right field (bug #1582) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2924 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index b3c6290e2c..45603ca4f2 100755 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -6648,7 +6648,7 @@ static struct sip_user *build_user(char *name, struct ast_variable *v) /* set default context */ strncpy(user->context, context, sizeof(user->context)-1); strncpy(user->language, language, sizeof(user->language)-1); - strncpy(user->language, globalmusicclass, sizeof(user->musicclass)-1); + strncpy(user->musicclass, globalmusicclass, sizeof(user->musicclass)-1); while(v) { if (!strcasecmp(v->name, "context")) { strncpy(user->context, v->value, sizeof(user->context));