<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    On 10/27/2011 04:07 PM, Michael Collins wrote:
    <blockquote
cite="mid:CAKzWOxV4JmzKuEBiQANWmh5MmfV3=rGz+LiZYxw-aoG6oD4iwg@mail.gmail.com"
      type="cite">Trever,
      <div><br>
      </div>
      <div>You're in one of those gray areas where xml_curl may actually
        be easier in the long run unless you have just this one single
        set of goofy conditions to handle. However, if I understand your
        question correctly you should be able to do this in the
        dialplan.</div>
      <div><br>
      </div>
      <div>I can't be exactly certain why your call is failing since the
        debug log snippet you gave was a bit small, however my guess is
        that you don't actually have any actions inside of a matching
        &lt;condition&gt; for the call that was made. It looks like it
        was a "private" caller so this line would no doubt match:</div>
      <div><br>
      </div>
      <div><font class="Apple-style-span" face="'courier new',
          monospace" size="1"><span class="Apple-style-span"
            style="background-color: rgb(255, 255, 255); ">&lt;condition
            field="caller_id_name" expression=".*rivate.*"</span><br
            style="background-color: rgb(255, 255, 255); ">
          <span class="Apple-style-span" style="background-color:
            rgb(255, 255, 255); ">break="on-true"/&gt;</span></font></div>
      <div><font class="Apple-style-span" face="arial, sans-serif"><br>
        </font></div>
      <div><font class="Apple-style-span" face="arial, sans-serif">When
          that condition matches, the dialplan processing will stop
          checking for any more conditions inside of the extension named
          "screen" and simply move on in the dialplan. (That behavior is
          caused by the break="on-true" directive.) So, do you have any
          other extensions in this context? Whether you do or not, it
          seems like none of your conditions that actually have actions
          inside them is being matched, therefore you have no actions
          for this call and get the no route error.</font></div>
      <div><font class="Apple-style-span" face="arial, sans-serif"><br>
        </font></div>
      <div><font class="Apple-style-span" face="arial, sans-serif">My
          recommendation is to pastebin the entire Incoming-FXO context
          as well as debug level output for the incoming call. Paste the
          call log from start to finish. That will help us see what's
          really going on.</font></div>
      <div><font class="Apple-style-span" face="arial, sans-serif"><br>
        </font></div>
      <div><font class="Apple-style-span" face="arial, sans-serif">-MC<br>
        </font><br>
      </div>
    </blockquote>
    MC,<br>
    <br>
    Thank you, I will have to look into xml_curl. Apparently I
    misunderstood the documentation. If ANY of these things match, the
    actions to screen the call should be taken. Am I messing this up?<br>
    <br>
    At the moment I have no other processing of incoming calls. Still
    working on things.<br>
    <br>
    <blockquote
cite="mid:CAKzWOxV4JmzKuEBiQANWmh5MmfV3=rGz+LiZYxw-aoG6oD4iwg@mail.gmail.com"
      type="cite">
      <div>
        <div class="gmail_quote">On Thu, Oct 27, 2011 at 1:44 PM, Trever
          L. Adams <span dir="ltr">&lt;<a moz-do-not-send="true"
              href="mailto:trever.adams@gmail.com">trever.adams@gmail.com</a>&gt;</span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex;">The
            dialplan:<br>
            <br>
            &lt;include&gt;<br>
               &lt;context name="Incoming-FXO"&gt;<br>
                   &lt;extension name="screen"&gt;<br>
                       &lt;condition field="caller_id_number"
            expression="^$"<br>
            break="on-true"/&gt;<br>
                       &lt;condition field="caller_id_number"
            expression=".nonymous.*"<br>
            break="on-true"/&gt;<br>
                       &lt;condition field="caller_id_number"
            expression=".nknown.*"<br>
            break="on-true"/&gt;<br>
                       &lt;condition field="caller_id_number"
            expression=".*rivate.*"<br>
            break="on-true"/&gt;<br>
                       &lt;condition field="caller_id_number"<br>
            expression=".estricted.*" break="on-true"/&gt;<br>
                       &lt;condition field="caller_id_number"
            expression="PTSN.*"<br>
            break="on-true"/&gt;<br>
                       &lt;condition field="caller_id_number"
            expression=".oll.*"<br>
            break="on-true"/&gt;<br>
                       &lt;condition field="caller_id_name"
            expression=".nonymous.*"<br>
            break="on-true"/&gt;<br>
                       &lt;condition field="caller_id_name"
            expression=".nknown.*"<br>
            break="on-true"/&gt;<br>
                       &lt;condition field="caller_id_name"
            expression=".*rivate.*"<br>
            break="on-true"/&gt;<br>
                       &lt;condition field="caller_id_name"
            expression=".estricted.*"<br>
            break="on-true"/&gt;<br>
                       &lt;condition field="caller_id_name"
            expression="PTSN.*"<br>
            break="on-true"/&gt;<br>
                       &lt;condition field="caller_id_name"
            expression=".oll.*"<br>
            break="on-true"/&gt;<br>
                       &lt;condition field="caller_id_name"
            expression=".--.*"<br>
            break="on-true"/&gt;<br>
                       &lt;condition field="caller_id_name"
            expression=",.*"<br>
            break="on-true"/&gt;<br>
                       &lt;condition field="caller_id_name"
            expression="000.*"&gt;<br>
                           &lt;action application="set"<br>
data="call_screen_filename=/tmp/${caller_id_number}-name.wav"/&gt;<br>
                           &lt;action application="answer"/&gt;<br>
                           &lt;action application="sleep"
            data="1000"/&gt;<br>
                           &lt;action application="phrase"
            data="voicemail_record_name"/&gt;<br>
                           &lt;action application="playback"<br>
            data="tone_stream://%(500, 0, 640)"/&gt;<br>
                           &lt;action application="set"<br>
            data="playback_terminators=#*0123456789"/&gt;<br>
                           &lt;action application="record"<br>
            data="${call_screen_filename} 7 200 2"/&gt;<br>
                           &lt;action application="set"
            data="group_confirm_key=1"/&gt;<br>
                           &lt;action application="set"<br>
            data="fail_on_single_reject=true"/&gt;<br>
                           &lt;action application="set"<br>
data="group_confirm_file=phrase:screen_confirm:${call_screen_filename}"/&gt;<br>
                           &lt;action application="set"
            data="continue_on_fail=true"/&gt;<br>
            &lt;!--                &lt;action application="bridge"
            data="user/$1"/&gt; --&gt;<br>
                           &lt;action application="voicemail"
            data="default $${domain}<br>
            $1"/&gt;<br>
                           &lt;action application="hangup"/&gt;<br>
                       &lt;/condition&gt;<br>
                   &lt;/extension&gt;<br>
               &lt;/context&gt;<br>
            &lt;/include&gt;<br>
          </blockquote>
        </div>
      </div>
    </blockquote>
    <br>
  </body>
</html>