<html>
<head>
<base href="https://wiki.asterisk.org/wiki">
<link rel="stylesheet" href="/wiki/s/en/2171/18/9/_/styles/combined.css?spaceKey=AST&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/AST/Asterisk+10+Function_SIPPEER">Asterisk 10 Function_SIPPEER</a></h2>
<h4>Page <b>added</b> by <a href="https://wiki.asterisk.org/wiki/display/~wikibot">Wiki Bot</a>
</h4>
<br/>
<div class="notificationGreySide">
<h1><a name="Asterisk10Function_SIPPEER-SIPPEER%28%29"></a>SIPPEER()</h1>
<h3><a name="Asterisk10Function_SIPPEER-Synopsis"></a>Synopsis</h3>
<p>Gets SIP peer information.</p>
<h3><a name="Asterisk10Function_SIPPEER-Description"></a>Description</h3>
<h3><a name="Asterisk10Function_SIPPEER-Syntax"></a>Syntax</h3>
<div class="preformatted panel" style="border-width: 1px;"><div class="preformattedContent panelContent">
<pre>SIPPEER(peername[,item])</pre>
</div></div>
<h5><a name="Asterisk10Function_SIPPEER-Arguments"></a>Arguments</h5>
<ul>
        <li><tt>peername</tt></li>
        <li><tt>item</tt>
        <ul>
                <li><tt>ip</tt> - (default) The ip address.</li>
                <li><tt>port</tt> - The port number.</li>
                <li><tt>mailbox</tt> - The configured mailbox.</li>
                <li><tt>context</tt> - The configured context.</li>
                <li><tt>expire</tt> - The epoch time of the next expire.</li>
                <li><tt>dynamic</tt> - Is it dynamic? (yes/no).</li>
                <li><tt>callerid_name</tt> - The configured Caller ID name.</li>
                <li><tt>callerid_num</tt> - The configured Caller ID number.</li>
                <li><tt>callgroup</tt> - The configured Callgroup.</li>
                <li><tt>pickupgroup</tt> - The configured Pickupgroup.</li>
                <li><tt>codecs</tt> - The configured codecs.</li>
                <li><tt>status</tt> - Status (if qualify=yes).</li>
                <li><tt>regexten</tt> - Registration extension.</li>
                <li><tt>limit</tt> - Call limit (call-limit).</li>
                <li><tt>busylevel</tt> - Configured call level for signalling busy.</li>
                <li><tt>curcalls</tt> - Current amount of calls. Only available if call-limit is set.</li>
                <li><tt>language</tt> - Default language for peer.</li>
                <li><tt>accountcode</tt> - Account code for this peer.</li>
                <li><tt>useragent</tt> - Current user agent id for peer.</li>
                <li><tt>maxforwards</tt> - The value used for SIP loop prevention in outbound requests</li>
                <li><tt>chanvar<a href="/wiki/pages/createpage.action?spaceKey=AST&title=name&linkCreation=true&fromPageId=19005630" class="createlink">name</a></tt> - A channel variable configured with setvar for this peer.</li>
                <li><tt>codec<a href="/wiki/pages/createpage.action?spaceKey=AST&title=x&linkCreation=true&fromPageId=19005630" class="createlink">x</a></tt> - Preferred codec index number <em>x</em> (beginning with zero).</li>
        </ul>
        </li>
</ul>
<h3><a name="Asterisk10Function_SIPPEER-SeeAlso"></a>See Also</h3>
<h3><a name="Asterisk10Function_SIPPEER-ImportVersion"></a>Import Version</h3>
<p>This documentation was imported from Asterisk version SVN-branch-10-r340810.</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=AST">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/AST/Asterisk+10+Function_SIPPEER">View Online</a>
|
<a href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+10+Function_SIPPEER?showComments=true&showCommentArea=true#addcomment">Add Comment</a>
</div>
</div>
</div>
</div>
</div>
</body>
</html>