mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-02 19:16:15 +00:00
func_pjsip_aor/contact: Fix documentation for contact ID
Clarified the use of the contact ID returned from PJSIP_AOR. Resolves: #990
This commit is contained in:
@@ -57,6 +57,22 @@
|
|||||||
Supported options are those fields on the
|
Supported options are those fields on the
|
||||||
<replaceable>aor</replaceable> object in
|
<replaceable>aor</replaceable> object in
|
||||||
<filename>pjsip.conf</filename>.</para>
|
<filename>pjsip.conf</filename>.</para>
|
||||||
|
<note><para>
|
||||||
|
When requested with this function, the <literal>contact</literal>
|
||||||
|
parameter will return both permanent and dynamic contacts.
|
||||||
|
</para></note>
|
||||||
|
<note><para>
|
||||||
|
The return value of the <literal>contact</literal> parameter is
|
||||||
|
one or more internal contact IDs separated by commans.
|
||||||
|
To get details about the contact itself, including the URI,
|
||||||
|
call the <literal>PJSIP_CONTACT</literal> dialplan function
|
||||||
|
with the contact ID and the desired contact parameter.
|
||||||
|
</para></note>
|
||||||
|
<para>
|
||||||
|
</para>
|
||||||
|
<para>
|
||||||
|
Available Fields:
|
||||||
|
</para>
|
||||||
<enumlist>
|
<enumlist>
|
||||||
<configOptionToEnum>
|
<configOptionToEnum>
|
||||||
<xi:include xpointer="xpointer(/docs/configInfo[@name='res_pjsip']/configFile[@name='pjsip.conf']/configObject[@name='aor']/configOption)"/>
|
<xi:include xpointer="xpointer(/docs/configInfo[@name='res_pjsip']/configFile[@name='pjsip.conf']/configObject[@name='aor']/configOption)"/>
|
||||||
@@ -64,6 +80,9 @@
|
|||||||
</enumlist>
|
</enumlist>
|
||||||
</parameter>
|
</parameter>
|
||||||
</syntax>
|
</syntax>
|
||||||
|
<see-also>
|
||||||
|
<ref type="function">PJSIP_CONTACT</ref>
|
||||||
|
</see-also>
|
||||||
</function>
|
</function>
|
||||||
***/
|
***/
|
||||||
|
|
||||||
|
@@ -50,7 +50,15 @@
|
|||||||
</synopsis>
|
</synopsis>
|
||||||
<syntax>
|
<syntax>
|
||||||
<parameter name="name" required="true">
|
<parameter name="name" required="true">
|
||||||
<para>The name of the contact to query.</para>
|
<para>
|
||||||
|
Contact names are in the form of "aor_id@@hash" for dynamic contacts
|
||||||
|
created by the registrar and permanent contacts defined
|
||||||
|
in a <literal>contact</literal> parameter in an <literal>aor</literal>
|
||||||
|
object. You can get the "aor_id@@hash" contact ID by calling the
|
||||||
|
<literal>PJSIP_AOR()</literal> dialplpan function with the AOR name
|
||||||
|
and the <literal>contact</literal> field. You can then pass the value
|
||||||
|
returned to this function.
|
||||||
|
</para>
|
||||||
</parameter>
|
</parameter>
|
||||||
<parameter name="field" required="true">
|
<parameter name="field" required="true">
|
||||||
<para>The configuration option for the contact to query for.
|
<para>The configuration option for the contact to query for.
|
||||||
@@ -69,6 +77,9 @@
|
|||||||
</enumlist>
|
</enumlist>
|
||||||
</parameter>
|
</parameter>
|
||||||
</syntax>
|
</syntax>
|
||||||
|
<see-also>
|
||||||
|
<ref type="function">PJSIP_AOR</ref>
|
||||||
|
</see-also>
|
||||||
</function>
|
</function>
|
||||||
***/
|
***/
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user