Answer the question
In order to leave comments, you need to log in
How to fix call error between two sip lines in Asterisk?
I will briefly describe the details. Calling subscribers is carried out through call-files of the following content:
Channel: SIP/внешний транк/телефон вызова
Context: rko
Extension: телефон вызова
Priority: 1
Set: num=телефон вызова
[rko]
exten => failed,1,System(echo "${num}" >> /var/log/asterisk/failed)
exten => failed,n,Hangup()
exten => _X.,1,Set(TIMEOUT(digit)=0.1)
exten => _X.,n,AMD()
exten => _X.,n,NoOp("AMD STATUS IS :"${AMDSTATUS}"...CAUSE:"${AMDCAUSE})
exten => _X.,n,GotoIf($[${AMDSTATUS}=HUMAN]?humn:mach)
exten => _X.,n(mach),System(echo "${EXTEN}" >> /var/log/asterisk/machine)
exten => _X.,n,Hangup()
exten => _X.,n(humn),Background(/var/lib/asterisk/moh/voicemail/rko_2)
exten => _X.,n,System(echo "${EXTEN}" >> /var/log/asterisk/unknown)
exten => _X.,n,Hangup()
exten => 1,1,Goto(want_rko,${num},1)
[want_rko]
exten => _X.,1,System(echo "${EXTEN}" >> /var/log/asterisk/wanted)
exten => _X.,n,Dial(SIP/внешний транк/логин второго внешнего транка@хост внешнего транка,,t&m)
exten => _X.,n,Hangup()
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question