Откуда: ussr
Сообщений: 28
|
Re: AsteriskAMI-originate CDR problem
Благодарю за подсказку. Однако, если Вы не заметили я использую AMI , а не call файлы. Хотя ваша подсказка помогла найти решение - "локальный канал", Спасибо.
Однако и тут возникла проблема: неправильно формируется одна из 2х сдр записей - время звонка всегда 1-2 сек.
После модификаций:
AMI:
"Action: Originate"
"Channel: Local/3907820@c2c_1"
"Callerid: 333#005"
"Application: Dial"
"Data: SIP/mv1/3907820,20,A(thank-you-for-calling)"
"Variable: SRC=3907830,DST=3907820,Clientid=333#005,Gate=/mv1"
Extensions.conf:
[c2c_1]
exten => _X.,1,Answer
exten => _X.,n,NoOp(CL=${SRC} VI=${DST} CLid=${Clientid} GW=${Gate})
exten => _X.,n,Set(CALLERID(number)=${Clientid})
exten => _X.,n,Dial(SIP${Gate}/${SRC},20,A(wakeup-call))
exten => _X.,n,Bridge(SIP${Gate}/${SRC}) ;
exten => _X.,n,Hangup
CDRs:
"","333#005","3907820","c2c_1","333#005","Local/3907820@c2c_1-a213;2","SIP/mv1-b7c84cc0","Dial","SIP/mv1/3907830,20,A(wakeup-call)","2009-09-17 00:14:45","2009-09-17 00:14:57","2009-09-17 00:14:59",14,2,"ANSWERED","DOCUMENTATION","1253146485.45",""
"","333#005","3907820","c2c_1","333#005","Local/3907820@c2c_1-a213;1","SIP/mv1-09999298","Dial","SIP/mv1/3907820,20,A(thank-you-for-calling)","2009-09-17 00:14:45","2009-09-17 00:14:50","2009-09-17 00:15:51",66,61,"ANSWERED","DOCUMENTATION","1253146485.44",""
Бабло победит зло !
|