<html>
<head>
<base href="https://wiki.asterisk.org/wiki">
<link rel="stylesheet" href="/wiki/s/en/2171/18/9/_/styles/combined.css?spaceKey=TOP&forWysiwyg=true" type="text/css">
</head>
<body style="background: white;" bgcolor="white" class="email-body">
<div id="pageContent">
<div id="notificationFormat">
<div class="wiki-content">
<div class="email">
<h2><a href="https://wiki.asterisk.org/wiki/display/TOP/SIP+Session+Manager+Configuration">SIP Session Manager Configuration</a></h2>
<h4>Page <b>edited</b> by <a href="https://wiki.asterisk.org/wiki/display/~mmichelson">Mark Michelson</a>
</h4>
<br/>
<h4>Changes (1)</h4>
<div id="page-diffs">
<table class="diff" cellpadding="0" cellspacing="0">
<tr><td class="diff-added-lines" style="background-color: #dfd;">{warning} <br>This page is highly outdated. It is in the process of being cleaned up. <br>{warning} <br> <br></td></tr>
<tr><td class="diff-unchanged" >h1. Overview <br> <br></td></tr>
<tr><td class="diff-snipped" >...<br></td></tr>
</table>
</div> <h4>Full Content</h4>
<div class="notificationGreySide">
<div class='panelMacro'><table class='warningMacro'><colgroup><col width='24'><col></colgroup><tr><td valign='top'><img src="/wiki/images/icons/emoticons/forbidden.gif" width="16" height="16" align="absmiddle" alt="" border="0"></td><td>This page is highly outdated. It is in the process of being cleaned up.</td></tr></table></div>
<h1><a name="SIPSessionManagerConfiguration-Overview"></a>Overview</h1>
<p>SIP parameters are configured using Ice properties read from a configuration file. As such, the terms "property" and "option" are used interchangeably on this page. The general mechanism for specifying options is using the scheme</p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<pre class="theme: Confluence; brush: java; gutter: false">Sip.Category.SubCategory.OptionName = OptionValue</pre>
</div></div>
<p>Some properties do not have a category or subcategory, and so they can be left out entirely:</p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<pre class="theme: Confluence; brush: java; gutter: false">Sip.OptionName = OptionValue</pre>
</div></div>
<p>For properties that accept a sequence of values, values may be separated by whitespace, commas, or a combination thereof. Any of the following are valid:</p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<pre class="theme: Confluence; brush: java; gutter: false">Sip.OptionName = Value1 Value2 Value3
Sip.OptionName = Value1,Value2,Value3
Sip.OptionName = Value1, Value2, Value3</pre>
</div></div>
<p>At the time of this writing, peroperty names and values are <b>CASE SENSITIVE</b> so please be aware of this!</p>
<h2><a name="SIPSessionManagerConfiguration-GlobalOptions"></a>Global Options</h2>
<h3><a name="SIPSessionManagerConfiguration-GeneralOptions"></a>General Options</h3>
<p>"General" options are those that apply globally to all SIP services as well as options that potentially effect the global behavior of PJSIP. These options all take the form "Sip.OptionName = OptionValue" .</p>
<h5><a name="SIPSessionManagerConfiguration-Modules"></a>Modules</h5>
<p>A sequence of the names of the PJSIP modules to load on startup.</p>
<p>Currently defined modules are:<br/>
Session: Responsible for incoming and outgoing media sessions.<br/>
Logging: Responsible for printing all incoming and outgoing SIP messages to the logger. These messages are written at the Debug level. The name "Logger" is also accepted for this module.</p>
<p>Possible future modules include:<br/>
Registrar: Responsible for handling incoming registrations and managing the lifetime of registrations<br/>
Subscriber: Responsible for outgoing subscriptions. This may be broken out into separate modules for different event types.<br/>
Notifier: Responsible for sending outgoing notifications. This may be broken out into separate modules for different event types.<br/>
Event State Compositor: Responsible for handling incoming publications. This may be broken out into separate modules for different event types.<br/>
Event Publication Agent: Responsible for sending outgoing publications. This may be broken out into separate modules for different event types.<br/>
Messager: Responsible for incoming and outgoing non session-oriented communications, such as instant messaging and other chat services.</p>
<div class="code panel" style="border-width: 1px;"><div class="codeHeader panelHeader" style="border-bottom-width: 1px;"><b>Example</b></div><div class="codeContent panelContent">
<pre class="theme: Confluence; brush: java; gutter: false">Sip.Modules = Session Logging</pre>
</div></div>
<h5><a name="SIPSessionManagerConfiguration-StateReplicatorListener"></a>StateReplicatorListener</h5>
<p>Yes or No value to determine whether the SIP Session Manager should have state information pushed to it from a SIP state replicator. You can think of this option as answering the question "Should I run as a backup for another SIP Session Manager?"</p>
<p>The property defaults to "No."</p>
<div class="code panel" style="border-width: 1px;"><div class="codeHeader panelHeader" style="border-bottom-width: 1px;"><b>Example</b></div><div class="codeContent panelContent">
<pre class="theme: Confluence; brush: java; gutter: false">Sip.StateReplicatorListener = Yes</pre>
</div></div>
<p>Future Changes: Currently, this option only controls whether the SIP Session Manager listens for state information. There is nothing in place to prevent SIP traffic from being directed to the SIP Session Manager if it is running as a listener. There are likely other measures that need to be taken when running as a listener to ensure that nothing unusual occurs.</p>
<h5><a name="SIPSessionManagerConfiguration-StateReplicatorName"></a>StateReplicatorName</h5>
<p>The name of the Sip State Replicator to send state information to or receive state information from. In some clusters, there may be multiple instances of Sip Session Managers running at the same time. By controlling which state replicators to send data to and receive data from, you can control exactly which SIP Session Managers are paired with each other for failover purposes. Do not confuse this option with the SIP State Replicator option, SipStateReplicator.Name.</p>
<p>The property defaults to the string "default" .</p>
<div class="code panel" style="border-width: 1px;"><div class="codeHeader panelHeader" style="border-bottom-width: 1px;"><b>Example</b></div><div class="codeContent panelContent">
<pre class="theme: Confluence; brush: java; gutter: false">Sip.StateReplicatorName = AtlantaReplicator</pre>
</div></div>
<p>Future Expansion: This option currently only supports a single name. It may be worthwhile to change this to take a sequence of names so that state can be replicated to multiple SIP State Replicators.</p>
<h5><a name="SIPSessionManagerConfiguration-RoutingId"></a>RoutingId</h5>
<p>When registering with the Routing Service, use this as an identifier. This is useful when running multiple SIP Session Managers who are responsible for managing specific sets of endpoints. This ensures the Routing Service will start sessions using the appropriate Sip Session Manager.</p>
<p>The property defaults to the string "pjsip" .</p>
<div class="code panel" style="border-width: 1px;"><div class="codeHeader panelHeader" style="border-bottom-width: 1px;"><b>Example</b></div><div class="codeContent panelContent">
<pre class="theme: Confluence; brush: java; gutter: false">Sip.RoutingId = AtlantaEndpoints</pre>
</div></div>
<p>Future Changes: The name RoutingId is the current name because this identifier is only passed to the routing service. It seems likely that future services may wish to be passed an identifier as well, and so it would make sense for this option to morph into a general-purpose identifier for this specific SIP Session Manager. If that were the case, the name of this option would need to change.</p>
<h5><a name="SIPSessionManagerConfiguration-Endpoints"></a>Endpoints</h5>
<p>A sequence of the names of Endpoints serviced by this SIP Session Manager. More specific information about the endpoints is configured in the Endpoint options, as specified below.</p>
<div class="code panel" style="border-width: 1px;"><div class="codeHeader panelHeader" style="border-bottom-width: 1px;"><b>Example</b></div><div class="codeContent panelContent">
<pre class="theme: Confluence; brush: java; gutter: false">Sip.Endpoints = 1000 2000 3000</pre>
</div></div>
<h3><a name="SIPSessionManagerConfiguration-GlobalTransportOptions"></a>Global Transport Options</h3>
<p>Transport options for the Sip Session Manager. Currently, we only bind using UDP as our transport mechanism. Future options will include adding TCP and TLS bind addresses, plus TLS certificate information.</p>
<p>This is an interesting area because PJSIP currently does not allow for binding to an IPv6 address when using TCP or TLS as the transport. This needs to be corrected ASAP.</p>
<h5><a name="SIPSessionManagerConfiguration-UdpBindAddr"></a>UdpBindAddr</h5>
<p>The address and port to bind to for UDP transport. This may be an IPv4 or IPv6 address.</p>
<div class="code panel" style="border-width: 1px;"><div class="codeHeader panelHeader" style="border-bottom-width: 1px;"><b>Example</b></div><div class="codeContent panelContent">
<pre class="theme: Confluence; brush: java; gutter: false">Sip.Transport.UdpBindAddr = [::]:5060</pre>
</div></div>
<p>Future Changes: This really needs to accept a sequence of values instead of a single value, and it needs to happen sooner rather than later.</p>
<h2><a name="SIPSessionManagerConfiguration-EndpointOptions"></a>Endpoint Options</h2>
<p>Endpoint options are configured by using the prefix "Sip.Endpoint" then the endpoint name, then the endpoint subcategory, then the option name. For instance, if you had an endpoint called 1000, then you could specify that Asterisk SCF is only capable of starting outbound sessions with the endpoint with the following notation:</p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<pre class="theme: Confluence; brush: java; gutter: false">Sip.Endpoint.1000.Session.CallDirection = Outbound</pre>
</div></div>
<p>Options specified for endpoints that are not listed in the Sip.Endpoints property will be ignored.</p>
<h3><a name="SIPSessionManagerConfiguration-EndpointTransportOptions"></a>Endpoint Transport Options</h3>
<p>These are options pertaining to transportation of SIP messages, independent of the nature of the overarching SIP dialog type.</p>
<h5><a name="SIPSessionManagerConfiguration-Address"></a>Address</h5>
<p>The IP address of the SIP endpoint in question. This may be an IPv4 or IPv6 address.</p>
<div class="code panel" style="border-width: 1px;"><div class="codeHeader panelHeader" style="border-bottom-width: 1px;"><b>Example</b></div><div class="codeContent panelContent">
<pre class="theme: Confluence; brush: java; gutter: false">Sip.Endpoint.1000.Transport.Address = 2001:fd8::1
Sip.Endpoint.2000.Transport.Address = 192.168.100.20</pre>
</div></div>
<p>Future Changes: Allow for hostnames to be specified. Also allow for an Asterisk-like "dynamic" option to indicate that the endpoint will register with us.</p>
<h3><a name="SIPSessionManagerConfiguration-EndpointSessionOptions"></a>Endpoint Session Options</h3>
<h5><a name="SIPSessionManagerConfiguration-CallDirection"></a>CallDirection</h5>
<p>Specifies the direction that calls to/from this endpoint can be made. The direction is given from the perspective of the SIP Session Manager, not the endpoint. So "Inbound" would indicate that calls may only come into the SIP Session Manager from the endpoint. Valid values are "None," "Inbound," "Outbound," and "Both."</p>
<div class="code panel" style="border-width: 1px;"><div class="codeHeader panelHeader" style="border-bottom-width: 1px;"><b>Example</b></div><div class="codeContent panelContent">
<pre class="theme: Confluence; brush: java; gutter: false">Sip.Endpoint.1000.Session.CallDirection = Both</pre>
</div></div>
<p>Future Changes: This property likely needs a new name since we are trying as hard as possible to not use telephony-specific terms in Asterisk SCF. A good change would be to just call the option "Direction" since it is already part of the Session subcategory.</p>
<h3><a name="SIPSessionManagerConfiguration-EndpointAuthorizationOptions"></a>Endpoint Authorization Options</h3>
<p>None Yet!</p>
<h3><a name="SIPSessionManagerConfiguration-EndpointRegistrationOptions"></a>Endpoint Registration Options</h3>
<p>None Yet!</p>
<h3><a name="SIPSessionManagerConfiguration-EndpointMediaOptions"></a>Endpoint Media Options</h3>
<p>None Yet!</p>
<h3><a name="SIPSessionManagerConfiguration-EndpointSubscriptionOptions"></a>Endpoint Subscription Options</h3>
<p>None Yet!</p>
</div>
<div id="commentsSection" class="wiki-content pageSection">
<div style="float: right;" class="grey">
<a href="https://wiki.asterisk.org/wiki/users/removespacenotification.action?spaceKey=TOP">Stop watching space</a>
<span style="padding: 0px 5px;">|</span>
<a href="https://wiki.asterisk.org/wiki/users/editmyemailsettings.action">Change email notification preferences</a>
</div>
<a href="https://wiki.asterisk.org/wiki/display/TOP/SIP+Session+Manager+Configuration">View Online</a>
|
<a href="https://wiki.asterisk.org/wiki/pages/diffpagesbyversion.action?pageId=6979697&revisedVersion=9&originalVersion=8">View Changes</a>
|
<a href="https://wiki.asterisk.org/wiki/display/TOP/SIP+Session+Manager+Configuration?showComments=true&showCommentArea=true#addcomment">Add Comment</a>
</div>
</div>
</div>
</div>
</div>
</body>
</html>