<div dir="rtl"><div dir="ltr">I had the same issue on Centos; after a few hours or attepmts I decided to re-write my JS scripts to LUA...</div><div dir="ltr"><br></div><div dir="ltr"> __Yehavi:<br></div></div><br><div class="gmail_quote"><div dir="rtl" class="gmail_attr">בתאריך יום ה׳, 5 בדצמ׳ 2019 ב-6:42 מאת Shahnawaj Khan <<a href="mailto:shahnawaj.khan1990@gmail.com">shahnawaj.khan1990@gmail.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Ciprian,<br>
<br>
I am using CentOs 7 and installed v8-devel.x86_64 1:3.14.5.10-25.el7<br>
on my machine. Now it is giving list of errors such as<br>
<br>
In file included from mod_v8.h:36:0,<br>
from mod_v8.cpp:68:<br>
./include/javascript.hpp:163:53: error: ‘FunctionCallbackInfo’ in<br>
namespace ‘v8’ does not name a type<br>
typedef void_pointer_t (*ConstructorCallback)(const<br>
v8::FunctionCallbackInfo<v8::Value>& info);<br>
^<br>
./include/javascript.hpp:163:57: error: ISO C++ forbids declaration of<br>
‘parameter’ with no type [-fpermissive]<br>
typedef void_pointer_t (*ConstructorCallback)(const<br>
v8::FunctionCallbackInfo<v8::Value>& info);<br>
^<br>
./include/javascript.hpp:163:77: error: expected ‘,’ or ‘...’ before ‘<’ token<br>
typedef void_pointer_t (*ConstructorCallback)(const<br>
v8::FunctionCallbackInfo<v8::Value>& info);<br>
^<br>
./include/javascript.hpp:168:2: error: ‘FunctionCallback’ in namespace<br>
‘v8’ does not name a type<br>
v8::FunctionCallback func; /* Function callback */<br>
^<br>
./include/javascript.hpp:174:2: error: ‘AccessorGetterCallback’ in<br>
namespace ‘v8’ does not name a type<br>
v8::AccessorGetterCallback get; /* The property getter */<br>
<br>
is this due to some version issue of v8.<br>
<br>
Thanks & Regards,<br>
shahnawaj<br>
<br>
On Thu, Dec 5, 2019 at 9:53 AM Ciprian Dosoftei<br>
<<a href="mailto:ciprian.dosoftei@gmail.com" target="_blank">ciprian.dosoftei@gmail.com</a>> wrote:<br>
><br>
> Shahnawaj --<br>
><br>
> Make sure you have libv8-dev installed on the machine you're building the module (and libv8 on the machines where you use the module).<br>
><br>
> -C<br>
><br>
> On Wed, Dec 4, 2019, 4:05 PM Sean DiSanti <<a href="mailto:sdisanti.eteleco@gmail.com" target="_blank">sdisanti.eteleco@gmail.com</a>> wrote:<br>
>><br>
>> You most likely need to uncomment the line to load the v8 module in /etc/freeswitch/autoload_configs/modules.conf.xml You're going to run into a few other issues getting that pizza demo working (speaking from experience) depending on where you got the code for SpeechTools.jm. I don't remember all of them as it's been about a year since I went through that one, but you'll almost definitely need to add use('XML') to the top of your SpeechTools.jm<br>
>><br>
>> On Wed, Dec 4, 2019 at 8:29 AM Shahnawaj Khan <<a href="mailto:shahnawaj.khan1990@gmail.com" target="_blank">shahnawaj.khan1990@gmail.com</a>> wrote:<br>
>>><br>
>>> Hi,<br>
>>><br>
>>> I need to test freeswitch asr sample<br>
>>> <extension name="pizza_demo"><br>
>>> <condition field="destination_number" expression="^(9711614454)$"/><br>
>>> <condition field="${module_exists(mod_v8)}" expression="true"/><br>
>>> <condition field="${module_exists(mod_pocketsphinx)}" expression="true"><br>
>>> <action application="javascript" data="ps_pizza.js"/><br>
>>> </condition><br>
>>> </extension><br>
>>> mod_v8 is required to run the javascript. It is not there by default,<br>
>>> So i tried to compile it but facing the issue as.<br>
>>><br>
>>> ./include/javascript.hpp:35:16: fatal error: v8.h: No such file or directory<br>
>>> #include <v8.h><br>
>>><br>
>>> Please let me know if anyone have faced the same issue and its resolution.<br>
>>><br>
>>> Thanks & Regards,<br>
>>> shahnawaj<br>
>>><br>
>>> _________________________________________________________________________<br>
>>><br>
>>> The FreeSWITCH project is sponsored by SignalWire <a href="https://signalwire.com" rel="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" target="_blank">https://signalwire.community</a><br>
>>><br>
>>> Professional FreeSWITCH Services<br>
>>> <a href="mailto:sales@freeswitch.com" target="_blank">sales@freeswitch.com</a><br>
>>> <a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a><br>
>>><br>
>>> Official FreeSWITCH Sites<br>
>>> <a href="https://freeswitch.com/oss" rel="noreferrer" target="_blank">https://freeswitch.com/oss</a><br>
>>> <a href="https://freeswitch.org/confluence" rel="noreferrer" target="_blank">https://freeswitch.org/confluence</a><br>
>>> <a href="https://cluecon.com" rel="noreferrer" target="_blank">https://cluecon.com</a><br>
>>><br>
>>> FreeSWITCH-users mailing list<br>
>>> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
>>> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="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" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
>>> <a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a><br>
>><br>
>> _________________________________________________________________________<br>
>><br>
>> The FreeSWITCH project is sponsored by SignalWire <a href="https://signalwire.com" rel="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" target="_blank">https://signalwire.community</a><br>
>><br>
>> Professional FreeSWITCH Services<br>
>> <a href="mailto:sales@freeswitch.com" target="_blank">sales@freeswitch.com</a><br>
>> <a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a><br>
>><br>
>> Official FreeSWITCH Sites<br>
>> <a href="https://freeswitch.com/oss" rel="noreferrer" target="_blank">https://freeswitch.com/oss</a><br>
>> <a href="https://freeswitch.org/confluence" rel="noreferrer" target="_blank">https://freeswitch.org/confluence</a><br>
>> <a href="https://cluecon.com" rel="noreferrer" target="_blank">https://cluecon.com</a><br>
>><br>
>> FreeSWITCH-users mailing list<br>
>> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
>> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="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" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
>> <a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a><br>
><br>
> _________________________________________________________________________<br>
><br>
> The FreeSWITCH project is sponsored by SignalWire <a href="https://signalwire.com" rel="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" target="_blank">https://signalwire.community</a><br>
><br>
> Professional FreeSWITCH Services<br>
> <a href="mailto:sales@freeswitch.com" target="_blank">sales@freeswitch.com</a><br>
> <a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a><br>
><br>
> Official FreeSWITCH Sites<br>
> <a href="https://freeswitch.com/oss" rel="noreferrer" target="_blank">https://freeswitch.com/oss</a><br>
> <a href="https://freeswitch.org/confluence" rel="noreferrer" target="_blank">https://freeswitch.org/confluence</a><br>
> <a href="https://cluecon.com" rel="noreferrer" target="_blank">https://cluecon.com</a><br>
><br>
> FreeSWITCH-users mailing list<br>
> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="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" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
> <a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a><br>
<br>
_________________________________________________________________________<br>
<br>
The FreeSWITCH project is sponsored by SignalWire <a href="https://signalwire.com" rel="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" target="_blank">https://signalwire.community</a><br>
<br>
Professional FreeSWITCH Services<br>
<a href="mailto:sales@freeswitch.com" target="_blank">sales@freeswitch.com</a><br>
<a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="https://freeswitch.com/oss" rel="noreferrer" target="_blank">https://freeswitch.com/oss</a><br>
<a href="https://freeswitch.org/confluence" rel="noreferrer" target="_blank">https://freeswitch.org/confluence</a><br>
<a href="https://cluecon.com" rel="noreferrer" target="_blank">https://cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="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" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a></blockquote></div>