есть такой план
Код: Выделить всё
exten => 00448,1,Playback(agent-pass)
exten => 00448,n,Authenticate(xxxx)
exten => 00448,n,Playback(privacy-thankyou)
exten => 00448,n,Wait(1)
exten => 00448,n,System(/usr/sbin/asterisk -rx moh reload)
exten => 00448,n,Hangup
Почему?
Код: Выделить всё
> Channel SIP/multifon-00000057 was answered.
-- Executing [s@mera-callback-out2:1] Answer("SIP/multifon-00000057", "") in new stack
-- Executing [s@mera-callback-out2:2] Set("SIP/multifon-00000057", "Prohod=0") in new stack
-- Executing [s@mera-callback-out2:3] Wait("SIP/multifon-00000057", "1") in new stack
-- Executing [s@mera-callback-out2:4] BackGround("SIP/multifon-00000057", "speed-enternumber") in new stack
-- <SIP/multifon-00000057> Playing 'speed-enternumber.slin' (language 'ru')
Really destroying SIP dialog '0b978cd81b11b1660232c5f04e281399@238.56.156.26' Method: REGISTER
== CDR updated on SIP/multifon-00000057
-- Executing [00448@mera-callback-out2:1] Playback("SIP/multifon-00000057", "agent-pass") in new stack
-- <SIP/multifon-00000057> Playing 'agent-pass.ulaw' (language 'ru')
Really destroying SIP dialog '5e2398125f3d60171b5cba9a005ed6d1@238.56.156.26' Method: REGISTER
-- Executing [00448@mera-callback-out2:2] Authenticate("SIP/multifon-00000057", "xxxxxx") in new stack
-- <SIP/multifon-00000057> Playing 'agent-pass.ulaw' (language 'ru')
--- (9 headers 0 lines) ---
-- <SIP/multifon-00000057> Playing 'auth-thankyou.ulaw' (language 'ru')
-- Executing [00448@mera-callback-out2:3] Playback("SIP/multifon-00000057", "privacy-thankyou") in new stack
-- <SIP/multifon-00000057> Playing 'privacy-thankyou.ulaw' (language 'ru')
-- Executing [00448@mera-callback-out2:4] Wait("SIP/multifon-00000057", "1") in new stack
-- Executing [00448@mera-callback-out2:5] System("SIP/multifon-00000057", "/usr/sbin/asterisk -rx moh reload") in new stack
-- Remote UNIX connection
-- Remote UNIX connection disconnected
-- Executing [00448@mera-callback-out2:6] Hangup("SIP/multifon-00000057", "") in new stack
== Spawn extension (mera-callback-out2, 00448, 6) exited non-zero on 'SIP/multifon-00000057'
Scheduling destruction of SIP dialog '652a06d15b2fdbb52b99962661976392@multifon.ru' in 6400 ms (Method: INVITE)
set_destination: Parsing <sip:79251891044@193.201.229.35:5060;transport=udp> for address/port to send to
set_destination: set destination to 193.201.229.35:5060
Reliably Transmitting (NAT) to 193.201.229.35:5060:
BYE sip:79251891044@193.201.229.35:5060;transport=udp SIP/2.0
---
[Sep 3 10:29:22] NOTICE[11481]: pbx_spool.c:373 attempt_thread: Call completed to SIP/multifon/79251891044
<--- SIP read from UDP:193.201.229.35:5060 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 238.56.156.26:5060;received=238.56.156.26;branch=z9hG4bK60a3600f;rport=5060
From: "asterisk" <sip:79261945604@multifon.ru>;tag=as3defcc41
To: <sip:79251891044@multifon.ru>;tag=54C032463135364189202600
Call-ID: 652a06d15b2fdbb52b99962661976392@multifon.ru
CSeq: 104 BYE
Content-Length: 0