mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-22 12:52:33 +00:00
Port "hasvoicemail" change from SIP to other channel drivers
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@123113 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -3728,6 +3728,10 @@ static struct mgcp_gateway *build_gateway(char *cat, struct ast_variable *v)
|
||||
canreinvite = 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, gw->name, sizeof(mailbox));
|
||||
}
|
||||
} else if (!strcasecmp(v->name, "adsi")) {
|
||||
adsi = ast_true(v->value);
|
||||
} else if (!strcasecmp(v->name, "callreturn")) {
|
||||
|
Reference in New Issue
Block a user