<div dir="auto">You can make a curl call or a system call directly in the dial plan. <div dir="auto"><br></div><div dir="auto">You can even get the results in a channel variable for further processing. </div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Aug 9, 2022, 3:30 PM Gilles SAUVAIRE <<a href="mailto:gilles@sauvaire.com">gilles@sauvaire.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="FR" link="#0563C1" vlink="#954F72" style="word-wrap:break-word"><div class="m_6977119883258885907WordSection1"><p class="MsoNormal">Hi there,<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">I need inside a dialplan, to launch an external program, and to take the return of this program to use it in the dialplan.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">I think a LUA script can do it?<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">If anyone has an example script, I'm interested.<u></u><u></u></p><p class="MsoNormal">Or is another technique better?<u></u><u></u></p><p class="MsoNormal">Launching an external program at each call can be very resource-intensive, maybe make a request on a specific web service port, or something else?<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">the idea is to add the user's name in the from.<u></u><u></u></p><p class="MsoNormal">(but this name changes depending on the external context, it must be calculated, I cannot make a simple database query)<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">someone has already done it I guess I'm not the first to have this need...<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Thank you all...<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Gilles<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><u></u> <u></u></p></div></div>_________________________________________________________________________<br>
<br>
The FreeSWITCH project is sponsored by SignalWire <a href="https://signalwire.com" rel="noreferrer noreferrer" target="_blank">https://signalwire.com</a><br>
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.<br>
Build your next product on our scalable cloud platform.<br>
<br>
Join our online community to chat in real time <a href="https://signalwire.community" rel="noreferrer noreferrer" target="_blank">https://signalwire.community</a><br>
<br>
Professional FreeSWITCH Services<br>
<a href="mailto:sales@freeswitch.com" target="_blank" rel="noreferrer">sales@freeswitch.com</a><br>
<a href="https://freeswitch.com" rel="noreferrer noreferrer" target="_blank">https://freeswitch.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="https://freeswitch.com/oss" rel="noreferrer noreferrer" target="_blank">https://freeswitch.com/oss</a><br>
<a href="https://freeswitch.org/confluence" rel="noreferrer noreferrer" target="_blank">https://freeswitch.org/confluence</a><br>
<a href="https://cluecon.com" rel="noreferrer noreferrer" target="_blank">https://cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank" rel="noreferrer">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="https://freeswitch.com" rel="noreferrer noreferrer" target="_blank">https://freeswitch.com</a></blockquote></div>