Re: CDR dst
прочитав мануал, нашёл что этой переменной является DIALEDPEERNUMBER, но вот почему то астериск сыплет еррор
-- Executing NoOp("Zap/20-1", "Call from PSTN") in new stack
-- Executing Set("Zap/20-1", "DIR=/var/spool/asterisk/monitor") in new stack
-- Executing Set("Zap/20-1", "CDR(dst)=") in new stack
Dec 7 23:46:16 ERROR[23533]: cdr.c:289 ast_cdr_setvar: Attempt to set a read-only variable!.
-- Executing MixMonitor("Zap/20-1", "1165524376.1225.wav|b") in new stack
-- Executing Dial("Zap/20-1", "SIP/100&SIP/101&SIP/102&SIP/103&SIP/104&SIP/105&SIP/106&SIP/107&SIP/108&SIP/109&SIP/110&SIP/111&SIP/112&SIP/113|45|tTf") in new stack
в чём ошибка?
extensions.conf:
[globals]
SEKRGROUP=SIP/100&SIP/101&SIP/102&SIP/103&SIP/104&SIP/105&SIP/106&SIP/107&SIP/108&SIP/109&SIP/110&SIP/111&SIP/112&SIP/113
.....
[from-pstn]
exten => s,1,Noop(Call from PSTN)
exten => s,n,Set(DIR=/var/spool/asterisk/monitor)
exten => s,n,Set(CDR(dst)=${DIALEDPEERNUMBER})
exten => s,n,MixMonitor(${CDR(uniqueid)}.wav|b)
exten => s,n,Dial(${SEKRGROUP},45,tTf)
exten => s,n,Wait(1)
exten => s,n,Hangup()
|