У меня есть эта проблема, только когда я отвечаю на телефон, а затем зависает, но звездочка не обнаруживает зависание, а AMD обнаруживает?Поймать зависание, пока Asterisk AMD проверяет
Звездочка 11,11
-- Executing [[email protected]:10] NoOp("Local/[email protected];2", "Next = 0") in new stack
-- Executing [[email protected]:11] Set("Local/[email protected];2", "GLOBAL(NEXT)=0") in new stack
== Setting global variable 'NEXT' to '0'
-- Executing [[email protected]:12] Dial("Local/[email protected];2", "SIP/[email protected],20,gtr") in new stack
== Using SIP RTP CoS mark 5
-- Called [email protected]
-- SIP/forfait-ovh-00000000 is ringing
-- SIP/forfait-ovh-00000000 is making progress passing it to Local/[email protected];2
-- SIP/forfait-ovh-00000000 answered Local/[email protected];2
> Channel Local/[email protected];1 was answered.
-- Executing [[email protected]:1] Playback("Local/[email protected];1", "silence/1") in new stack
-- <Local/[email protected];1> Playing 'silence/1.gsm' (language 'en')
== Spawn extension (appel-sortant, 09XXXXXXXX, 12) exited non-zero on 'Local/[email protected];2'
-- Executing [[email protected]:2] AMD("SIP/forfait-ovh-00000000", "") in new stack
-- AMD: SIP/forfait-ovh-00000000 09XXXXXXXX (null) (Fmt: 64)
-- AMD: initialSilence [2500] greeting [1500] afterGreetingSilence [800] totalAnalysisTime [5000] minimumWordLength [100] betweenWordsSilence [50] maximumNumberOfWords [3] silenceThreshold [256] maximumWordLength [5000]
-- AMD: Channel [SIP/forfait-ovh-00000000]. Changed state to STATE_IN_SILENCE
-- AMD: Channel [SIP/forfait-ovh-00000000]. HANGUP
[Aug 31 09:19:35] NOTICE[32712]: pbx_spool.c:349 attempt_thread: Call completed to Local/[email protected]
extensions.conf
exten => s,1,Playback(silence/1)
exten => s,n,AMD()
exten => s,n,NoOp(AMDSTATUS = ${AMDSTATUS})
exten => s,n,GotoIf($[${AMDSTATUS}=MACHINE]?appel-sortant-mach,s,1:appel-sortant-humn,s,1)