PHP에서 Asterisk 관리 인터페이스 (AMI)를 사용하여 발신 전화를 시작합니다.Asterisk 호출 로그 CDR 데이터베이스 필드를 AMI에서 설정하는 방법 ORIGINATE
// snippet
// $num is the number to dial e.g. 0207 121 3456
// $ext is the extension use to make the call e.g. 101
// $name is the name of the caller e.g. Fred Flintstone
//
fputs($socket, "Action: Originate\r\n");
fputs($socket, "Channel: SIP/$ext\r\n");
fputs($socket, "Exten: $num\r\n");
fputs($socket, "Context: from-internal\r\n");
fputs($socket, "Priority: 1\r\n");
fputs($socket, "CallerID: \"".$name."\" <".$num.">\r\n");
fputs($socket, "Async: yes\r\n\r\n");
가 어떻게이 발생한 스크립트 내 발신 통화에 대한 asteriskcdrdb
에 기록 된 발신자 이름 ($name
) 또는 기타 세부 사항을 설정하는 : 아래는 내가 사용하고 코드의 조각은 무엇입니까? 이상적으로 인바운드 통화 필드가 설정된 것과 동일한 방법으로 dst
필드를 설정하려고합니다. 후