Script not executing in script based IVR

Status
Not open for further replies.

gregeh88

Titanium Partner
Advanced Certified
Joined
Jul 30, 2020
Messages
3
Reaction score
0
Good morning.

I have the latest version of 3cx,V16, running on a Debian VM for a test bed.

I'm trying to run script based digital assistants but can not seem to get them to run the script.

Setting up a demo mirroring https://www.3cx.com/blog/docs/ivr-digital-receptionist/, I get the IVR answering, taking the key presses, and repeating them back to me, but the script is not executed. The log from the script also shows no updates. When run from the command line as user phonesystem, the script runs and the log updates.

Since this is the free version that gives me a limited amount of days at Pro level, are script based IVRs not an option?

Please advise.

Thanks,
Greg
 
Hello!
Enable verbose logging and make a couple of test calls. Then locate 3CXIVR.log and search for your script's filename there. This will tell if the script is invoked at all and perhaps some error that occurred.
 
Just a note: if this is on Debian, don't forget that the script must be executable, and that the user "phonesystem" must be able to run it. Please review the filesystem permissions if you haven't already
https://www.3cx.com/docs/script-based-ivrs/
 
Thanks for pointing the log out for me. Looking through it, my scripts are running and returning the correct exit code to the PBX. Now, why one is not updating its own log is another issue that I'll have to work out.
 
Again, it could be rights problem: make sure that the directory and the log file are writable by the PBX user. Also, it is better to use full filename to the log that you populate from inside the script.
 
Thanks for the advice. I've gotten myself in trouble before about not using the full filename for unix files, so I make it a habit to specify where the file should be.
Currently, one script is writing to /home for the log, the other (quiet one) is writing to /var/log. I'll have to see if user phonesystem has the rights to the /var/log location. At least, the script is doing what it should, just quietly.
 
Status
Not open for further replies.

Forum statistics

Threads
111,955
Messages
589,926
Members
164,857
Latest member
Luca Christiansen