Page 1 of 1

Disposing call via External Application

PostPosted: Wed Aug 15, 2012 1:35 pm
by mcdeeiis
Is it possible to Dispose a call not using Vicidial's default disposition screen?

Here is what I am trying to do:
1. When agent gets a call, he clicks on Open Webform. I have written some code on the website which opens a VB application. This VB app is our in-house questionnaire application which connects and save data to ms sql. This internal app also has a disposition screen.
2. Problem here is agent has to click on 2 different screen to dispose a call : one on the internal app and 2nd on the vicidial.

Is there any way I can get a handle to the disposition screen or some sort of URL that I can use to pass disposition codes to vicidial from my VB app?

Thanks,

Re: Disposing call via External Application

PostPosted: Wed Aug 15, 2012 9:07 pm
by GaD
There are some APIs that you can use. There is an agent_API and a non-agent api. These should help you get your task done. I believe they should be somewhere inside the vicidial web directory if I'm not mistaken.

Re: Disposing call via External Application

PostPosted: Thu Aug 16, 2012 9:48 am
by mflorell

Re: Disposing call via External Application

PostPosted: Thu Aug 16, 2012 10:19 am
by mcdeeiis
Great... I will take a look at this now.. Thanks!

Re: Disposing call via External Application

PostPosted: Thu Aug 16, 2012 2:18 pm
by mcdeeiis
more questions...

I see only one Disposition CALLBCK* which is Auto. Where can I find Scheduled Callback where I can specify Date and Time to call. And how can I use Agent API to pass the date and time parameter for Scheduled Callback?

Sometimes when we call a lead we get a new number from the lead. Is there a way to update/overwrite the existing number while on the call and call the new number instead the next time(not right away)?

Thanks,

Re: Disposing call via External Application

PostPosted: Thu Aug 16, 2012 9:41 pm
by williamconley
Check out the code for the modify lead screen. It has a very good example of setting a callback (multiple stages involved, so actually USE the modify lead screen a few times to set some callbacks!).

It can also modify any other information on any lead (such as the phone number).

Re: Disposing call via External Application

PostPosted: Fri Aug 17, 2012 7:46 am
by mflorell
You can use the agent api to specify a scheduled callback:
http://vicidial.org/docs/AGENT_API.txt

Of course the agent and campaign have to be set up to allow scheduled callbacks.



--------------------------------------------------------------------------------
external_status -

DESCRIPTION:
Sets the status of the current customer call on the agent dispotion screen

VALUES: (value)
value -
Any valid status in the VICIDIAL system will work for this function
callback_datetime -
YYYY-MM-DD+HH:MM:SS, date and time of scheduled callback. REQUIRED if callback is set and status is flagged as a scheduled callback
callback_type -
USERONLY or ANYONE, default is ANYONE
callback_comments -
Optional comments to appear when the callback is called back, must be less than 200 characters in length
qm_dispo_code -
Option callstatus code used if QM is enabled

EXAMPLE URL:
http://server/agc/api.php?source=test&u ... us&value=A
http://server/agc/api.php?source=test&u ... _code=1234

RESPONSES:
ERROR: external_status not valid - A|6666
ERROR: no user found - 6666
ERROR: agent_user is not logged in - 6666
SUCCESS: external_status function set - A|6666

Re: Disposing call via External Application

PostPosted: Fri Aug 17, 2012 11:11 am
by mcdeeiis
@Matt - that was really helpful... thanks!

@Bill - Where should I look for this code to allow Phone Number to be changed? Thanks