Integrate ViciDial on C# Asp.net project

Any and all non-support discussions

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

Integrate ViciDial on C# Asp.net project

Postby tina91 » Thu Mar 01, 2018 9:16 am

Hi,
I have a C# ASP.net project in which we can see information of our customers with their contact number. When our representative will click on a Button "Call" on the web page, a call should get initiated using ViciDial and the representative should be able to talk to the customer using the same. I know we have Agent API and Non-Agent API for the same. But i am not able to get how to integrate these API's on my project.

Thanks
tina91
 
Posts: 1
Joined: Thu Mar 01, 2018 5:01 am

Re: Integrate ViciDial on C# Asp.net project

Postby blackbird2306 » Fri Mar 02, 2018 6:27 am

Im not very familiar with C# / ASP.NET, but I know there are HttpWebRequest / HttpWebResponse or WebClient classes. In conjunction with "Agent API" and "external_dial" function it should be possible to start a call in Vicidial. Look here for AGENT API documentation:
http://vicidial.org/docs/AGENT_API.txt
something like:
Code: Select all
http://server/agc/api.php?source=test&user=6666&pass=1234&agent_user=1000&function=external_dial&value=7275551212&phone_code=1&search=YES&preview=NO&focus=YES

Here are examples for the above mentioned classes:
https://stackoverflow.com/questions/4988286/what-difference-is-there-between-webclient-and-httpwebrequest-classes-in-net
https://stackoverflow.com/questions/16619065/curl-request-with-asp-net

It's also possible to export the fields (name, address etc.) into Vicidial agent mask with the function "update_fields".
Vicibox 6.0.2 from Vicibox_v.6.0.x86_64-6.0.2.iso | Vicidial 2.12-560a build: 160617-1427 | Asterisk 1.8.32.3
blackbird2306
 
Posts: 409
Joined: Mon Jun 23, 2014 5:31 pm


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 112 guests