<html>
<head>
    <base href="https://wiki.asterisk.org/wiki">
            <link rel="stylesheet" href="/wiki/s/en/2172/18/9/_/styles/combined.css?spaceKey=AST&amp;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+11+Function_CALLERID">Asterisk 11 Function_CALLERID</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="Asterisk11Function_CALLERID-CALLERID%28%29"></a>CALLERID()</h1>

<h3><a name="Asterisk11Function_CALLERID-Synopsis"></a>Synopsis</h3>

<p>Gets or sets Caller*ID data on the channel.</p>
<h3><a name="Asterisk11Function_CALLERID-Description"></a>Description</h3>



<p>Gets or sets Caller*ID data on the channel. Uses channel callerid by default or optional callerid, if specified.</p>

<p>The allowable values for the <em>name-charset</em> field are the following:</p>
<ul>
        <li>unknown - Unknown</li>
        <li>iso8859-1 - ISO8859-1</li>
        <li>withdrawn - Withdrawn</li>
        <li>iso8859-2 - ISO8859-2</li>
        <li>iso8859-3 - ISO8859-3</li>
        <li>iso8859-4 - ISO8859-4</li>
        <li>iso8859-5 - ISO8859-5</li>
        <li>iso8859-7 - ISO8859-7</li>
        <li>bmp - ISO10646 Bmp String</li>
        <li>utf8 - ISO10646 UTF-8 String</li>
</ul>


<h3><a name="Asterisk11Function_CALLERID-Syntax"></a>Syntax</h3>

<div class="preformatted panel" style="border-width: 1px;"><div class="preformattedContent panelContent">
<pre>CALLERID(datatype,CID)</pre>
</div></div>
<h5><a name="Asterisk11Function_CALLERID-Arguments"></a>Arguments</h5>


<ul>
        <li>datatype - The allowable datatypes are:
        <ul>
                <li>all</li>
                <li>name</li>
                <li>name-valid</li>
                <li>name-charset</li>
                <li>name-pres</li>
                <li>num</li>
                <li>num-valid</li>
                <li>num-plan</li>
                <li>num-pres</li>
                <li>subaddr</li>
                <li>subaddr-valid</li>
                <li>subaddr-type</li>
                <li>subaddr-odd</li>
                <li>tag</li>
                <li>ANI-all</li>
                <li>ANI-name</li>
                <li>ANI-name-valid</li>
                <li>ANI-name-charset</li>
                <li>ANI-name-pres</li>
                <li>ANI-num</li>
                <li>ANI-num-valid</li>
                <li>ANI-num-plan</li>
                <li>ANI-num-pres</li>
                <li>ANI-tag</li>
                <li>RDNIS</li>
                <li>DNID</li>
                <li>dnid-num-plan</li>
                <li>dnid-subaddr</li>
                <li>dnid-subaddr-valid</li>
                <li>dnid-subaddr-type</li>
                <li>dnid-subaddr-odd</li>
        </ul>
        </li>
        <li>CID - Optional Caller*ID to parse instead of using the Caller*ID from the channel. This parameter is only optional when reading the Caller*ID.</li>
</ul>



<h3><a name="Asterisk11Function_CALLERID-ImportVersion"></a>Import Version</h3>

<p>This documentation was imported from Asterisk Version SVN-trunk-r370322</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+11+Function_CALLERID">View Online</a>
              |
       <a href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+11+Function_CALLERID?showComments=true&amp;showCommentArea=true#addcomment">Add Comment</a>
           </div>
</div>
</div>
</div>
</div>
</body>
</html>