summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorMatteo Brancaleoni <mbrancaleoni@espia.it>2003-03-06 06:00:17 +0000
committerMatteo Brancaleoni <mbrancaleoni@espia.it>2003-03-06 06:00:17 +0000
commita8723ad68f80bafb65ee6a66d2b4b1f6a7ee01c8 (patch)
treea465cf508d2edd9491659377160fbecff07c950a /apps
parentfa50831650a4485ada9ad391134c45f5c348defc (diff)
Thu Mar 6 07:00:01 CET 2003
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@633 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps')
-rwxr-xr-xapps/app_voicemail.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c
index 4af888f1f..191b21a2c 100755
--- a/apps/app_voicemail.c
+++ b/apps/app_voicemail.c
@@ -993,11 +993,8 @@ static int adsi_load_vmail(struct ast_channel *chan, int *useadsi)
static void adsi_begin(struct ast_channel *chan, int *useadsi)
{
int x;
- if(!strcasecmp(chan->type, "sip")){
- *useadsi = 0;
+ if (!adsi_available(chan))
return;
- }
-
x = adsi_load_session(chan, adapp, adver, 1);
if (x < 0)
return;
@@ -1309,9 +1306,7 @@ static void adsi_goodbye(struct ast_channel *chan)
{
char buf[256];
int bytes=0;
- if(!strcasecmp(chan->type, "sip")){
- return;
- }
+
if (!adsi_available(chan))
return;
bytes += adsi_logo(buf + bytes);