<div dir="ltr">Here&#39;s how we do that. We use PolyCom SoundPoint IP phones, so we have this configuration file in their FTP directory:<blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><div>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;yes&quot;?&gt;</div></div><div><div>&lt;!-- Application SIP Mink 4.0.0.26884 09-Sep-11 12:32 --&gt;</div></div><div><div>&lt;!-- Created 19-09-2011 10:50 --&gt;</div></div><div><div>&lt;CONFIG&gt;</div></div><div><div>    &lt;dialplan dialplan.digitmap=&quot;5xx|6xx|85xx|[2-9]11|0T|*86|011xxx.T|[0-1][2-9]xxxxxxxxx|[2-9]xxxxxxxxx|[2-9]xxxT&quot;/&gt;</div></div><div><div>    &lt;msg msg.bypassInstantMessage=&quot;1&quot; /&gt;</div></div><div><div>    &lt;mwi msg.mwi.1.subscribe=&quot;&quot; msg.mwi.1.callBackMode=&quot;contact&quot; msg.mwi.1.callBack=&quot;*86&quot; /&gt;</div></div><div><div>  &lt;se&gt;</div></div><div><div>    &lt;se.rt&gt;</div></div><div><div>      &lt;!-- &lt;se.rt.custom1 <a href="http://se.rt.custom1.name">se.rt.custom1.name</a>=&quot;Low Double Trill&quot; se.rt.custom1.ringer=&quot;ringer3&quot; /&gt;--&gt;</div></div><div><div>      &lt;se.rt.custom1 <a href="http://se.rt.custom1.name">se.rt.custom1.name</a>=&quot;Medium Double Trill&quot; se.rt.custom1.ringer=&quot;ringer5&quot; /&gt;</div></div><div><div>      &lt;se.rt.custom3 <a href="http://se.rt.custom2.name">se.rt.custom2.name</a>=&quot;Triplet&quot; se.rt.custom3.ringer=&quot;ringer11&quot; /&gt;</div></div><div><div>      &lt;se.rt.custom2 <a href="http://se.rt.custom3.name">se.rt.custom3.name</a>=&quot;Medium Trill&quot; se.rt.custom2.ringer=&quot;ringer4&quot; /&gt;</div></div><div><div>    &lt;/se.rt&gt;</div></div><div><div>  &lt;/se&gt;</div></div><div><div>  &lt;voIpProt&gt;</div></div><div><div>    &lt;voIpProt.SIP&gt;</div></div><div><div>      &lt;voIpProt.SIP.alertInfo voIpProt.SIP.alertInfo.1.value=&quot;internal&quot; voIpProt.SIP.alertInfo.1.class=&quot;custom1&quot;/&gt;</div></div><div><div>      &lt;voIpProt.SIP.alertInfo voIpProt.SIP.alertInfo.2.value=&quot;external&quot; voIpProt.SIP.alertInfo.2.class=&quot;custom2&quot;/&gt;</div></div><div><div>      &lt;voIpProt.SIP.alertInfo voIpProt.SIP.alertInfo.3.value=&quot;directory&quot; voIpProt.SIP.alertInfo.3.class=&quot;custom3&quot;/&gt;</div></div><div><div>    &lt;/voIpProt.SIP&gt;</div></div><div><div>  &lt;/voIpProt&gt;</div></div><div><div>&lt;/CONFIG&gt;</div></div></blockquote><div><div><br></div><div>I can&#39;t remember how I figured that out, but I found that &quot;ringer5&quot; is known as &quot;Medium Double Trill&quot; in the PolyCom documentation, and that&#39;s the sound we wanted for internal calls. Just for fun, I also set the phones up to ring differently depending if the (outside) caller knew my extension, or found me through the &quot;dial by name&quot; directory.</div><div><br></div><div>In the file conf/dialplan/default.xml, I have these lines in the &quot;Local Extension&quot; extension:</div><div><br></div><div><div>        &lt;condition field=&quot;${accountcode}&quot; expression=&quot;^.+$&quot;&gt;</div><div>          &lt;action application=&quot;export&quot; data=&quot;alert_info=internal&quot;/&gt;</div><div>        &lt;/condition&gt;</div></div><div><br></div><div>If ${accountcode} is set, then the caller&#39;s phone is logged in to FreeSWITCH, so the call is internal. (This condition could also check if the caller_id_number is exactly 3 (or 4) digits.)</div><div><br></div><div>To get the &quot;directory&quot; ring, I have this extension:</div><div><br></div><div><div>    &lt;extension name=&quot;directory&quot; continue=&quot;true&quot;&gt;</div><div>     &lt;condition field=&quot;destination_number&quot; expression=&quot;^411$&quot;&gt;</div><div>      &lt;action application=&quot;export&quot; data=&quot;alert_info=directory&quot;/&gt;</div><div>      &lt;action application=&quot;directory&quot; data=&quot;default $${domain} default&quot;/&gt;</div><div>     &lt;/condition&gt;</div><div>    &lt;/extension&gt;</div></div><div><br></div><div>-- </div><div>Steve</div><div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Oct 14, 2014 at 4:41 AM, Mike <span dir="ltr">&lt;<a href="mailto:empx@gmx.de" target="_blank">empx@gmx.de</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">See <a href="https://wiki.freeswitch.org/wiki/Variable_alert_info" target="_blank">https://wiki.freeswitch.org/wiki/Variable_alert_info</a><br>
<div><div class="h5"><br>
On 14.10.2014 13:07, Pedro Santos wrote:<br>
&gt; i want to differentiate the ring from internal and external calls. Can<br>
&gt; anyone help me ? tx<br>
&gt; it is not the ringback, but the ringing of the phone<br></div></div></blockquote></div></div></div></div></div>