문제

PHP를 타고 CRM (고객 관계 관리 소프트웨어)을 사용하고 LocalHost (Windows XP 시스템)에서 실행 중입니다.여기에는 내 클라이언트 목록이 포함되어 있습니다.이 클라이언트를 CRM에서 직접 전화하고 동일한 로그를 유지하고 싶습니다.(통화 시간, 통화 기간 및 통화 기록).수신 전화의 경우, CRM에 연결하고 클라이언트 세부 정보를 표시하고 데이터를 기록 할 수 있어야합니다.

이 목적으로 사용할 수있는 음성 활성화 3G GSM 모뎀 (USB 커넥터 포함)이 있습니다.내 검색에서 PHP에서 명령을 보내 모뎀과 상호 작용할 필요가 있습니다.그러나 나는 완전히 새로운 것처럼 앞으로 나아갈 수 없습니다.나는 이것을하기 전에 어떤 장치를 인터페이싱하는 모든 장치를 한 적이 없습니다.

위의 문제를 해결하는 방법을 어떻게 이해할 수 있습니까?모든 리드,이 방향의 자원은 큰 도움이 될 것입니다.

도움이 되었습니까?

해결책

I wouldn't try to do this with pure PHP since then you would have to have PHP interface with the hardware through the webserver, which can be a pain, if it is manageable at all. There are (edit) three options in my view:

1: AKA the hard way:
Write a PHP extension in C that does what you want, but this would mean a lot of programming for a relative small task.

2: The eas[y/ier] way:
Find a program (Maybe Skype?) that can do voice communication with your modem and has an API or a CLI so you can make PHP run:
voiceprogram.exe --call=555-000-5555 --saveTo=client1_20113103_1200.mp3
This allows the application to do what it's good as and only use PHP as the controller. The resulting MP3 (or Wav, OGG, etc) can be saved back to the CRM.

3: Other options
If you are able to program in a different language that does communicate easily with your modem you can write some custom code that can be triggered by PHP (sockets/SOAP/CLI) and handles the call. When finished it can 'POST' the call information back to your PHP script.

The first 2 solutions only work when the CRM runs on localhost, if you plan on using this in a shared network environment complexity will go up. The last option, if done correctly, can be used in a shared environment.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top