Page 1 of 1

Integrate ViciDial on C# Asp.net project

PostPosted: Thu Mar 01, 2018 9:16 am
by tina91
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

Re: Integrate ViciDial on C# Asp.net project

PostPosted: Fri Mar 02, 2018 6:27 am
by blackbird2306
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".