Blogs

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

Forums

« Back to Cisco Webdialer Questions

Using WebDialer with C#

Combination View Flat View Tree View
Threads [ Previous | Next ]
Ok I managed to make the WebDialer WebService work with Visual Studio 2008 C#. Now my question is this one.

Currently I created a aspx website that reads up a XML file and creates a Phone Directory of my company. On my website I can see the name and extension of a person, what I would like to be able to do is when the user click the extension then it auto-dial the number on there phone. My problem right now is this one to make the call I need the user credentials and phone name, is there a way to detect at least the phone name connected to the computer that the person is using???

Thank you

Re: Using WebDialer with C#
Answer
9/4/08 8:06 PM as a reply to Jean-Francois Handfield.
Anyone could at least give me a hint on what to do????

Any Cisco developers reads these forum??

Re: Using WebDialer with C#
Answer
9/5/08 11:19 AM as a reply to Jean-Francois Handfield.
Hi,

Kindly use AXL to fetch the Device names associated to a particular DN.

Using the ExecuteSQLQuery Thin API.

Sending message...


-----

<!-- edited with XMLSPY v5 rel. 4 U (http://www.xmlspy.com) by Jerry Vander Voord (Cisco Systems) -->

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">

<SOAP-ENV:Body>

<axlapi:executeSQLQuery sequence="1" xmlns:axlapi="http://www.cisco.com/AXL/API/7.0" xmlns:axl="http://www.cisco.com/AXL/7.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.cisco.com/AXL/API/7.0 axlsoap.xsd">

<sql>SELECT D.Name || '=' || DNPMap.BusyTrigger FROM NumPlan NP , DeviceNumPlanMap DNPMap , Device D WHERE NP.DNorPattern = '197999' AND DNPMap.fkNumPlan = NP.pkid AND D.pkid = DNPMap.fkDevice</sql>

<!--<sql>Select device.name as phonename,devicepool.name as devicepoolname from device,devicepool where device.fkdevicepool=devicepool.pkid and device.tkclass=1</sql>-->

</axlapi:executeSQLQuery>

</SOAP-ENV:Body>

</SOAP-ENV:Envelope>



-----

Added SSL_PROVIDER com.sun.net.ssl.internal.ssl.Provider

Positive response received.


-----

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Header/><SOAP-ENV:Body><axl:executeSQLQueryResponse xmlns:axl="http://www.cisco.com/AXL/API/6.1" xmlns:xsi="http://www.cisco.com/AXL/API/6.1" sequence="1"><return><row><expression>SEP333333333333=2</expression></row><row><expression>SEP666666666666=2</expression></row></return></axl:executeSQLQueryResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>

HTH

Thanks and Regards,
Madhukar

Re: Using WebDialer with C#
Answer
10/24/08 11:57 PM as a reply to Jean-Francois Handfield.
A more elegant way to handle this is to use isclusterusersoap function to see if the user has a device on the cluster that they can control, then to use the getprofilesoap to get the devices that they control. A sample of this in VB is below:

If (objDialer.isClusterUserSoap(txtUser.Text) = True) Then
objCfgResp = objDialer.getProfileSoap(objCred, txtUser.Text)
txtCluster.Text = strCluster

For Each wddPhone As WebDialer.WDDeviceInfo In objCfgResp.deviceInfoList
For Each strLine As String In wddPhone.lines
strListDisplay = wddPhone.deviceName &#38; " - " &#38; strLine
lstPhones.Items.Add(strListDisplay)
Next
Next
Exit Sub

Collateral


No files available