Where are you doing the curl call? Just curious if this is happening inside the dialplan or a script or what. FYI, I covered this in chapter 7 of the FreeSWITCH book on how to use mod_curl from a Lua script and parse the results. If you're just doing it from the dialplan then you probably need a script, although you can try using the regex API. See <a href="http://wiki.freeswitch.org/wiki/Mod_commands#From_the_Dialplan">http://wiki.freeswitch.org/wiki/Mod_commands#From_the_Dialplan</a> for tips on how to call an API from within the dialplan.<div>
<br></div><div>-MC<br><br><div class="gmail_quote">On Thu, Feb 3, 2011 at 6:27 PM, <a href="mailto:james.royer@gmail.com">james.royer@gmail.com</a> <span dir="ltr"><<a href="mailto:james.royer@gmail.com">james.royer@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi All,<br><br>I want to use mod_curl to query a web service and then extract information from the XML response.<br><br>
<response><br> <value1>test</value1><br> <value2>blah</value2><br></response><br>
<br>I then want to use TTS to speak the values to the caller.<br><br>How can I do this?<br><br>I tried searches for "freeswitch parse xml" and other variations but all just talk about how FreeSWITCH parses config files.<br>
<br>Thanks,<br><font color="#888888">James<br>
</font><br>_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br></div>