summaryrefslogtreecommitdiff
path: root/res/res_sip_outbound_registration.c
diff options
context:
space:
mode:
authorKinsey Moore <kmoore@digium.com>2013-05-19 17:45:42 +0000
committerKinsey Moore <kmoore@digium.com>2013-05-19 17:45:42 +0000
commit1b5a3069f97661e4f00e56904d8bc546370c41b0 (patch)
tree81701f6980b53a2882eeaf938aa84d81af41c0a1 /res/res_sip_outbound_registration.c
parentb46840ae3e71f793971f83e5625cd7cded769f13 (diff)
Add base XML documentation for res_sip
Thanks to Brad Latus, this patch adds a significant amount much-needed documentation to res_sip. It should cover all existing configuration options currently in Asterisk trunk. Patch-by: Brad Latus (snuffy) Review: https://reviewboard.asterisk.org/r/2471/ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@389148 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'res/res_sip_outbound_registration.c')
-rw-r--r--res/res_sip_outbound_registration.c61
1 files changed, 61 insertions, 0 deletions
diff --git a/res/res_sip_outbound_registration.c b/res/res_sip_outbound_registration.c
index f33370146..9d73f37d5 100644
--- a/res/res_sip_outbound_registration.c
+++ b/res/res_sip_outbound_registration.c
@@ -31,6 +31,67 @@
#include "asterisk/module.h"
#include "asterisk/taskprocessor.h"
+/*** DOCUMENTATION
+ <configInfo name="res_sip_outbound_registration" language="en_US">
+ <synopsis>SIP resource for outbound registrations</synopsis>
+ <description><para>
+ <emphasis>Outbound Registration</emphasis>
+ </para>
+ <para>This module allows <literal>res_sip</literal> to register to other SIP servers.</para>
+ </description>
+ <configFile name="res_sip.conf">
+ <configObject name="registration">
+ <synopsis>The configuration for outbound registration</synopsis>
+ <description><para>
+ Registration is <emphasis>COMPLETELY</emphasis> separate from the rest of
+ <literal>res_sip.conf</literal>. A minimal configuration consists of
+ setting a <literal>server_uri</literal> and a <literal>client_uri</literal>.
+ </para></description>
+ <configOption name="auth_rejection_permanent" default="yes">
+ <synopsis>Determines whether failed authentication challenges are treated
+ as permanent failures.</synopsis>
+ <description><para>If this option is enabled and an authentication challenge fails,
+ registration will not be attempted again until the configuration is reloaded.</para></description>
+ </configOption>
+ <configOption name="client_uri">
+ <synopsis>Client SIP URI used when attemping outbound registration</synopsis>
+ </configOption>
+ <configOption name="contact_user">
+ <synopsis>Contact User to use in request</synopsis>
+ </configOption>
+ <configOption name="expiration" default="3600">
+ <synopsis>Expiration time for registrations in seconds</synopsis>
+ </configOption>
+ <configOption name="max_retries" default="10">
+ <synopsis>Maximum number of registration attempts.</synopsis>
+ </configOption>
+ <configOption name="outbound_auth" default="">
+ <synopsis>Authentication object to be used for outbound registrations.</synopsis>
+ </configOption>
+ <configOption name="outbound_proxy" default="">
+ <synopsis>Outbound Proxy used to send registrations</synopsis>
+ </configOption>
+ <configOption name="retry_interval" default="60">
+ <synopsis>Interval in seconds between retries if outbound registration is unsuccessful</synopsis>
+ </configOption>
+ <configOption name="server_uri">
+ <synopsis>SIP URI of the server to register against</synopsis>
+ </configOption>
+ <configOption name="transport">
+ <synopsis>Transport used for outbound authentication</synopsis>
+ <description>
+ <note><para>A <replaceable>transport</replaceable> configured in
+ <literal>res_sip.conf</literal>. As with other <literal>res_sip</literal> modules, this will use the first available transport of the appropriate type if unconfigured.</para></note>
+ </description>
+ </configOption>
+ <configOption name="type">
+ <synopsis>Must be of type 'registration'.</synopsis>
+ </configOption>
+ </configObject>
+ </configFile>
+ </configInfo>
+ ***/
+
/*! \brief Amount of buffer time (in seconds) before expiration that we re-register at */
#define REREGISTER_BUFFER_TIME 10