From 596f8b51862a9bbcf348c2cd1776a155043233af Mon Sep 17 00:00:00 2001 From: Tilghman Lesher Date: Mon, 16 Jun 2008 19:57:05 +0000 Subject: Merged revisions 123113 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r123113 | tilghman | 2008-06-16 14:50:12 -0500 (Mon, 16 Jun 2008) | 2 lines Port "hasvoicemail" change from SIP to other channel drivers ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@123114 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- channels/chan_h323.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'channels/chan_h323.c') diff --git a/channels/chan_h323.c b/channels/chan_h323.c index bbe055118..9951d1240 100644 --- a/channels/chan_h323.c +++ b/channels/chan_h323.c @@ -1530,6 +1530,10 @@ static struct oh323_peer *build_peer(const char *name, struct ast_variable *v, s ast_log(LOG_ERROR, "Bad ACL entry in configuration line %d : %s\n", v->lineno, v->value); } else if (!strcasecmp(v->name, "mailbox")) { ast_copy_string(peer->mailbox, v->value, sizeof(peer->mailbox)); + } else if (!strcasecmp(v->name, "hasvoicemail")) { + if (ast_true(v->value) && ast_strlen_zero(peer->mailbox)) { + ast_copy_string(peer->mailbox, name, sizeof(peer->mailbox)); + } } } if (!peer->options.dtmfmode) -- cgit v1.2.3