How to get cisco incoming call number in C#? -
how incoming call number?
what way incoming call number c#?
for example, invoke dial use code:
using system; using system.io; using system.net; using system.text; public class fileconverter { static void main(string[] args) { webrequest request = webrequest.create("http://xx.xx.xx.xx/cgi/execute http/1.1"); request.method = "post"; string postdata = @"xml=<ciscoipphoneexecute><executeitem priority=""0"" url=""dial:1566""/> </ciscoipphoneexecute>"; byte[] bytearray = encoding.utf8.getbytes(postdata); request.contenttype = "text/xml; charset=\"utf-8\""; request.contentlength = bytearray.length; stream datastream = request.getrequeststream(); datastream.write(bytearray, 0, bytearray.length); datastream.close(); webresponse response = request.getresponse(); console.writeline(((httpwebresponse)response).statusdescription); datastream = response.getresponsestream(); streamreader reader = new streamreader(datastream); string responsefromserver = reader.readtoend(); console.writeline(responsefromserver); reader.close(); datastream.close(); response.close(); } }
Comments
Post a Comment