mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-29 18:19:30 +00:00
func_pjsip_endpoint: Add PJSIP_ENDPOINT function for querying endpoint details
This patch adds a new function, PJSIP_ENDPOINT, which lets the dialplan query, for any endpoint, any property configured on an endpoint. This function is a companion to the CHANNEL function, which can be used to extract the endpoint name for a channel. Review: https://reviewboard.asterisk.org/r/3035 git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/12@403616 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -85,6 +85,9 @@
|
||||
<!ELEMENT bridge_snapshot (#PCDATA)>
|
||||
<!ATTLIST bridge_snapshot prefix CDATA "">
|
||||
|
||||
<!ELEMENT configOptionToEnum (configOption|xi:include)*>
|
||||
<!ATTLIST configOptionToEnum prefix CDATA "">
|
||||
|
||||
<!ELEMENT description (para|note|warning|variablelist|enumlist|info|xi:include)*>
|
||||
|
||||
<!ELEMENT parameter (optionlist|enumlist|argument|para|note|warning|parameter|info|xi:include)*>
|
||||
@@ -103,7 +106,7 @@
|
||||
<!ATTLIST option implies CDATA "">
|
||||
<!ATTLIST option hasparams CDATA "">
|
||||
|
||||
<!ELEMENT enumlist (enum+)>
|
||||
<!ELEMENT enumlist (configOptionToEnum|enum+)>
|
||||
<!ELEMENT enum (para|note|warning|parameter|enumlist|info|xi:include)*>
|
||||
<!ATTLIST enum name CDATA "">
|
||||
|
||||
|
@@ -1,4 +1,4 @@
|
||||
<xsl:stylesheet version="1.0"
|
||||
<xsl:stylesheet version="1.0"
|
||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
|
||||
<xsl:output omit-xml-declaration="yes" indent="yes"/>
|
||||
|
||||
@@ -10,6 +10,19 @@
|
||||
</xsl:copy>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="configOptionToEnum">
|
||||
<xsl:for-each select="configOption">
|
||||
<xsl:element name="enum">
|
||||
<xsl:attribute name="name">
|
||||
<xsl:value-of select="@name"/>
|
||||
</xsl:attribute>
|
||||
<xsl:element name="para">
|
||||
<xsl:value-of select="synopsis"/>
|
||||
</xsl:element>
|
||||
</xsl:element>
|
||||
</xsl:for-each>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="channel_snapshot">
|
||||
<xsl:element name="parameter">
|
||||
<xsl:attribute name="name">
|
Reference in New Issue
Block a user