From f05679d13ececf9e78d26c16df6f62e622873666 Mon Sep 17 00:00:00 2001 From: tilghman Date: Mon, 16 Jun 2008 19:50:12 +0000 Subject: 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 --- 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 3ae300876..710ebf37e 100644 --- a/channels/chan_h323.c +++ b/channels/chan_h323.c @@ -1489,6 +1489,10 @@ static struct oh323_peer *build_peer(const char *name, struct ast_variable *v, s peer->ha = ast_append_ha(v->name, v->value, peer->ha); } 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)); + } } } ASTOBJ_UNMARK(peer); -- cgit v1.2.3