Non Agent API

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

Non Agent API

Postby stefano.pucci » Wed Jun 22, 2016 11:13 am

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
stefano.pucci
 
Posts: 28
Joined: Thu May 28, 2015 5:25 am

Re: Non Agent API

Postby mflorell » Wed Jun 22, 2016 12:42 pm

That is not currently an option.
mflorell
Site Admin
 
Posts: 18386
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Re: Non Agent API

Postby MJCoate » Wed Jun 22, 2016 12:43 pm

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.
Mike Coate | VICIdial Technical Support Staff
MJCoate
 
Posts: 82
Joined: Wed Mar 25, 2015 1:57 pm

Re: Non Agent API

Postby williamconley » Wed Jun 22, 2016 4:32 pm

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).
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)


Return to Support

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 149 guests