[Freeswitch-users] Unable to compile mod_v8

Shahnawaj Khan shahnawaj.khan1990 at gmail.com
Thu Dec 5 07:20:02 UTC 2019


Hi Yehavi,

Is there any chance that I can get that sample lua script.

Thanks & Regards,
Shahnawaj

On Thu, Dec 5, 2019 at 12:14 PM Yehavi Bourvine
<yehavi.bourvine at gmail.com> wrote:
>
> I had the same issue on Centos; after a few hours or attepmts I decided to  re-write my JS scripts to LUA...
>
>                        __Yehavi:
>
> ‫בתאריך יום ה׳, 5 בדצמ׳ 2019 ב-6:42 מאת ‪Shahnawaj Khan‬‏ <‪shahnawaj.khan1990 at gmail.com‬‏>:‬
>>
>> Hi Ciprian,
>>
>> I am using CentOs 7 and installed v8-devel.x86_64 1:3.14.5.10-25.el7
>> on my machine. Now it is giving list of errors such as
>>
>> In file included from mod_v8.h:36:0,
>>                  from mod_v8.cpp:68:
>> ./include/javascript.hpp:163:53: error: ‘FunctionCallbackInfo’ in
>> namespace ‘v8’ does not name a type
>>  typedef void_pointer_t (*ConstructorCallback)(const
>> v8::FunctionCallbackInfo<v8::Value>& info);
>>                                                      ^
>> ./include/javascript.hpp:163:57: error: ISO C++ forbids declaration of
>> ‘parameter’ with no type [-fpermissive]
>>  typedef void_pointer_t (*ConstructorCallback)(const
>> v8::FunctionCallbackInfo<v8::Value>& info);
>>                                                          ^
>> ./include/javascript.hpp:163:77: error: expected ‘,’ or ‘...’ before ‘<’ token
>>  typedef void_pointer_t (*ConstructorCallback)(const
>> v8::FunctionCallbackInfo<v8::Value>& info);
>>                                                                              ^
>> ./include/javascript.hpp:168:2: error: ‘FunctionCallback’ in namespace
>> ‘v8’ does not name a type
>>   v8::FunctionCallback func;    /* Function callback */
>>   ^
>> ./include/javascript.hpp:174:2: error: ‘AccessorGetterCallback’ in
>> namespace ‘v8’ does not name a type
>>   v8::AccessorGetterCallback get;   /* The property getter */
>>
>> is this due to some version issue of v8.
>>
>> Thanks & Regards,
>> shahnawaj
>>
>> On Thu, Dec 5, 2019 at 9:53 AM Ciprian Dosoftei
>> <ciprian.dosoftei at gmail.com> wrote:
>> >
>> > Shahnawaj --
>> >
>> > 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).
>> >
>> > -C
>> >
>> > On Wed, Dec 4, 2019, 4:05 PM Sean DiSanti <sdisanti.eteleco at gmail.com> wrote:
>> >>
>> >> 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
>> >>
>> >> On Wed, Dec 4, 2019 at 8:29 AM Shahnawaj Khan <shahnawaj.khan1990 at gmail.com> wrote:
>> >>>
>> >>> Hi,
>> >>>
>> >>> I need to test freeswitch asr sample
>> >>> <extension name="pizza_demo">
>> >>>     <condition field="destination_number" expression="^(9711614454)$"/>
>> >>>     <condition field="${module_exists(mod_v8)}" expression="true"/>
>> >>>     <condition field="${module_exists(mod_pocketsphinx)}" expression="true">
>> >>>       <action application="javascript" data="ps_pizza.js"/>
>> >>>     </condition>
>> >>>   </extension>
>> >>>  mod_v8 is required to run the javascript. It is not there by default,
>> >>> So i tried to compile it but facing the issue as.
>> >>>
>> >>> ./include/javascript.hpp:35:16: fatal error: v8.h: No such file or directory
>> >>>  #include <v8.h>
>> >>>
>> >>> Please let me know if anyone have faced the same issue and its resolution.
>> >>>
>> >>> Thanks & Regards,
>> >>> shahnawaj
>> >>>
>> >>> _________________________________________________________________________
>> >>>
>> >>> The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
>> >>> Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
>> >>> Build your next product on our scalable cloud platform.
>> >>>
>> >>> Join our online community to chat in real time https://signalwire.community
>> >>>
>> >>> Professional FreeSWITCH Services
>> >>> sales at freeswitch.com
>> >>> https://freeswitch.com
>> >>>
>> >>> Official FreeSWITCH Sites
>> >>> https://freeswitch.com/oss
>> >>> https://freeswitch.org/confluence
>> >>> https://cluecon.com
>> >>>
>> >>> FreeSWITCH-users mailing list
>> >>> FreeSWITCH-users at lists.freeswitch.org
>> >>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> >>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> >>> https://freeswitch.com
>> >>
>> >> _________________________________________________________________________
>> >>
>> >> The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
>> >> Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
>> >> Build your next product on our scalable cloud platform.
>> >>
>> >> Join our online community to chat in real time https://signalwire.community
>> >>
>> >> Professional FreeSWITCH Services
>> >> sales at freeswitch.com
>> >> https://freeswitch.com
>> >>
>> >> Official FreeSWITCH Sites
>> >> https://freeswitch.com/oss
>> >> https://freeswitch.org/confluence
>> >> https://cluecon.com
>> >>
>> >> FreeSWITCH-users mailing list
>> >> FreeSWITCH-users at lists.freeswitch.org
>> >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> >> https://freeswitch.com
>> >
>> > _________________________________________________________________________
>> >
>> > The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
>> > Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
>> > Build your next product on our scalable cloud platform.
>> >
>> > Join our online community to chat in real time https://signalwire.community
>> >
>> > Professional FreeSWITCH Services
>> > sales at freeswitch.com
>> > https://freeswitch.com
>> >
>> > Official FreeSWITCH Sites
>> > https://freeswitch.com/oss
>> > https://freeswitch.org/confluence
>> > https://cluecon.com
>> >
>> > FreeSWITCH-users mailing list
>> > FreeSWITCH-users at lists.freeswitch.org
>> > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> > https://freeswitch.com
>>
>> _________________________________________________________________________
>>
>> The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
>> Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
>> Build your next product on our scalable cloud platform.
>>
>> Join our online community to chat in real time https://signalwire.community
>>
>> Professional FreeSWITCH Services
>> sales at freeswitch.com
>> https://freeswitch.com
>>
>> Official FreeSWITCH Sites
>> https://freeswitch.com/oss
>> https://freeswitch.org/confluence
>> https://cluecon.com
>>
>> FreeSWITCH-users mailing list
>> FreeSWITCH-users at lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> https://freeswitch.com
>
> _________________________________________________________________________
>
> The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
> Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
> Build your next product on our scalable cloud platform.
>
> Join our online community to chat in real time https://signalwire.community
>
> Professional FreeSWITCH Services
> sales at freeswitch.com
> https://freeswitch.com
>
> Official FreeSWITCH Sites
> https://freeswitch.com/oss
> https://freeswitch.org/confluence
> https://cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> https://freeswitch.com



More information about the FreeSWITCH-users mailing list