summaryrefslogtreecommitdiff
path: root/channels/chan_skinny.c
diff options
context:
space:
mode:
authorMichiel van Baak <michiel@vanbaak.info>2009-09-02 16:20:23 +0000
committerMichiel van Baak <michiel@vanbaak.info>2009-09-02 16:20:23 +0000
commitd7f27e670597847283244b87dd0eb515e87d97d3 (patch)
treefc3f0b46074e819c90fe7a14e30edd6aff66dffb /channels/chan_skinny.c
parentb5dc4efb582778c5746a4c611bce6ef6aaddf073 (diff)
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: https://origsvn.digium.com/svn/asterisk/trunk@215479 65c4cc65-6c06-0410-ace0-fbb531ad65f3
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 546c7eb5e..947b1b645 100644
--- a/channels/chan_skinny.c
+++ b/channels/chan_skinny.c
@@ -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;