Blogs

Showing 1 - 20 of 21 results.
Items per Page 20
of 2

Forums

« Back to Cisco Webdialer Questions

Can't use WebDialer with Visual Studio

Combination View Flat View Tree View
Threads [ Previous | Next ]
I'm trying to create a call with the WebDialer in Visual Studio, here is what I got so far:

WebDialer.WebdialerSoap wb = new WebDialer.WebdialerSoap();

WebDialer.Credential cred = new CiscoWeb.WebDialer.Credential();
cred.userID = "user";
cred.password = "password";

WebDialer.UserProfile upr = new CiscoWeb.WebDialer.UserProfile();
upr.deviceName = "SEP001E4AF15B4E";
upr.lineNumber = "1";

WebDialer.CallResponse callRes = new CiscoWeb.WebDialer.CallResponse();

callRes = wb.makeCallSoap(cred, "1257", upr);

But for some reason it doesn't go through to make the call, I get a WebException was Unhandled. It's telling me that the connexion was lost cause it was impossible to create a truste relation for the SSL/TLS

is there anything to do with that?

Thank you

Ok I figured out my problem.

Here is what you need to insert for everything to work properly:

System.Net.ServicePointManager.CertificatePolicy = new TrustAllCertificatePolicy(); <-- You need to initiliaze this once in your project.

public class TrustAllCertificatePolicy : System.Net.ICertificatePolicy
{
public TrustAllCertificatePolicy()
{ }

public bool CheckValidationResult(ServicePoint sp,
X509Certificate cert, WebRequest req, int problem)
{
return true;
}
}

Cheers

Collateral


No files available