Page 1 of 1

Non Agent API

PostPosted: Wed Jun 22, 2016 11:13 am
by stefano.pucci
Hi everybody,

my environment :

Asterisk 1.8.23.0-1_centos5.go
VERSION: 2.12-493a
BUILD: 150703-2105

I'd like to receive any informations :
We're developing a super hot calls integration between Vicidial and our web site and I'd like to know something about NON_Agent_Api.
For testing we are using url string like that :

http://ipserver/vicidial/non_agent_api. ... 234567890&
campaign_id=RINNOVI&update_phone_number=Y

I'd like to know if is possible to schedule a callback with callback_datetime=NOW + 5 minutes
Could you please tell me if is feasible?

Thank you
Stefano

Re: Non Agent API

PostPosted: Wed Jun 22, 2016 12:42 pm
by mflorell
That is not currently an option.

Re: Non Agent API

PostPosted: Wed Jun 22, 2016 12:43 pm
by MJCoate
There's nothing in the API that will allow you to increment NOW by any number of minutes. This really should be done in whatever is sending the API call. It should be easy to grab the current time and add X minutes to it then just use that value as the callback time.

Re: Non Agent API

PostPosted: Wed Jun 22, 2016 4:32 pm
by williamconley
To create a callback with NOW+5 min as a time, you'd need to calculate NOW+5 min outside Vicidial (simple php, java or perl scripting) and make the request directly. Simple to put it in your web form if this is a public facing script gathering data. If this is being transferred from a 3rd party, you can bounce the request through a php page designed to take the request and modify it before sending to the API.

Or you could sponsor a modification to the non-agent api to allow this as a feature, of course. Or even pay someone to build it just for you (and optionally submit a diff to the project in hopes it'll be inserted before your next upgrade).