Disposing call via External Application

Any and all non-support discussions

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

Disposing call via External Application

Postby mcdeeiis » Wed Aug 15, 2012 1:35 pm

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,
1 DB + WEB
3 Asterisk
Vicidial 2.14-853a
BUILD: 220328-142
Asterisk 13.38.2-vici
/usr/src/astguiclient/trunk
Path: .
Working Copy Root Path: /usr/src/astguiclient/trunk
URL: svn://svn.eflo.net/agc_2-X/trunk
Revision: 3592
mcdeeiis
 
Posts: 37
Joined: Fri Oct 07, 2011 10:31 am

Re: Disposing call via External Application

Postby GaD » Wed Aug 15, 2012 9:07 pm

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.
GaD
 
Posts: 195
Joined: Fri Jul 08, 2011 3:56 pm

Re: Disposing call via External Application

Postby mflorell » Thu Aug 16, 2012 9:48 am

mflorell
Site Admin
 
Posts: 18387
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Re: Disposing call via External Application

Postby mcdeeiis » Thu Aug 16, 2012 10:19 am

Great... I will take a look at this now.. Thanks!
1 DB + WEB
3 Asterisk
Vicidial 2.14-853a
BUILD: 220328-142
Asterisk 13.38.2-vici
/usr/src/astguiclient/trunk
Path: .
Working Copy Root Path: /usr/src/astguiclient/trunk
URL: svn://svn.eflo.net/agc_2-X/trunk
Revision: 3592
mcdeeiis
 
Posts: 37
Joined: Fri Oct 07, 2011 10:31 am

Re: Disposing call via External Application

Postby mcdeeiis » Thu Aug 16, 2012 2:18 pm

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,
1 DB + WEB
3 Asterisk
Vicidial 2.14-853a
BUILD: 220328-142
Asterisk 13.38.2-vici
/usr/src/astguiclient/trunk
Path: .
Working Copy Root Path: /usr/src/astguiclient/trunk
URL: svn://svn.eflo.net/agc_2-X/trunk
Revision: 3592
mcdeeiis
 
Posts: 37
Joined: Fri Oct 07, 2011 10:31 am

Re: Disposing call via External Application

Postby williamconley » Thu Aug 16, 2012 9:41 pm

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).
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!)

Re: Disposing call via External Application

Postby mflorell » Fri Aug 17, 2012 7:46 am

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
mflorell
Site Admin
 
Posts: 18387
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Re: Disposing call via External Application

Postby mcdeeiis » Fri Aug 17, 2012 11:11 am

@Matt - that was really helpful... thanks!

@Bill - Where should I look for this code to allow Phone Number to be changed? Thanks
1 DB + WEB
3 Asterisk
Vicidial 2.14-853a
BUILD: 220328-142
Asterisk 13.38.2-vici
/usr/src/astguiclient/trunk
Path: .
Working Copy Root Path: /usr/src/astguiclient/trunk
URL: svn://svn.eflo.net/agc_2-X/trunk
Revision: 3592
mcdeeiis
 
Posts: 37
Joined: Fri Oct 07, 2011 10:31 am


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 46 guests