Use C # To develop the client summary of newusb incoming call bullet Screen

Source: Internet
Author: User

Based on the common requirements of CRM Customers and consultants, the boss decided to add the call bullet screen function to the CRM system. The so-called call bullet screen is that when a call is made, the computer displays the customer, contact, or supplier details corresponding to the phone number. If the phone number is a new number, a new customer is added.
To achieve this effect, First hardware support is required. Finally, the boss decided to use Newman USB as the connection medium between the phone and the computer. It provided a secondary development interface, you can obtain the phone number on your computer and play the screen. Next, you need to reserve an interface in the CRM system to support pop-up information based on the phone number. Since CRM was previously integrated with a well-known call center, there was such an excuse.
As a result, only one client is connected to the hardware and CRM system. laidian provides development examples in multiple languages, such as VB, Delphi, and C #. Since I have learned Java, C # syntax is similar to Java. I used vs2005 to write the MFC program, so I persuaded the boss to use C # To send the client.
C # It is very efficient to develop a Windows client. I made a simple demo one day and implemented the function of bullet screen, after that, you can manually start the system and allow only one process to run. Then, you can complete the page beautification. Of course, many of the items are searched by Google in many blogs, what should I do if there is no Google? Now I will sort out the information:
C # import (laidian Tong) API function extraction telephone number: http://topic.csdn.net/u/20080319/17/6e20454d-3457-4ece-ac1b-30c03a1729ed.html
C # The program can only run once: http://www.cnblogs.com/fubin/archive/2009/12/08/1619229.html
C # boot Automatic startup program: http://www.cnblogs.com/xumingming/archive/2009/01/08/1371931.html
Winform program plus icon: http://wenwen.soso.com/z/q173944920.htm

In addition, there is a small bug in the interfaces developed by Newman USB. The callback function in the setup_tel function will also be triggered when you call, in addition, the phone number is not necessarily the number you dial (which is related to the speed of your dial). In this case, you can use the lineoffhook_tel function to determine whether the phone is disconnected and whether the phone is called. The Code is as follows:
 

Java code  
  1. String number;
  2. Bool zhaiji = LDT. lineoffhook_tel (port );
  3. Number = LDT. getnumber_tel (port). tostring ();
  4. If (! Zhaiji)
  5. {
  6. // Call now
  7. }


Now, let's summarize it. After this task is completed, a new task will be created immediately. Another new coding journey begins.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.