<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Alright, that clarifies. Thank you.<br>
      <br>
      So, I'll do a LUA script &amp; static dial-plan for
      prototyping...xml_curl I'll re-visit once ready for dynamic
      dial-plan.<br>
      <br>
      <br>
      On 14-05-12 02:59 PM, Avi Marcus wrote:<br>
    </div>
    <blockquote
cite="mid:00000145f1cd9d99-14d8a5ec-702d-4ade-ac53-a113b34dcc52-000000@email.amazonses.com"
      type="cite">
      <div dir="ltr">XML curl is to "take over" the dialplan, with your
        own code providing the dialplan XML. I don't think that's what
        you want at all.
        <div><br>
          <div>Sounds like you just want to get the response
            information, that's something small -- an embedded <a
              moz-do-not-send="true"
              href="https://wiki.freeswitch.org/wiki/Lua">lua</a> script
            to set a channel var, or even a <a moz-do-not-send="true"
              href="http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_system">system</a>
            call -- just beware initialization time.</div>
          <div><br>
          </div>
          <div>If you had the information directly (or JSON?), you could
            simply use <a moz-do-not-send="true"
              href="https://wiki.freeswitch.org/wiki/Mod_curl">mod_curl</a>&nbsp;but
            I don't think that will parse this for you.</div>
          <div>Actually, you could use mod_curl to save to a variable,
            and then use <a moz-do-not-send="true"
              href="http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_regex">regex</a>
            to pull out the part you want (see last example).</div>
          <div class="gmail_extra"><br clear="all">
            <div>
              <div dir="ltr"><span
                  style="font-family:Verdana,Arial,Helvetica,sans-serif;font-size:small">-Avi
                  Marcus<br>
                </span></div>
            </div>
            <div dir="ltr"><span
                style="font-family:Verdana,Arial,Helvetica,sans-serif;font-size:small">BestFone</span></div>
            <br>
            <br>
            <div class="gmail_quote">On Mon, May 12, 2014 at 9:09 PM,
              Victor Chukalovskiy <span dir="ltr">&lt;<a
                  moz-do-not-send="true"
                  href="mailto:victor.chukalovskiy@gmail.com"
                  target="_blank">victor.chukalovskiy@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">
                <div bgcolor="#FFFFFF" text="#000000"> Good day,<br>
                  <br>
                  I have a web server that I can request as following:<br>
                  <a moz-do-not-send="true"
                    href="http://192.168.1.2/pqrs/route?tn=4165555555"
                    target="_blank">http://192.168.1.2/pqrs/route?tn=4165555555</a><br>
                  <br>
                  And it will respond with xml containing LRN which
                  looks like this:<br>
                  <br>
                  &lt;pqrsd&gt;<br>
                  &nbsp; &lt;api&gt;pqrsd&lt;/api&gt;<br>
                  &nbsp; &lt;operation&gt;route&lt;/operation&gt;<br>
                  &nbsp; &lt;status&gt;success&lt;/status&gt;<br>
                  &nbsp; &lt;tn&gt;<a moz-do-not-send="true"
                    href="tel:4165555555" value="+14165555555"
                    target="_blank">4165555555</a>&lt;/tn&gt;<br>
                  &nbsp; &lt;region&gt;canada&lt;/region&gt;<br>
                  <b>&nbsp; &lt;rn&gt;4160000001&lt;/rn&gt;</b><br>
                  &nbsp; &lt;spid/&gt;<br>
                  &nbsp; &lt;spName/&gt;<br>
                  &nbsp; &lt;routedBy&gt;none&lt;/routedBy&gt;<br>
                  &lt;/pqrsd&gt;<br>
                  <br>
                  <br>
                  Can I use mod_xml_curl to make LRN queries from XML
                  dialplan and put LRN from the response into a channel
                  variable? Is it suitable for such real-time queries?<br>
                  If so, how should I setup mod_xml_curl? WiKi mostly
                  goes over standard stuff such as getting directory,
                  dialplan, ACL etc<br>
                  <br>
                  Thank you,<br>
                  -Victor<br>
                  <br>
                  <br>
                </div>
                <br>
_________________________________________________________________________<br>
                Professional FreeSWITCH Consulting Services:<br>
                <a moz-do-not-send="true"
                  href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
                <a moz-do-not-send="true"
                  href="http://www.freeswitchsolutions.com"
                  target="_blank">http://www.freeswitchsolutions.com</a><br>
                <br>
                FreeSWITCH-powered IP PBX: The CudaTel Communication
                Server<br>
                <a moz-do-not-send="true" href="http://www.cudatel.com"
                  target="_blank">http://www.cudatel.com</a><br>
                <br>
                Official FreeSWITCH Sites<br>
                <a moz-do-not-send="true"
                  href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
                <a moz-do-not-send="true"
                  href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
                <a moz-do-not-send="true" href="http://www.cluecon.com"
                  target="_blank">http://www.cluecon.com</a><br>
                <br>
                FreeSWITCH-users mailing list<br>
                <a moz-do-not-send="true"
                  href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
                <a moz-do-not-send="true"
                  href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"
                  target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
                UNSUBSCRIBE:<a moz-do-not-send="true"
                  href="http://lists.freeswitch.org/mailman/options/freeswitch-users"
                  target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
                <a moz-do-not-send="true"
                  href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
                <br>
              </blockquote>
            </div>
            <br>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
<a class="moz-txt-link-abbreviated" href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a>

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
<a class="moz-txt-link-freetext" href="http://www.cudatel.com">http://www.cudatel.com</a>

Official FreeSWITCH Sites
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://wiki.freeswitch.org">http://wiki.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://www.cluecon.com">http://www.cluecon.com</a>

FreeSWITCH-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>