aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authormatteo <matteo@f38db490-d61c-443f-a65b-d21fe96a405b>2003-03-06 06:00:17 +0000
committermatteo <matteo@f38db490-d61c-443f-a65b-d21fe96a405b>2003-03-06 06:00:17 +0000
commit005002c26620c61597ef18c19707c150b72ffccb (patch)
treea465cf508d2edd9491659377160fbecff07c950a /apps
parentbd3b51afcb0f8c24bd6ae75e54ed9d8256c54cc3 (diff)
Thu Mar 6 07:00:01 CET 2003
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@633 f38db490-d61c-443f-a65b-d21fe96a405b
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);