]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
like in chan_sip's sip_new skinny should copy the configured parkinglot from a line...
authorMichiel van Baak <michiel@vanbaak.info>
Wed, 2 Sep 2009 16:20:23 +0000 (16:20 +0000)
committerMichiel van Baak <michiel@vanbaak.info>
Wed, 2 Sep 2009 16:20:23 +0000 (16:20 +0000)
This makes callparking honor the configured parkinglot for skinny lines as well.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@215479 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_skinny.c

index 546c7eb5ee168639b92e09a4573e5b1e08fa06c0..947b1b6455bb5d04c7ffab147087aebe757a5f2b 100644 (file)
@@ -4414,6 +4414,8 @@ static struct ast_channel *skinny_new(struct skinny_line *l, int state, const ch
                        ast_string_field_set(tmp, language, l->language);
                if (!ast_strlen_zero(l->accountcode))
                        ast_string_field_set(tmp, accountcode, l->accountcode);
+               if (!ast_strlen_zero(l->parkinglot))
+                       ast_string_field_set(tmp, parkinglot, l->parkinglot);
                if (l->amaflags)
                        tmp->amaflags = l->amaflags;