<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18904">
<STYLE></STYLE>
</HEAD>
<BODY 
style="WORD-WRAP: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space" 
bgColor=#ffffff>
<DIV><FONT size=2>Ok I succeed doing like this :</FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV>/usr/local/freeswitch/bin/fs_cli -x "expand originate 
sofia/gateway/\${distributor(pstn_international_2)}/003434REMOTEEXT&nbsp;loopback/999LOCALEXT"</DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=2>and it gives a session:</FONT></DIV>
<DIV><FONT size=2></FONT><BR>+OK d0c598b5-9291-47eb-a14e-7845763425f4</DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=2>does +OK means the number always exists ? is there only one 
ring, hangup and clean the originate call ?</FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2>Thanks</FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2>F</FONT></DIV>
<BLOCKQUOTE 
style="BORDER-LEFT: #000000 2px solid; PADDING-LEFT: 5px; PADDING-RIGHT: 0px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px">
  <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV 
  style="FONT: 10pt arial; BACKGROUND: #e4e4e4; font-color: black"><B>From:</B> 
  <A title=brian@freeswitch.org href="mailto:brian@freeswitch.org">Brian 
  West</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A 
  title=freeswitch-users@lists.freeswitch.org 
  href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</A> 
  </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Thursday, June 03, 2010 2:22 
  PM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [Freeswitch-users] check 
  status of a number</DIV>
  <DIV><BR></DIV>Use the loopback endpoint with originate to do this.
  <DIV><BR></DIV>
  <DIV>/b</DIV>
  <DIV><BR>
  <DIV>
  <DIV>On Jun 3, 2010, at 1:16 PM, Madovsky wrote:</DIV><BR 
  class=Apple-interchange-newline>
  <BLOCKQUOTE type="cite"><SPAN 
    style="WIDOWS: 2; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; BORDER-COLLAPSE: separate; FONT: medium Helvetica; WHITE-SPACE: normal; ORPHANS: 2; LETTER-SPACING: normal; WORD-SPACING: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" 
    class=Apple-style-span>
    <DIV><FONT size=2>Hi,</FONT></DIV>
    <DIV><FONT size=2></FONT>&nbsp;</DIV>
    <DIV><FONT size=2>I'd like to use fs_cli to check if the callee number 
    exists and get the status result.</FONT></DIV>
    <DIV><FONT size=2></FONT>&nbsp;</DIV>
    <DIV><FONT size=2>Is anyone already did that ?</FONT></DIV>
    <DIV><FONT size=2></FONT>&nbsp;</DIV>
    <DIV><FONT size=2>Thanks</FONT></DIV>
    <DIV><FONT size=2><BR>Franck</FONT></DIV></SPAN></BLOCKQUOTE></DIV><BR></DIV>
  <P>
  <HR>

  <P></P>_______________________________________________<BR>FreeSWITCH-users 
  mailing list<BR><A 
  href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</A><BR>http://lists.freeswitch.org/mailman/listinfo/freeswitch-users<BR>UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users<BR>http://www.freeswitch.org<BR></BLOCKQUOTE></BODY></HTML>