diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-06-16 19:50:12 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-06-16 19:50:12 +0000 |
commit | f05679d13ececf9e78d26c16df6f62e622873666 (patch) | |
tree | baad06f487dd60a1b044671ddbd5a345c38457d5 /channels/chan_skinny.c | |
parent | 2bfc978f79c3e6ab7eb6225d63aee28a595ab48e (diff) |
Port "hasvoicemail" change from SIP to other channel drivers
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@123113 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_skinny.c')
-rw-r--r-- | channels/chan_skinny.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/channels/chan_skinny.c b/channels/chan_skinny.c index ee84c666a..2e796e7c4 100644 --- a/channels/chan_skinny.c +++ b/channels/chan_skinny.c @@ -2202,6 +2202,10 @@ static struct skinny_device *build_device(const char *cat, struct ast_variable * cancallforward = ast_true(v->value); } else if (!strcasecmp(v->name, "mailbox")) { ast_copy_string(mailbox, v->value, sizeof(mailbox)); + } else if (!strcasecmp(v->name, "hasvoicemail")) { + if (ast_true(v->value) && ast_strlen_zero(mailbox)) { + ast_copy_string(mailbox, cat, sizeof(mailbox)); + } } else if (!strcasecmp(v->name, "callreturn")) { callreturn = ast_true(v->value); } else if (!strcasecmp(v->name, "callwaiting")) { |