<div dir="ltr">Thanks for your reply, yes issue got fix.</div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Oct 8, 2017 at 12:25 AM, Yuriy Gorlichenko <span dir="ltr"><<a href="mailto:ovoshlook@gmail.com" target="_blank">ovoshlook@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">You installed lib for lua 5.1 but Freeswitch requires lua 5.2<br>you soulh it to install via luarocks for 5.2<br><br></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">2017-10-07 21:05 GMT+03:00 Bilal Abbasi <span dir="ltr"><<a href="mailto:bilaln018@gmail.com" target="_blank">bilaln018@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<div>I build the lua script and used the cURL module for that(<a href="https://github.com/Lua-cURL/Lua-cURLv3" target="_blank">https://github.com/Lua-cU<wbr>RL/Lua-cURLv3</a>)</div><div>I am successfully place the POST request using that module, but when i use that with in freeswitch using application lua it raise the ERR</div><div>
<p class="m_-9206398661837034753m_-8965434087592492895gmail-p1"><span class="m_-9206398661837034753m_-8965434087592492895gmail-s1"><font color="#ff0000">2017-10-07 17:46:47.592484 [ERR] mod_lua.cpp:203 error loading module 'lcurl' from file '/usr/local/lib/lua/5.1/lcurl.<wbr>so':</font></span></p>
<p class="m_-9206398661837034753m_-8965434087592492895gmail-p1"><span class="m_-9206398661837034753m_-8965434087592492895gmail-s1"><font color="#ff0000"><span class="m_-9206398661837034753m_-8965434087592492895gmail-Apple-tab-span"> </span>/usr/local/lib/lua/5.1/lcurl.s<wbr>o: undefined symbol: lua_tointeger</font></span></p><p class="m_-9206398661837034753m_-8965434087592492895gmail-p1"><span class="m_-9206398661837034753m_-8965434087592492895gmail-s1"><br></span></p><p class="m_-9206398661837034753m_-8965434087592492895gmail-p1"><span class="m_-9206398661837034753m_-8965434087592492895gmail-s1">I am not sure why its raising this error while loading, its not raising this when i run the script directly fromt the shell.</span></p><p class="m_-9206398661837034753m_-8965434087592492895gmail-p1"><span class="m_-9206398661837034753m_-8965434087592492895gmail-s1">Can you please help me in this regard.</span></p><p class="m_-9206398661837034753m_-8965434087592492895gmail-p1"><span class="m_-9206398661837034753m_-8965434087592492895gmail-s1"><br></span></p><p class="m_-9206398661837034753m_-8965434087592492895gmail-p1"><span class="m_-9206398661837034753m_-8965434087592492895gmail-s1">Regards</span></p><span class="m_-9206398661837034753HOEnZb"><font color="#888888"><p class="m_-9206398661837034753m_-8965434087592492895gmail-p1"><span class="m_-9206398661837034753m_-8965434087592492895gmail-s1">Abbasi</span></p></font></span></div><div><div class="m_-9206398661837034753h5"><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Oct 6, 2017 at 8:01 PM, Bilal Abbasi <span dir="ltr"><<a href="mailto:bilaln018@gmail.com" target="_blank">bilaln018@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Thanks i will try that way. Highly appreciated your response.<div><br></div><div>Regards</div><span class="m_-9206398661837034753m_-8965434087592492895gmail-HOEnZb"><font color="#888888"><div>Abbasi</div></font></span></div><div class="m_-9206398661837034753m_-8965434087592492895gmail-HOEnZb"><div class="m_-9206398661837034753m_-8965434087592492895gmail-h5"><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Oct 6, 2017 at 7:20 PM, Yuriy Gorlichenko <span dir="ltr"><<a href="mailto:ovoshlook@gmail.com" target="_blank">ovoshlook@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto">i think in your case will be better to use bg_api command and run handler there. <div dir="auto">Regarding native or not. Here is a good question - what will be faster and i not sure that native will be faster way than lua binding</div></div><div class="m_-9206398661837034753m_-8965434087592492895gmail-m_7731840554896077770HOEnZb"><div class="m_-9206398661837034753m_-8965434087592492895gmail-m_7731840554896077770h5"><div class="gmail_extra"><br><div class="gmail_quote">On Oct 6, 2017 17:05, "Bilal Abbasi" <<a href="mailto:bilaln018@gmail.com" target="_blank">bilaln018@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi,<div>Thanks for the answer,</div><div>1) Yes i am aware of that, in fact we need to inform the user that file is uploaded successfully or not, so it's normal to have few seconds delay.</div><div>2)Yes i tried that way, and i did able to do that using lua cURL library, but i am only interested to know that may be the native function can provide me this, I mean if somebody has build this module there should/must be a way to get the status.</div><div><br></div><div>Regards</div><div>Abbasi</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Oct 6, 2017 at 12:55 PM, Yuriy Gorlichenko <span dir="ltr"><<a href="mailto:ovoshlook@gmail.com" target="_blank">ovoshlook@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto">First of all - be carefull with file uploading from the dialplan, because it can block call handling while you did not get response.<div dir="auto"><br></div><div dir="auto">Secondly - you also can use some external lua httpclient binding via require and use it to get response statuses that you need.</div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="m_-9206398661837034753m_-8965434087592492895gmail-m_7731840554896077770m_-7385203976913041286m_-6775459798489329221h5">On Oct 6, 2017 10:00, "Bilal Abbasi" <<a href="mailto:bilaln018@gmail.com" target="_blank">bilaln018@gmail.com</a>> wrote:<br type="attribution"></div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div class="m_-9206398661837034753m_-8965434087592492895gmail-m_7731840554896077770m_-7385203976913041286m_-6775459798489329221h5"><div dir="ltr">Anybody here that can please help me out?<div><br></div><div>Regards</div><div>Abbasi</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Oct 4, 2017 at 3:38 PM, Bilal Abbasi <span dir="ltr"><<a href="mailto:bilaln018@gmail.com" target="_blank">bilaln018@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi Users,<div>I am using lua script to actually call the curl_sendfile, i am able to successfully POST the file on URL, but i am only curious to know the response variables to get the status.</div><div>Like i used curl previously and there are two variables that are auto set curl_response_data and curl_response_code, i am looking same in the curl_sendfile.</div><div>CAn anybody help me in this?</div><div><br></div><div>P.S: i did tried to send file using curl, but i am not aware that how to do that using the curl -F(--form) option, i can upload a file using commandline linux curl command , but could not mapp the option -F in the freeswitch.</div><div><br></div><div>Regards</div><span class="m_-9206398661837034753m_-8965434087592492895gmail-m_7731840554896077770m_-7385203976913041286m_-6775459798489329221m_8268465840083555746m_-1544588803939955387HOEnZb"><font color="#888888"><div>Abbasi</div></font></span></div>
</blockquote></div><br></div>
<br></div></div>______________________________<wbr>______________________________<wbr>_____________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions<wbr>.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.o<wbr>rg</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswi<wbr>tch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/ma<wbr>ilman/listinfo/freeswitch-user<wbr>s</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.frees<wbr>witch.org/mailman/options/free<wbr>switch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br></blockquote></div></div>
<br>______________________________<wbr>______________________________<wbr>_____________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions<wbr>.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.o<wbr>rg</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswi<wbr>tch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/ma<wbr>ilman/listinfo/freeswitch-user<wbr>s</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.frees<wbr>witch.org/mailman/options/free<wbr>switch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br></div>
<br>______________________________<wbr>______________________________<wbr>_____________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions<wbr>.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.o<wbr>rg</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswi<wbr>tch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/ma<wbr>ilman/listinfo/freeswitch-user<wbr>s</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.frees<wbr>witch.org/mailman/options/free<wbr>switch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br></blockquote></div></div>
</div></div><br>______________________________<wbr>______________________________<wbr>_____________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions<wbr>.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.o<wbr>rg</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswi<wbr>tch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/ma<wbr>ilman/listinfo/freeswitch-user<wbr>s</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.frees<wbr>witch.org/mailman/options/free<wbr>switch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br></div>
</div></div></blockquote></div><br></div></div></div></div>
<br>______________________________<wbr>______________________________<wbr>_____________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions<wbr>.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.o<wbr>rg</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswi<wbr>tch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/ma<wbr>ilman/listinfo/freeswitch-user<wbr>s</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.frees<wbr>witch.org/mailman/options/<wbr>freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br></div>
</div></div><br>______________________________<wbr>______________________________<wbr>_____________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.<wbr>freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.<wbr>org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.<wbr>freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/<wbr>mailman/listinfo/freeswitch-<wbr>users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.<wbr>freeswitch.org/mailman/<wbr>options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br></div>