Добрый день!
Как можно добавить в запись CDR данные о том кто ответил на групповой вызов?
Не работает:
exten => 4581,1,Dial(SIP/4000@cisco&SIP/4501,60,Ttrg)
exten => 4581,2,Set(CDR(userfield)=Answer-${DIALEDPEERNUMBER})
Так тоже не работает:
exten => 4581,1,Dial(SIP/4000@cisco&SIP/4501,60,Ttrg)
exten => h,1,Set(CDR(userfield)=${DIALEDPEERNUMBER})
Хотя в консоли все отрабатывает правильно:
-- Executing [4581@default:1] Dial("SIP/192.168.129.58-000006d8", "SIP/4000@cisco&SIP/4501,60,Ttrg") in new stack
-- Called SIP/4000@cisco
-- Called SIP/4501
-- SIP/4501-000006da connected line has changed. Saving it until answer for SIP/192.168.129.58-000006d8
-- SIP/cisco-000006d9 connected line has changed. Saving it until answer for SIP/192.168.129.58-000006d8
-- SIP/cisco-000006d9 is ringing
-- SIP/4501-000006da is ringing
-- SIP/4501-000006da connected line has changed. Saving it until answer for SIP/192.168.129.58-000006d8
-- SIP/4501-000006da answered SIP/192.168.129.58-000006d8
== Spawn extension (default, 4581, 1) exited non-zero on 'SIP/192.168.129.58-000006d8'
-- Executing [h@default:1] Set("SIP/192.168.129.58-000006d8", "CDR(userfield)=4501") in new stack