aboutsummaryrefslogtreecommitdiffstats
path: root/channels/chan_skinny.c
diff options
context:
space:
mode:
authormvanbaak <mvanbaak@f38db490-d61c-443f-a65b-d21fe96a405b>2009-09-02 16:35:21 +0000
committermvanbaak <mvanbaak@f38db490-d61c-443f-a65b-d21fe96a405b>2009-09-02 16:35:21 +0000
commitebab965d032c04601cdcca658be5f94519e2ccee (patch)
tree080d9032d6bf159e55516bdbf5599160774f41cb /channels/chan_skinny.c
parent4c076c2f4b2bc3fe6f42e177d532826ab2d66824 (diff)
Merged revisions 215479 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk ........ r215479 | mvanbaak | 2009-09-02 18:20:23 +0200 (Wed, 02 Sep 2009) | 3 lines like in chan_sip's sip_new skinny should copy the configured parkinglot from a line to the newly created channel. This makes callparking honor the configured parkinglot for skinny lines as well. ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.2@215512 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_skinny.c')
-rw-r--r--channels/chan_skinny.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/channels/chan_skinny.c b/channels/chan_skinny.c
index 00d693540..a9e0afdfd 100644
--- a/channels/chan_skinny.c
+++ b/channels/chan_skinny.c
@@ -4325,6 +4325,8 @@ static struct ast_channel *skinny_new(struct skinny_line *l, int state)
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;