Page 1 of 1

Trigger Script when a call is received

PostPosted: Sat Aug 04, 2018 10:43 am
by rbbumanlag
Hi,

Hi Vicidial, Specification: ViciBox 8.0.1.(iso) | Asterisk 11.25.3-vici | VERSION: 2.14-640a BUILD: 171114-1100 | Cluster Setup | Intel(R) Xeon(R) CPU E5-2680 V3 @ 2.5GHz | 16GB DDR4 RAM | 1TB (SAS) 10kRPM |No Digium/Sangoma Hardware | No Extra Software After Installation | Virtualized on XenServer

I wouldl like to know if there is a way to run a script after a call is received. I need to connect to an API to create a ticket when a call is received. I am thinking if I could do it through Timer Action then create a extension and add a script on the extesion. are there other ways?

Thanks!

Re: Trigger Script when a call is received

PostPosted: Sat Aug 04, 2018 2:59 pm
by mflorell
What kind of script?

Where do you want it to be triggered exactly?

Re: Trigger Script when a call is received

PostPosted: Sat Aug 04, 2018 4:21 pm
by williamconley
Run script when receiving a call, before sending to agent: Modify DID: "Filter URL"
Run script when receiving a call, during send call to agent: Modify Ingroup: "Start Call URL"
Run script when making an outbound call, after a prospect answers, during send call to agent: Modify Campaign: "Start Call URL"
Run script IN AGENT WEB PAGE when receiving a call: Modify Ingroup: "Web Form" (only happens when a call lands in an agent screen) plus "Get Call Launch: Web Form".

Any of these could have a page that creates a ticket. The web form version could also display the ticket to the agent on the call after creating it.

There are several other options, of course.

Re: Trigger Script when a call is received

PostPosted: Sat Aug 11, 2018 8:23 pm
by rbbumanlag
Thanks this is what I am looking for.

Re: Trigger Script when a call is received

PostPosted: Tue May 04, 2021 11:29 am
by drodecker
Found this useful; to expand upon it here are all the relevant In-Group options to trigger calling a web URL in the background:

    Enter In-Group URL
    Start Call URL
    Dispo Call URL
    No Agent Call URL
    Waiting Call URL On
    Waiting Call URL Off
    Add Lead URL