별표 버전 1.4.44를 설치하고 agi 스크립트에 Python을 사용했습니다. 문맥 "9999"내가 오류 아래에 점점 이것을 실행하는 동안 전화하려고보다. 이 작업을 수행하기 위해 설치된 종속성이 있습니까?AGI-BIN : ImportError : 별표라는 모듈이 없습니다.
-- Launched AGI Script /var/lib/asterisk/agi-bin/incident/SetCommonVariables.py
Traceback (most recent call last):
File "/var/lib/asterisk/agi-bin/incident/SetCommonVariables.py", line 5, in <module>
from asterisk import agitb
ImportError: No module named asterisk
-- AGI Script incident/SetCommonVariables.py completed, returning 0
-- Executing [[email protected]:4] Goto("SIP/9999-00000000", "CheckAuthorization|1") in new stack
-- Goto (IncidentInitiation,CheckAuthorization,1)
-- Executing [[email protected]:1] AGI("SIP/9999-00000000", "incident/CheckAuthorization.py") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/incident/CheckAuthorization.py
Traceback (most recent call last):
File "/var/lib/asterisk/agi-bin/incident/CheckAuthorization.py", line 7, in <module>
from asterisk import agitb
편집 1 :
별표 1.4.44
에 CentOS 6.5 (최종)
파이썬 버전 (2.4,2.6.6,2.7)
편집 2 :
나는 위의 issue 파일에서 이미 "from asterisk import agitb"파일을 가지고있다. 파일의 코드 스나입 파일 "/ var/lib/asterisk/agi-bin/inc 내가 내용
별표 (*)를 갖고있는 하나 찾을 수 있나요? 얼마나 많은 파이썬 버전이 있습니까? 어떻게 설치 했습니까? – Oz123
OS는 센트 OS 6.5이고 별표 버전은 1.4이고 파이썬 버전은 별표 CGI에서 2.4,2.6.6과 2.7을 시도합니다. 한 명의 사용자 9999를 등록하고 콘솔에서 위의 오류를 표시하는 시간을 지정합니다. 다른 게시물이 하나 있습니다. http://forums.asterisk.org/viewtopic.php?f=1&t=89276 – Hemdip