Who is “they” in the they recommended? If someone is recommending older than current release they are probably wrong but would need details to know.
On Sep 17, 2019, at 8:34 AM, Joli Martinez <mrjoli021@gmail.com> wrote:
I am running fusionPBX and I have upgrade the freeswitch to the latest version they recommended. All permissions on the /usr/share/freeswitch/script directory are set to www-data as the owner and group.
When I run my script through the API I am getting now a syntax error on the python script which I don't get when I run it manually. I am running the API with the command: luarun sendjson.py param1 param2 param3
2019-09-17 14:25:29.557353 [ERR] mod_lua.cpp:203 /usr/share/freeswitch/scripts/sendjson.py:3: syntax error near 'requests'
the python script just imports requests which again doesn't have an issue running the script through the linux cli
#!/usr/bin/python
import requests import sys
FYI my bash script which ultimately what I need to run also fails
2019-09-17 14:31:16.677352 [ERR] mod_lua.cpp:203 /usr/share/freeswitch/scripts/callStats.sh:3: unexpected symbol near '$' #!/bin/bash
calling=$1 called=$2 ip=$3 LOGFILE=/var/log/test.log