Код: Выделить всё
[2024-06-10 15:12:35] VERBOSE[765648][C-000120fa] app_queue.c: Local/1106@customer-survey-0000fb65;1 is ringing
[2024-06-10 15:12:35] VERBOSE[765648][C-000120fa] app_queue.c: Local/1106@customer-survey-0000fb65;1 connected line has changed. Saving it until answer for SIP/203359-000139f3
[2024-06-10 15:12:35] VERBOSE[766067][C-000120fa] app_dial.c: SIP/1106-00013a59 is ringing
[2024-06-10 15:12:35] VERBOSE[765648][C-000120fa] app_queue.c: Local/1106@customer-survey-0000fb65;1 is ringing
[2024-06-10 15:12:39] VERBOSE[766067][C-000120fa] app_dial.c: SIP/1106-00013a59 answered Local/1106@customer-survey-0000fb65;2
[2024-06-10 15:12:39] VERBOSE[765648][C-000120fa] app_queue.c: Local/1106@customer-survey-0000fb65;1 answered SIP/203359-000139f3
[2024-06-10 15:12:39] VERBOSE[765648][C-000120fa] res_musiconhold.c: Stopped music on hold on SIP/203359-000139f3
[2024-06-10 15:12:39] VERBOSE[766133][C-000120fa] bridge_channel.c: Channel SIP/1106-00013a59 joined 'simple_bridge' basic-bridge <d3d4ce73-44c0-48ac-a108-f59af1208910>
[2024-06-10 15:12:39] VERBOSE[766067][C-000120fa] bridge_channel.c: Channel Local/1106@customer-survey-0000fb65;2 joined 'simple_bridge' basic-bridge <d3d4ce73-44c0-48ac-a108-f59af1208910>
[2024-06-10 15:12:39] VERBOSE[766134][C-000120fa] bridge_channel.c: Channel Local/1106@customer-survey-0000fb65;1 joined 'simple_bridge' basic-bridge <817d11d5-003a-4154-bf05-178bd6c5cc39>
[2024-06-10 15:12:39] WARNING[766133][C-000120fa] chan_sip.c: Don't know how to indicate condition 36
[2024-06-10 15:12:39] VERBOSE[765648][C-000120fa] bridge_channel.c: Channel SIP/203359-000139f3 joined 'simple_bridge' basic-bridge <817d11d5-003a-4154-bf05-178bd6c5cc39>
[2024-06-10 15:12:39] WARNING[766133][C-000120fa] chan_sip.c: Don't know how to indicate condition 36
[2024-06-10 15:12:39] WARNING[765648][C-000120fa] chan_sip.c: Don't know how to indicate condition 36
[2024-06-10 15:12:39] WARNING[765648][C-000120fa] chan_sip.c: Don't know how to indicate condition 36
[2024-06-10 15:14:42] VERBOSE[766133][C-000120fa] bridge_channel.c: Channel SIP/1106-00013a59 left 'simple_bridge' basic-bridge <d3d4ce73-44c0-48ac-a108-f59af1208910>
[2024-06-10 15:14:42] VERBOSE[766067][C-000120fa] bridge_channel.c: Channel Local/1106@customer-survey-0000fb65;2 left 'simple_bridge' basic-bridge <d3d4ce73-44c0-48ac-a108-f59af1208910>
[2024-06-10 15:14:42] VERBOSE[766067][C-000120fa] pbx.c: Executing [1106@customer-survey:4] NoOp("Local/1106@customer-survey-0000fb65;2", "Dialstatus: ANSWER") in new stack
Код: Выделить всё
[customer-survey]
exten => _X.,1,NoOp(Post call survey beginning)
same => n,NoOP(Exttocall: ${EXTEN} Dialstring: ${DB(DEVICE/${EXTEN}/dial)})
same => n,DIAL(${DB(DEVICE/${EXTEN}/dial)},,trg) ;добавляем опцию g - когда вызываемый абонент вешает трубку, мы продолжим выполнение команд далее по текущему контексту.
same => n,NoOP(Dialstatus: ${DIALSTATUS}) ;проверяем статус
same => n,GotoIf($["${DIALSTATUS}"="ANSWER"]?answered) ;проверяем, был ли отвечен вызов
same => n,GotoIf($["${DIALSTATUS}"="CHANUNAVAIL"]?busy) ;проверяем, был ли отвечен вызов (доступен ли оператор) 25.06.2021
same => n,GotoIf($["${DIALSTATUS}"="BUSY"]?busy) ;проверяем, был ли отвечен вызов
same => n,GotoIf($["${DIALSTATUS}"="CONGESTION"]?busy) ;проверяем, был ли отвечен вызов, 14-02-2022 - проверка на DND
same => n,GotoIf($["${DIALSTATUS}"="NOANSWER"]?busy:answered) ;проверяем, был ли отвечен вызов
same => n(busy),Hangup()
same => n(answered),Goto(assessment,${EXTEN},1)
same => n,Hangup()