diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-06-16 20:03:18 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-06-16 20:03:18 +0000 |
commit | e9da8938e3a5bbcdbaed21e4e8407f3d3ee693af (patch) | |
tree | e4a898f08c82306b8d455c2259fd612ff532dc3d /channels/chan_h323.c | |
parent | 2d62682dfeef12e8918536b9abfd55b32c5be410 (diff) |
Merged revisions 123114 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
................
r123114 | tilghman | 2008-06-16 14:57:05 -0500 (Mon, 16 Jun 2008) | 10 lines
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: http://svn.digium.com/svn/asterisk/branches/1.6.0@123116 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_h323.c')
-rw-r--r-- | channels/chan_h323.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/channels/chan_h323.c b/channels/chan_h323.c index 614090b87..1f0ca6d4d 100644 --- a/channels/chan_h323.c +++ b/channels/chan_h323.c @@ -1533,6 +1533,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) |