Page 1 of 1

Run script inside IVR

PostPosted: Tue Feb 11, 2020 12:45 am
by rbbumanlag
Hi Vicidial,

Server Details:
Multi Cluster Environment
VMWARE 6.7
2 DB, 2 Web, 2 Asterisk - Centos 7
Vicidial Version: 2.14-729a
Build 191114-0923

I just want to know if it is possible to run a script inside the Call Menu.

Scenario: Receive a call during non-office hours and no one will be able to answer the call.

Once we receive a call to the call menu, could I run a script? We plan to auto-create a ticket for calls that needs callback.

Thanks!

Re: Run script inside IVR

PostPosted: Tue Feb 11, 2020 8:58 am
by mflorell
You're going to need to tell us more about this "script" you want to run.

Have you considered using Drop Lists at all for this?

Re: Run script inside IVR

PostPosted: Tue Feb 11, 2020 9:05 am
by rbbumanlag
Hi Matt,

Actually I want to create a script where when a call is received via call menu after office hours, it will call the api of a ticketing system for ticket creation.

Upon reading, I'm checking if AGI will be of help. I saw that in the call menu, and on the call menu options, AGI is available as an option.

Saw this link, but they used FreePBX using AGI.

https://www.hwdevelopment.com/blog/28-f ... endesk-api

Will this have the same logic?

Thanks!

Re: Run script inside IVR

PostPosted: Tue Feb 11, 2020 6:50 pm
by mflorell
You can put an AGI script as the Prompt in a call menu, that would be the easiest way to run it.

Re: Run script inside IVR

PostPosted: Tue Feb 11, 2020 7:17 pm
by rbbumanlag
Hi Matt,

Is it only available at Menu Prompt? How about invalid and timeout prompt?

What is the name of the folder where I need to put the .agi script for it to work?

Is it under /var/lib/asterisk/agi-bin/ directory?

Thanks!

Re: Run script inside IVR

PostPosted: Wed Feb 12, 2020 1:56 pm
by mflorell
Currently, only the Menu Prompt can accept an AGI script within it.

Yes, the "/var/lib/asterisk/agi-bin/" directory is where you need to put AGI scripts, and make sure you set the permissions to allow them to be executed.