<div>make your API to response a plain test string, or parse anything use lua or javascript etc.</div><div><div><br></div></div>
<p style="color: #A0A0A8;">On Saturday, November 16, 2013 at 6:52 PM, Ashwin Jain wrote:</p>
<blockquote type="cite" style="border-left-style:solid;border-width:1px;margin-left:0px;padding-left:10px;">
<span><div><div><div dir="ltr"><span style="font-family:arial,sans-serif;font-size:12.727272033691406px">Hi,</span><div style="font-family:arial,sans-serif;font-size:12.727272033691406px"><br></div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">
I wanted to do a REST API call for determining the outgoing number for bridge application. My REST API call response is </div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px"><br></div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">
<span style="font-size: 13px; font-family: monospace; ">{</span><ul style="list-style-type: none; font-size: 13px; font-family: monospace; margin: 0px 0px 0px 2em; padding: 0px; "><li style="margin-left:15px"><div style="display:inline-block;padding:1px 2px;border-top-left-radius:2px;border-top-right-radius:2px;border-bottom-right-radius:2px;border-bottom-left-radius:2px">
<span style="font-weight:bold">phone</span>: <span style="color:green">"+1415800000"</span></div></li></ul><span style="font-size: 13px; font-family: monospace; ">}</span></div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">
<font color="#000000" face="monospace" size="3"><br></font></div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">How can I parse my response and get the phone number in my dialplan? I am right now using mod_curl.</div>
<br clear="all"><div><br></div>-- <br><div dir="ltr">Thanks and Regards,<br>Ashwin Jain<br></div>
</div>
</div><div><div>_________________________________________________________________________</div><div>Professional FreeSWITCH Consulting Services:</div><div><a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a></div><div><a href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a></div><div><br></div><div>FreeSWITCH-powered IP PBX: The CudaTel Communication Server</div><div><a href="http://www.cudatel.com">http://www.cudatel.com</a></div><div><br></div><div>Official FreeSWITCH Sites</div><div><a href="http://www.freeswitch.org">http://www.freeswitch.org</a></div><div><a href="http://wiki.freeswitch.org">http://wiki.freeswitch.org</a></div><div><a href="http://www.cluecon.com">http://www.cluecon.com</a></div><div><br></div><div>FreeSWITCH-users mailing list</div><div><a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a></div><div><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a></div><div>UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a></div><div><a href="http://www.freeswitch.org">http://www.freeswitch.org</a></div></div></div></span>
</blockquote>
<div>
<br>
</div>