Disposing call via External Application

Any and all non-support discussions

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

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,
ViciBox Redux 3.1.15 release
Vicidial 2.4-357a Build 120125-2107
Asterisk 1.4.39.2-vici
Single Server
No Digium/Sangoma Hardware
No Extra Software After Installation
Intel Xeon - Quad Core E3-1290V2
mcdeeiis
 
Posts: 27
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.
Vicibox Reddux 3.1.15||Asterisk 1.4.39.2-vici||VERSION: 2.6-372a
BUILD: 120713-2123
Kernel Version: 2.6.34.10-0.6-pae #1 SMP
GaD
 
Posts: 126
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: 13305
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!
ViciBox Redux 3.1.15 release
Vicidial 2.4-357a Build 120125-2107
Asterisk 1.4.39.2-vici
Single Server
No Digium/Sangoma Hardware
No Extra Software After Installation
Intel Xeon - Quad Core E3-1290V2
mcdeeiis
 
Posts: 27
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,
ViciBox Redux 3.1.15 release
Vicidial 2.4-357a Build 120125-2107
Asterisk 1.4.39.2-vici
Single Server
No Digium/Sangoma Hardware
No Extra Software After Installation
Intel Xeon - Quad Core E3-1290V2
mcdeeiis
 
Posts: 27
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 - SugarCRM integration - Customization and Add-ons
We Bring It All Together.
www.PoundTeam.com
williamconley
 
Posts: 12552
Joined: Wed Oct 31, 2007 4:17 pm
Location: Auburn, NY (Upstate)

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: 13305
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
ViciBox Redux 3.1.15 release
Vicidial 2.4-357a Build 120125-2107
Asterisk 1.4.39.2-vici
Single Server
No Digium/Sangoma Hardware
No Extra Software After Installation
Intel Xeon - Quad Core E3-1290V2
mcdeeiis
 
Posts: 27
Joined: Fri Oct 07, 2011 10:31 am


Return to General Discussion

Who is online

Users browsing this forum: cpxmianwq, FryktovayaYna, LismJomia, MawcoalpRop, MootteNeisivy, occarmhoabe, rogerPereabombwerb and 3 guests