Copy musicclass to right field (bug #1582)
authorMark Spencer <markster@digium.com>
Sat, 8 May 2004 14:45:49 +0000 (14:45 +0000)
committerMark Spencer <markster@digium.com>
Sat, 8 May 2004 14:45:49 +0000 (14:45 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2924 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index b3c6290..45603ca 100755 (executable)
@@ -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));