<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
sean darcy escribi&oacute;:
<blockquote cite="mid:h0j65t$eei$1@ger.gmane.org" type="cite">
  <pre wrap="">Jared Smith wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">On Sat, 2009-06-06 at 21:24 +0200, Philipp Kempgen wrote:
    </pre>
    <blockquote type="cite">
      <blockquote type="cite">
        <pre wrap="">exten =&gt; s,n,Set(CALLERID(num)=${IF($[0${CALLERID(num)} &gt; 140] ? 
${MAINSTUB}${CALLERID(num)}:${MAINNUMBER} )} )
        </pre>
      </blockquote>
      <pre wrap="">                                           ^  ^
                              remove the trailing spaces
      </pre>
    </blockquote>
    <pre wrap="">You'll also want to remove any spaces from around the question mark
(after your expression).


    </pre>
  </blockquote>
  <pre wrap=""><!---->
Thanks.

Now I have someone in the office, I messed around a bit. The only space 
that mattered was the last one. None of the spaces inside ${IF...} 
mattered. It makes sense since the parser must see Set(CID=&lt;whatever's 
in the IF clause&gt;&lt;then a space&gt;)

Is there a way to test this remotely using "originate", or some other 
CLI command?

sean
  </pre>
</blockquote>
If you have chan_oss (the console channel driver) loaded, you can do a
CLI dial command, for example: dial extension@context . After you see
what happens with the call, you can hangup it with the CLI hangup
command if the dialplan doesn't hangup it already. Also, if your PC or
server has a well configured sound card and speakers, the console call
would be heard too.<br>
<br>
Regards,<br>
<br>
<pre class="moz-signature" cols="72">-- 
Ing. Miguel Molina
Grupo de Tecnolog&iacute;a
Millenium Phone Center
</pre>
</body>
</html>