Merged revisions 123113 via svnmerge from
[asterisk/asterisk.git] / channels / chan_skinny.c
index 6a889a4..5758a27 100644 (file)
@@ -3039,6 +3039,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")) {