summaryrefslogtreecommitdiff
path: root/drivers/dahdi/xpp/card_pri.c
diff options
context:
space:
mode:
authorTzafrir Cohen <tzafrir.cohen@xorcom.com>2010-12-07 10:59:37 +0000
committerTzafrir Cohen <tzafrir.cohen@xorcom.com>2010-12-07 10:59:37 +0000
commit6c947f5190975c3125f3e24ea05cbf99e3d87d2e (patch)
treec6bfda57ecd6068b32dc1289abde2d92a6d395a1 /drivers/dahdi/xpp/card_pri.c
parente9ca0d875fb812ed1aa57f5cc4874cc483f8eb26 (diff)
xpd_pri: ignore DAHDI_VMWI and DAHDIVMWI_CONFIG
This fixes an annoying, though harmless issue: if Asterisk decides to send voicemail messages to a channel (CAS, configured as FXS), We can't do anything useful with them. So ignore them to avoid scary-looking messages (from report_bad_ioctl()). Signed-off-by: Tzafrir Cohen <tzafrir.cohen@xorcom.com> git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9505 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers/dahdi/xpp/card_pri.c')
-rw-r--r--drivers/dahdi/xpp/card_pri.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/dahdi/xpp/card_pri.c b/drivers/dahdi/xpp/card_pri.c
index 2700b6f..8cb87fc 100644
--- a/drivers/dahdi/xpp/card_pri.c
+++ b/drivers/dahdi/xpp/card_pri.c
@@ -1507,6 +1507,12 @@ static int PRI_card_ioctl(xpd_t *xpd, int pos, unsigned int cmd, unsigned long a
case DAHDI_ONHOOKTRANSFER:
LINE_DBG(SIGNAL, xpd, pos, "PRI: ONHOOKTRANSFER\n");
return -ENOTTY;
+ case DAHDI_VMWI:
+ LINE_DBG(SIGNAL, xpd, pos, "PRI: VMWI\n");
+ return -ENOTTY;
+ case DAHDI_VMWI_CONFIG:
+ LINE_DBG(SIGNAL, xpd, pos, "PRI: VMWI_CONFIG\n");
+ return -ENOTTY;
default:
report_bad_ioctl(THIS_MODULE->name, xpd, pos, cmd);
return -ENOTTY;