new timer=(yes|no) parameter for hfcmulti
This commit is contained in:
parent
84116778c7
commit
2083ca73f1
|
@ -322,7 +322,7 @@ Card Type: hfcmulti, avmfritz, w6692pci
|
|||
Port Attributes: mode=(te|nt), link=(ptp|ptmp), capi=(yes|no)
|
||||
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
Module: hfcmulti
|
||||
Options: poll=<number>, pcm=<number>, debug=<number>
|
||||
Options: poll=<number>, pcm=<number>, debug=<number>, timer=(yes|no)
|
||||
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
Module: mISDN_dsp
|
||||
Options: debug=<number>, options=<number>, poll=<number>,
|
||||
|
@ -330,7 +330,7 @@ Options: debug=<number>, options=<number>, poll=<number>,
|
|||
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
-->
|
||||
<mISDNconf>
|
||||
${TAB}<module poll=\"128\" debug=\"0\">hfcmulti</module>
|
||||
${TAB}<module poll=\"128\" debug=\"0\" timer=\"no\">hfcmulti</module>
|
||||
${TAB}<module debug=\"0\" options=\"0\">mISDN_dsp</module>
|
||||
${TAB}<devnode user=\"root\" group=\"root\" mode=\"644\">mISDN</devnode>"
|
||||
local FOOTER="</mISDNconf>"
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
<!--
|
||||
Module: hfcmulti
|
||||
Options: poll=<number>, pcm=<number>, debug=<number>
|
||||
Options: poll=<number>, pcm=<number>, debug=<number>, timer=(yes|no)
|
||||
-->
|
||||
<xsl:template name="HFCMULTImodule">
|
||||
|
||||
|
@ -25,6 +25,13 @@
|
|||
<xsl:with-param name="val-default">0</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
|
||||
<xsl:call-template name="if-set-match">
|
||||
<xsl:with-param name="prefix"> timer=</xsl:with-param>
|
||||
<xsl:with-param name="val" select="@timer" />
|
||||
<xsl:with-param name="val-default">0</xsl:with-param>
|
||||
<xsl:with-param name="val-true">1</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
|
||||
<xsl:text>
|
||||
</xsl:text>
|
||||
|
||||
|
|
|
@ -18,6 +18,29 @@
|
|||
</xsl:choose>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template name="if-set-match">
|
||||
<xsl:param name="prefix"></xsl:param>
|
||||
<xsl:param name="val"></xsl:param>
|
||||
<xsl:param name="val-default"></xsl:param>
|
||||
<xsl:param name="val-true">0</xsl:param>
|
||||
<xsl:param name="val-false">0</xsl:param>
|
||||
<xsl:param name="match-true">yes</xsl:param>
|
||||
<xsl:param name="match-false">no</xsl:param>
|
||||
<xsl:choose>
|
||||
<xsl:when test="$val=$match-true">
|
||||
<xsl:value-of select="concat($prefix,$val-true)" />
|
||||
</xsl:when>
|
||||
<xsl:when test="$val=$match-false">
|
||||
<xsl:value-of select="concat($prefix,$val-false)" />
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:if test="$val-default!=''">
|
||||
<xsl:value-of select="concat($prefix,$val-default)" />
|
||||
</xsl:if>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template name="if-match">
|
||||
<xsl:param name="val">no</xsl:param>
|
||||
<xsl:param name="val-default">0</xsl:param>
|
||||
|
|
Loading…
Reference in New Issue