[svn-commits] tzafrir: linux/trunk r10335 - /linux/trunk/drivers/dahdi/xpp/card_pri.c
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Thu Nov 10 10:56:58 CST 2011
Author: tzafrir
Date: Thu Nov 10 10:56:54 2011
New Revision: 10335
URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=10335
Log:
xpp: silence some bad ioctl() reporting
Ignore some FXS-specific ioctl-s in xpd_pri.
Signed-off-by: Oron Peled <oron.peled at xorcom.com>
Acked-by Tzafrir Cohen <tzafrir.cohen at xorcom.com>
Modified:
linux/trunk/drivers/dahdi/xpp/card_pri.c
Modified: linux/trunk/drivers/dahdi/xpp/card_pri.c
URL: http://svnview.digium.com/svn/dahdi/linux/trunk/drivers/dahdi/xpp/card_pri.c?view=diff&rev=10335&r1=10334&r2=10335
==============================================================================
--- linux/trunk/drivers/dahdi/xpp/card_pri.c (original)
+++ linux/trunk/drivers/dahdi/xpp/card_pri.c Thu Nov 10 10:56:54 2011
@@ -1467,14 +1467,17 @@
return -ENODEV;
chan = XPD_CHAN(xpd, pos);
switch (cmd) {
+ /*
+ * Asterisk may send FXS type ioctl()'s to us:
+ * - Some are sent to everybody (DAHDI_TONEDETECT)
+ * - Some are sent because we may be in CAS mode
+ * (FXS signalling)
+ * Ignore them.
+ */
case DAHDI_TONEDETECT:
- /*
- * Asterisk call all span types with this (FXS specific)
- * call. Silently ignore it.
- */
LINE_DBG(SIGNAL, xpd, pos, "PRI: TONEDETECT (%s)\n",
(chan->flags & DAHDI_FLAG_AUDIO) ?
- "AUDIO" : "SILENCE");
+ "AUDIO" : "SILENCE");
return -ENOTTY;
case DAHDI_ONHOOKTRANSFER:
LINE_DBG(SIGNAL, xpd, pos, "PRI: ONHOOKTRANSFER\n");
@@ -1485,6 +1488,10 @@
case DAHDI_VMWI_CONFIG:
LINE_DBG(SIGNAL, xpd, pos, "PRI: VMWI_CONFIG\n");
return -ENOTTY;
+ case DAHDI_SETPOLARITY:
+ LINE_DBG(SIGNAL, xpd, pos, "PRI: SETPOLARITY\n");
+ return -ENOTTY;
+ /* report on really bad ioctl()'s */
default:
report_bad_ioctl(THIS_MODULE->name, xpd, pos, cmd);
return -ENOTTY;
More information about the svn-commits
mailing list