Пожалуйста, войдите здесь. Часто задаваемые вопросы О нас
Задайте Ваш вопрос

История изменений [назад]

нажмите, чтобы скрыть/показать версии 1
изначальная версия
редактировать

спросил 2016-11-23 15:37:20 +0400

troubemaker Gravatar troubemaker

Пожалуйста, помогите решить проблему. Asterisk нет входящих и исходящих звонков

Добрый день, прошу помощи с возникшей проблемой сегодня ни с того ни с сего Asterisk пропали входящие и исходящие звонки. После обращения к ТП провайдера был получен ответ что у них все в порядке и проблема на моей стороне, при этом у меня работают внутренние звонки по предприятию и транк для связи с удаленным офисом. При попытке звонка Asterisk выдает следующее... <spoiler>

---
  == Using SIP RTP TOS bits 184
  == Using SIP RTP CoS mark 5
    -- Executing [550808@from-internal:1] Macro("SIP/913-00000033", "user-callerid,LIMIT,") in new stack
    -- Executing [s@macro-user-callerid:1] Set("SIP/913-00000033", "AMPUSER=913") in new stack
    -- Executing [s@macro-user-callerid:2] GotoIf("SIP/913-00000033", "0?report") in new stack
    -- Executing [s@macro-user-callerid:3] ExecIf("SIP/913-00000033", "1?Set(REALCALLERIDNUM=913)") in new stack
    -- Executing [s@macro-user-callerid:4] Set("SIP/913-00000033", "AMPUSER=913") in new stack
    -- Executing [s@macro-user-callerid:5] Set("SIP/913-00000033", "AMPUSERCIDNAME=913") in new stack
    -- Executing [s@macro-user-callerid:6] GotoIf("SIP/913-00000033", "0?report") in new stack
    -- Executing [s@macro-user-callerid:7] Set("SIP/913-00000033", "AMPUSERCID=913") in new stack
    -- Executing [s@macro-user-callerid:8] Set("SIP/913-00000033", "CALLERID(all)="913" <913>") in new stack
    -- Executing [s@macro-user-callerid:9] GotoIf("SIP/913-00000033", "0?limit") in new stack
    -- Executing [s@macro-user-callerid:10] ExecIf("SIP/913-00000033", "1?Set(GROUP(concurrency_limit)=913)") in new stack
    -- Executing [s@macro-user-callerid:11] GosubIf("SIP/913-00000033", "7?sub-ccss,s,1(from-internal,550808)") in new stack
    -- Executing [s@sub-ccss:1] ExecIf("SIP/913-00000033", "0?Return()") in new stack
    -- Executing [s@sub-ccss:2] Set("SIP/913-00000033", "CCSS_SETUP=TRUE") in new stack
    -- Executing [s@sub-ccss:3] GosubIf("SIP/913-00000033", "0?monitor_config,1(from-internal,550808):monitor_default,1(from-internal,550808)") in new stack
    -- Executing [monitor_default@sub-ccss:1] GotoIf("SIP/913-00000033", "0?is_exten") in new stack
    -- Executing [monitor_default@sub-ccss:2] StackPop("SIP/913-00000033", "") in new stack
    -- Executing [monitor_default@sub-ccss:3] Return("SIP/913-00000033", "FALSE") in new stack
    -- Executing [s@macro-user-callerid:12] GotoIf("SIP/913-00000033", "1?continue") in new stack
    -- Goto (macro-user-callerid,s,25)
    -- Executing [s@macro-user-callerid:25] Set("SIP/913-00000033", "CALLERID(number)=913") in new stack
    -- Executing [s@macro-user-callerid:26] Set("SIP/913-00000033", "CALLERID(name)=913") in new stack
    -- Executing [s@macro-user-callerid:27] Set("SIP/913-00000033", "CHANNEL(language)=en") in new stack
    -- Executing [550808@from-internal:2] Set("SIP/913-00000033", "MOHCLASS=default") in new stack
    -- Executing [550808@from-internal:3] ExecIf("SIP/913-00000033", "1?Set(TRUNKCIDOVERRIDE=550808)") in new stack
    -- Executing [550808@from-internal:4] Set("SIP/913-00000033", "_NODEST=") in new stack
    -- Executing [550808@from-internal:5] Gosub("SIP/913-00000033", "sub-record-check,s,1(out,550808,)") in new stack
    -- Executing [s@sub-record-check:1] GotoIf("SIP/913-00000033", "1?check") in new stack
    -- Goto (sub-record-check,s,6)
    -- Executing [s@sub-record-check:6] Set("SIP/913-00000033", "__MON_FMT=wav") in new stack
    -- Executing [s@sub-record-check:7] GotoIf("SIP/913-00000033", "1?next") in new stack
    -- Goto (sub-record-check,s,10)
    -- Executing [s@sub-record-check:10] ExecIf("SIP/913-00000033", "0?Return()") in new stack
    -- Executing [s@sub-record-check:11] GotoIf("SIP/913-00000033", "0?out,1") in new stack
    -- Executing [s@sub-record-check:12] Set("SIP/913-00000033", "__REC_STATUS=INITIALIZED") in new stack
    -- Executing [s@sub-record-check:13] ExecIf("SIP/913-00000033", "0?Set(__REC_POLICY_MODE=)") in new stack
    -- Executing [s@sub-record-check:14] Set("SIP/913-00000033", "NOW=1479900537") in new stack
    -- Executing [s@sub-record-check:15] Set("SIP/913-00000033", "__DAY=23") in new stack
    -- Executing [s@sub-record-check:16] Set("SIP/913-00000033", "__MONTH=11") in new stack
    -- Executing [s@sub-record-check:17] Set("SIP/913-00000033", "__YEAR=2016") in new stack
    -- Executing [s@sub-record-check:18] Set("SIP/913-00000033", "__TIMESTR=20161123-172857") in new stack
    -- Executing [s@sub-record-check:19] Set("SIP/913-00000033", "__FROMEXTEN=913") in new stack
    -- Executing [s@sub-record-check:20] Set("SIP/913-00000033", "__CALLFILENAME=out-550808-913-20161123-172857-1479900537.51") in new stack
    -- Executing [s@sub-record-check:21] Goto("SIP/913-00000033", "out,1") in new stack
    -- Goto (sub-record-check,out,1)
    -- Executing [out@sub-record-check:1] ExecIf("SIP/913-00000033", "1?Set(__REC_POLICY_MODE=dontcare)") in new stack
    -- Executing [out@sub-record-check:2] GosubIf("SIP/913-00000033", "0?record,1(exten,550808,913)") in new stack
    -- Executing [out@sub-record-check:3] Return("SIP/913-00000033", "") in new stack
    -- Executing [550808@from-internal:6] Macro("SIP/913-00000033", "dialout-trunk,1,550808,") in new stack
    -- Executing [s@macro-dialout-trunk:1] Set("SIP/913-00000033", "DIAL_TRUNK=1") in new stack
    -- Executing [s@macro-dialout-trunk:2] GosubIf("SIP/913-00000033", "0?sub-pincheck,s,1()") in new stack
    -- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/913-00000033", "0?disabletrunk,1") in new stack
    -- Executing [s@macro-dialout-trunk:4] Set("SIP/913-00000033", "DIAL_NUMBER=550808") in new stack
    -- Executing [s@macro-dialout-trunk:5] Set("SIP/913-00000033", "DIAL_TRUNK_OPTIONS=tr") in new stack
    -- Executing [s@macro-dialout-trunk:6] Set("SIP/913-00000033", "OUTBOUND_GROUP=OUT_1") in new stack
    -- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/913-00000033", "1?nomax") in new stack
    -- Goto (macro-dialout-trunk,s,9)
    -- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/913-00000033", "0?skipoutcid") in new stack
    -- Executing [s@macro-dialout-trunk:10] Set("SIP/913-00000033", "DIAL_TRUNK_OPTIONS=") in new stack
    -- Executing [s@macro-dialout-trunk:11] Macro("SIP/913-00000033", "outbound-callerid,1") in new stack
    -- Executing [s@macro-outbound-callerid:1] ExecIf("SIP/913-00000033", "0?Set(CALLERPRES()=)") in new stack
    -- Executing [s@macro-outbound-callerid:2] ExecIf("SIP/913-00000033", "0?Set(REALCALLERIDNUM=913)") in new stack
    -- Executing [s@macro-outbound-callerid:3] GotoIf("SIP/913-00000033", "1?normcid") in new stack
    -- Goto (macro-outbound-callerid,s,6)
    -- Executing [s@macro-outbound-callerid:6] Set("SIP/913-00000033", "USEROUTCID=") in new stack
    -- Executing [s@macro-outbound-callerid:7] Set("SIP/913-00000033", "EMERGENCYCID=") in new stack
    -- Executing [s@macro-outbound-callerid:8] Set("SIP/913-00000033", "TRUNKOUTCID=550808") in new stack
    -- Executing [s@macro-outbound-callerid:9] GotoIf("SIP/913-00000033", "1?trunkcid") in new stack
    -- Goto (macro-outbound-callerid,s,12)
    -- Executing [s@macro-outbound-callerid:12] ExecIf("SIP/913-00000033", "1?Set(CALLERID(all)=550808)") in new stack
    -- Executing [s@macro-outbound-callerid:13] ExecIf("SIP/913-00000033", "0?Set(CALLERID(all)=)") in new stack
    -- Executing [s@macro-outbound-callerid:14] ExecIf("SIP/913-00000033", "1?Set(CALLERID(all)=550808)") in new stack
    -- Executing [s@macro-outbound-callerid:15] ExecIf("SIP/913-00000033", "0?Set(CALLERPRES()=prohib_passed_screen)") in new stack
    -- Executing [s@macro-dialout-trunk:12] GosubIf("SIP/913-00000033", "1?sub-flp-1,s,1()") in new stack
    -- Executing [s@sub-flp-1:1] ExecIf("SIP/913-00000033", "1?Return()") in new stack
    -- Executing [s@macro-dialout-trunk:13] Set("SIP/913-00000033", "OUTNUM=550808") in new stack
    -- Executing [s@macro-dialout-trunk:14] Set("SIP/913-00000033", "custom=SIP/LaRcom") in new stack
    -- Executing [s@macro-dialout-trunk:15] ExecIf("SIP/913-00000033", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default))") in new stack
    -- Executing [s@macro-dialout-trunk:16] ExecIf("SIP/913-00000033", "0?Set(DIAL_TRUNK_OPTIONS=M(confirm))") in new stack
    -- Executing [s@macro-dialout-trunk:17] Macro("SIP/913-00000033", "dialout-trunk-predial-hook,") in new stack
    -- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("SIP/913-00000033", "") in new stack
    -- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/913-00000033", "0?bypass,1") in new stack
    -- Executing [s@macro-dialout-trunk:19] ExecIf("SIP/913-00000033", "1?Set(CONNECTEDLINE(num,i)=550808)") in new stack
    -- Executing [s@macro-dialout-trunk:20] ExecIf("SIP/913-00000033", "1?Set(CONNECTEDLINE(name,i)=CID:550808)") in new stack
    -- Executing [s@macro-dialout-trunk:21] GotoIf("SIP/913-00000033", "0?customtrunk") in new stack
    -- Executing [s@macro-dialout-trunk:22] Dial("SIP/913-00000033", "SIP/LaRcom/550808,300,") in new stack
  == Everyone is busy/congested at this time (1:0/0/1)
    -- Executing [s@macro-dialout-trunk:23] NoOp("SIP/913-00000033", "Dial failed for some reason with DIALSTATUS = CHANUNAVAIL and HANGUPCAUSE = 20") in new stack
    -- Executing [s@macro-dialout-trunk:24] Goto("SIP/913-00000033", "s-CHANUNAVAIL,1") in new stack
    -- Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)
    -- Executing [s-CHANUNAVAIL@macro-dialout-trunk:1] Set("SIP/913-00000033", "RC=20") in new stack
    -- Executing [s-CHANUNAVAIL@macro-dialout-trunk:2] Goto("SIP/913-00000033", "20,1") in new stack
    -- Goto (macro-dialout-trunk,20,1)
    -- Executing [20@macro-dialout-trunk:1] Goto("SIP/913-00000033", "continue,1") in new stack
    -- Goto (macro-dialout-trunk,continue,1)
    -- Executing [continue@macro-dialout-trunk:1] GotoIf("SIP/913-00000033", "1?noreport") in new stack
    -- Goto (macro-dialout-trunk,continue,3)
    -- Executing [continue@macro-dialout-trunk:3] NoOp("SIP/913-00000033", "TRUNK Dial failed due to CHANUNAVAIL HANGUPCAUSE: 20 - failing through to other trunks") in new stack
    -- Executing [continue@macro-dialout-trunk:4] Set("SIP/913-00000033", "CALLERID(number)=913") in new stack
    -- Executing [550808@from-internal:7] Macro("SIP/913-00000033", "outisbusy,") in new stack
    -- Executing [s@macro-outisbusy:1] Progress("SIP/913-00000033", "") in new stack
    -- Executing [s@macro-outisbusy:2] GotoIf("SIP/913-00000033", "0?emergency,1") in new stack
    -- Executing [s@macro-outisbusy:3] GotoIf("SIP/913-00000033", "0?intracompany,1") in new stack
    -- Executing [s@macro-outisbusy:4] Playback("SIP/913-00000033", "all-circuits-busy-now&pls-try-call-later, noanswer") in new stack
    -- Executing [s@macro-outisbusy:5] Congestion("SIP/913-00000033", "20") in new stack
  == Spawn extension (macro-outisbusy, s, 5) exited non-zero on 'SIP/913-00000033' in macro 'outisbusy'
  == Spawn extension (from-internal, 550808, 7) exited non-zero on 'SIP/913-00000033'
    -- Executing [h@from-internal:1] Hangup("SIP/913-00000033", "") in new stack
  == Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/913-00000033'

</spoiler>

Сам транк

disallow=all
qualify=yes
nat=yes
port=5069
insecure=port,invite
host=10.251.2.2
fromdomain=10.251.2.2
dtmfmode=rfc2833
canreinvite=no
allow=g729&alaw&ulaw
type=friend
t38pt_udptl=yes,redundancy,maxdatagram=400&yes,redundancy,maxdatagram=400
context=from-trunk

Пожалуйста, помогите решить проблему. Asterisk нет входящих и исходящих звонков

Добрый день, прошу помощи с возникшей проблемой сегодня ни с того ни с сего Asterisk пропали входящие и исходящие звонки. После обращения к ТП провайдера был получен ответ что у них все в порядке и проблема на моей стороне, при этом у меня работают внутренние звонки по предприятию и транк для связи с удаленным офисом. При попытке звонка Asterisk выдает следующее... <spoiler>

---
  == Using SIP RTP TOS bits 184
  == Using SIP RTP CoS mark 5
    -- Executing [550808@from-internal:1] Macro("SIP/913-00000033", "user-callerid,LIMIT,") in new stack
    -- Executing [s@macro-user-callerid:1] Set("SIP/913-00000033", "AMPUSER=913") in new stack
    -- Executing [s@macro-user-callerid:2] GotoIf("SIP/913-00000033", "0?report") in new stack
    -- Executing [s@macro-user-callerid:3] ExecIf("SIP/913-00000033", "1?Set(REALCALLERIDNUM=913)") in new stack
    -- Executing [s@macro-user-callerid:4] Set("SIP/913-00000033", "AMPUSER=913") in new stack
    -- Executing [s@macro-user-callerid:5] Set("SIP/913-00000033", "AMPUSERCIDNAME=913") in new stack
    -- Executing [s@macro-user-callerid:6] GotoIf("SIP/913-00000033", "0?report") in new stack
    -- Executing [s@macro-user-callerid:7] Set("SIP/913-00000033", "AMPUSERCID=913") in new stack
    -- Executing [s@macro-user-callerid:8] Set("SIP/913-00000033", "CALLERID(all)="913" <913>") in new stack
    -- Executing [s@macro-user-callerid:9] GotoIf("SIP/913-00000033", "0?limit") in new stack
    -- Executing [s@macro-user-callerid:10] ExecIf("SIP/913-00000033", "1?Set(GROUP(concurrency_limit)=913)") in new stack
    -- Executing [s@macro-user-callerid:11] GosubIf("SIP/913-00000033", "7?sub-ccss,s,1(from-internal,550808)") in new stack
    -- Executing [s@sub-ccss:1] ExecIf("SIP/913-00000033", "0?Return()") in new stack
    -- Executing [s@sub-ccss:2] Set("SIP/913-00000033", "CCSS_SETUP=TRUE") in new stack
    -- Executing [s@sub-ccss:3] GosubIf("SIP/913-00000033", "0?monitor_config,1(from-internal,550808):monitor_default,1(from-internal,550808)") in new stack
    -- Executing [monitor_default@sub-ccss:1] GotoIf("SIP/913-00000033", "0?is_exten") in new stack
    -- Executing [monitor_default@sub-ccss:2] StackPop("SIP/913-00000033", "") in new stack
    -- Executing [monitor_default@sub-ccss:3] Return("SIP/913-00000033", "FALSE") in new stack
    -- Executing [s@macro-user-callerid:12] GotoIf("SIP/913-00000033", "1?continue") in new stack
    -- Goto (macro-user-callerid,s,25)
    -- Executing [s@macro-user-callerid:25] Set("SIP/913-00000033", "CALLERID(number)=913") in new stack
    -- Executing [s@macro-user-callerid:26] Set("SIP/913-00000033", "CALLERID(name)=913") in new stack
    -- Executing [s@macro-user-callerid:27] Set("SIP/913-00000033", "CHANNEL(language)=en") in new stack
    -- Executing [550808@from-internal:2] Set("SIP/913-00000033", "MOHCLASS=default") in new stack
    -- Executing [550808@from-internal:3] ExecIf("SIP/913-00000033", "1?Set(TRUNKCIDOVERRIDE=550808)") in new stack
    -- Executing [550808@from-internal:4] Set("SIP/913-00000033", "_NODEST=") in new stack
    -- Executing [550808@from-internal:5] Gosub("SIP/913-00000033", "sub-record-check,s,1(out,550808,)") in new stack
    -- Executing [s@sub-record-check:1] GotoIf("SIP/913-00000033", "1?check") in new stack
    -- Goto (sub-record-check,s,6)
    -- Executing [s@sub-record-check:6] Set("SIP/913-00000033", "__MON_FMT=wav") in new stack
    -- Executing [s@sub-record-check:7] GotoIf("SIP/913-00000033", "1?next") in new stack
    -- Goto (sub-record-check,s,10)
    -- Executing [s@sub-record-check:10] ExecIf("SIP/913-00000033", "0?Return()") in new stack
    -- Executing [s@sub-record-check:11] GotoIf("SIP/913-00000033", "0?out,1") in new stack
    -- Executing [s@sub-record-check:12] Set("SIP/913-00000033", "__REC_STATUS=INITIALIZED") in new stack
    -- Executing [s@sub-record-check:13] ExecIf("SIP/913-00000033", "0?Set(__REC_POLICY_MODE=)") in new stack
    -- Executing [s@sub-record-check:14] Set("SIP/913-00000033", "NOW=1479900537") in new stack
    -- Executing [s@sub-record-check:15] Set("SIP/913-00000033", "__DAY=23") in new stack
    -- Executing [s@sub-record-check:16] Set("SIP/913-00000033", "__MONTH=11") in new stack
    -- Executing [s@sub-record-check:17] Set("SIP/913-00000033", "__YEAR=2016") in new stack
    -- Executing [s@sub-record-check:18] Set("SIP/913-00000033", "__TIMESTR=20161123-172857") in new stack
    -- Executing [s@sub-record-check:19] Set("SIP/913-00000033", "__FROMEXTEN=913") in new stack
    -- Executing [s@sub-record-check:20] Set("SIP/913-00000033", "__CALLFILENAME=out-550808-913-20161123-172857-1479900537.51") in new stack
    -- Executing [s@sub-record-check:21] Goto("SIP/913-00000033", "out,1") in new stack
    -- Goto (sub-record-check,out,1)
    -- Executing [out@sub-record-check:1] ExecIf("SIP/913-00000033", "1?Set(__REC_POLICY_MODE=dontcare)") in new stack
    -- Executing [out@sub-record-check:2] GosubIf("SIP/913-00000033", "0?record,1(exten,550808,913)") in new stack
    -- Executing [out@sub-record-check:3] Return("SIP/913-00000033", "") in new stack
    -- Executing [550808@from-internal:6] Macro("SIP/913-00000033", "dialout-trunk,1,550808,") in new stack
    -- Executing [s@macro-dialout-trunk:1] Set("SIP/913-00000033", "DIAL_TRUNK=1") in new stack
    -- Executing [s@macro-dialout-trunk:2] GosubIf("SIP/913-00000033", "0?sub-pincheck,s,1()") in new stack
    -- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/913-00000033", "0?disabletrunk,1") in new stack
    -- Executing [s@macro-dialout-trunk:4] Set("SIP/913-00000033", "DIAL_NUMBER=550808") in new stack
    -- Executing [s@macro-dialout-trunk:5] Set("SIP/913-00000033", "DIAL_TRUNK_OPTIONS=tr") in new stack
    -- Executing [s@macro-dialout-trunk:6] Set("SIP/913-00000033", "OUTBOUND_GROUP=OUT_1") in new stack
    -- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/913-00000033", "1?nomax") in new stack
    -- Goto (macro-dialout-trunk,s,9)
    -- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/913-00000033", "0?skipoutcid") in new stack
    -- Executing [s@macro-dialout-trunk:10] Set("SIP/913-00000033", "DIAL_TRUNK_OPTIONS=") in new stack
    -- Executing [s@macro-dialout-trunk:11] Macro("SIP/913-00000033", "outbound-callerid,1") in new stack
    -- Executing [s@macro-outbound-callerid:1] ExecIf("SIP/913-00000033", "0?Set(CALLERPRES()=)") in new stack
    -- Executing [s@macro-outbound-callerid:2] ExecIf("SIP/913-00000033", "0?Set(REALCALLERIDNUM=913)") in new stack
    -- Executing [s@macro-outbound-callerid:3] GotoIf("SIP/913-00000033", "1?normcid") in new stack
    -- Goto (macro-outbound-callerid,s,6)
    -- Executing [s@macro-outbound-callerid:6] Set("SIP/913-00000033", "USEROUTCID=") in new stack
    -- Executing [s@macro-outbound-callerid:7] Set("SIP/913-00000033", "EMERGENCYCID=") in new stack
    -- Executing [s@macro-outbound-callerid:8] Set("SIP/913-00000033", "TRUNKOUTCID=550808") in new stack
    -- Executing [s@macro-outbound-callerid:9] GotoIf("SIP/913-00000033", "1?trunkcid") in new stack
    -- Goto (macro-outbound-callerid,s,12)
    -- Executing [s@macro-outbound-callerid:12] ExecIf("SIP/913-00000033", "1?Set(CALLERID(all)=550808)") in new stack
    -- Executing [s@macro-outbound-callerid:13] ExecIf("SIP/913-00000033", "0?Set(CALLERID(all)=)") in new stack
    -- Executing [s@macro-outbound-callerid:14] ExecIf("SIP/913-00000033", "1?Set(CALLERID(all)=550808)") in new stack
    -- Executing [s@macro-outbound-callerid:15] ExecIf("SIP/913-00000033", "0?Set(CALLERPRES()=prohib_passed_screen)") in new stack
    -- Executing [s@macro-dialout-trunk:12] GosubIf("SIP/913-00000033", "1?sub-flp-1,s,1()") in new stack
    -- Executing [s@sub-flp-1:1] ExecIf("SIP/913-00000033", "1?Return()") in new stack
    -- Executing [s@macro-dialout-trunk:13] Set("SIP/913-00000033", "OUTNUM=550808") in new stack
    -- Executing [s@macro-dialout-trunk:14] Set("SIP/913-00000033", "custom=SIP/LaRcom") in new stack
    -- Executing [s@macro-dialout-trunk:15] ExecIf("SIP/913-00000033", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default))") in new stack
    -- Executing [s@macro-dialout-trunk:16] ExecIf("SIP/913-00000033", "0?Set(DIAL_TRUNK_OPTIONS=M(confirm))") in new stack
    -- Executing [s@macro-dialout-trunk:17] Macro("SIP/913-00000033", "dialout-trunk-predial-hook,") in new stack
    -- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("SIP/913-00000033", "") in new stack
    -- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/913-00000033", "0?bypass,1") in new stack
    -- Executing [s@macro-dialout-trunk:19] ExecIf("SIP/913-00000033", "1?Set(CONNECTEDLINE(num,i)=550808)") in new stack
    -- Executing [s@macro-dialout-trunk:20] ExecIf("SIP/913-00000033", "1?Set(CONNECTEDLINE(name,i)=CID:550808)") in new stack
    -- Executing [s@macro-dialout-trunk:21] GotoIf("SIP/913-00000033", "0?customtrunk") in new stack
    -- Executing [s@macro-dialout-trunk:22] Dial("SIP/913-00000033", "SIP/LaRcom/550808,300,") in new stack
  == Everyone is busy/congested at this time (1:0/0/1)
    -- Executing [s@macro-dialout-trunk:23] NoOp("SIP/913-00000033", "Dial failed for some reason with DIALSTATUS = CHANUNAVAIL and HANGUPCAUSE = 20") in new stack
    -- Executing [s@macro-dialout-trunk:24] Goto("SIP/913-00000033", "s-CHANUNAVAIL,1") in new stack
    -- Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)
    -- Executing [s-CHANUNAVAIL@macro-dialout-trunk:1] Set("SIP/913-00000033", "RC=20") in new stack
    -- Executing [s-CHANUNAVAIL@macro-dialout-trunk:2] Goto("SIP/913-00000033", "20,1") in new stack
    -- Goto (macro-dialout-trunk,20,1)
    -- Executing [20@macro-dialout-trunk:1] Goto("SIP/913-00000033", "continue,1") in new stack
    -- Goto (macro-dialout-trunk,continue,1)
    -- Executing [continue@macro-dialout-trunk:1] GotoIf("SIP/913-00000033", "1?noreport") in new stack
    -- Goto (macro-dialout-trunk,continue,3)
    -- Executing [continue@macro-dialout-trunk:3] NoOp("SIP/913-00000033", "TRUNK Dial failed due to CHANUNAVAIL HANGUPCAUSE: 20 - failing through to other trunks") in new stack
    -- Executing [continue@macro-dialout-trunk:4] Set("SIP/913-00000033", "CALLERID(number)=913") in new stack
    -- Executing [550808@from-internal:7] Macro("SIP/913-00000033", "outisbusy,") in new stack
    -- Executing [s@macro-outisbusy:1] Progress("SIP/913-00000033", "") in new stack
    -- Executing [s@macro-outisbusy:2] GotoIf("SIP/913-00000033", "0?emergency,1") in new stack
    -- Executing [s@macro-outisbusy:3] GotoIf("SIP/913-00000033", "0?intracompany,1") in new stack
    -- Executing [s@macro-outisbusy:4] Playback("SIP/913-00000033", "all-circuits-busy-now&pls-try-call-later, noanswer") in new stack
    -- Executing [s@macro-outisbusy:5] Congestion("SIP/913-00000033", "20") in new stack
  == Spawn extension (macro-outisbusy, s, 5) exited non-zero on 'SIP/913-00000033' in macro 'outisbusy'
  == Spawn extension (from-internal, 550808, 7) exited non-zero on 'SIP/913-00000033'
    -- Executing [h@from-internal:1] Hangup("SIP/913-00000033", "") in new stack
  == Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/913-00000033'

</spoiler>

Сам транк

disallow=all
qualify=yes
nat=yes
port=5069
insecure=port,invite
host=10.251.2.2
fromdomain=10.251.2.2
dtmfmode=rfc2833
canreinvite=no
allow=g729&alaw&ulaw
type=friend
t38pt_udptl=yes,redundancy,maxdatagram=400&yes,redundancy,maxdatagram=400
context=from-trunk

Сделал

sip set debug peer LaRcom

Получил такое

<spoiler>

      == Parsing '/etc/asterisk/asterisk.conf':   == Found
      == Parsing '/etc/asterisk/extconfig.conf':   == Found
    Connected to Asterisk 1.8.17.0 currently running on AsteriskSoft (pid = 2109)
    Verbosity was 0 and is now 4
        -- Registered SIP '111' at 192.168.1.146:5063
    AsteriskSoft*CLI> sip set debug peer LaRcom
    SIP Debugging Enabled for IP: 10.251.2.2
        -- Registered SIP '111' at 192.168.1.146:5064
    Reliably Transmitting (NAT) to 10.251.2.2:5069:
    OPTIONS sip:10.251.2.2 SIP/2.0
    Via: SIP/2.0/UDP 10.251.11.50:5060;branch=z9hG4bK66eb25e5;rport
    Max-Forwards: 70
    From: "Unknown" <sip:Unknown@10.251.11.50>;tag=as54be8ceb
    To: <sip:10.251.2.2>
    Contact: <sip:Unknown@10.251.11.50:5060>
    Call-ID: 16ae66a8576f8bc3563df978558784af@10.251.11.50:5060
    CSeq: 102 OPTIONS
    User-Agent: FPBX-2.10.1(1.8.17.0)
    Date: Thu, 24 Nov 2016 02:00:36 GMT
    Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLIS                                                                                                                                                              H
    Supported: replaces, timer
    Content-Length: 0


    ---
    Retransmitting #1 (NAT) to 10.251.2.2:5069:
    OPTIONS sip:10.251.2.2 SIP/2.0
    Via: SIP/2.0/UDP 10.251.11.50:5060;branch=z9hG4bK66eb25e5;rport
    Max-Forwards: 70
    From: "Unknown" <sip:Unknown@10.251.11.50>;tag=as54be8ceb
    To: <sip:10.251.2.2>
    Contact: <sip:Unknown@10.251.11.50:5060>
    Call-ID: 16ae66a8576f8bc3563df978558784af@10.251.11.50:5060
    CSeq: 102 OPTIONS
    User-Agent: FPBX-2.10.1(1.8.17.0)
    Date: Thu, 24 Nov 2016 02:00:36 GMT
    Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLIS                                                                                                                                                              H
    Supported: replaces, timer
    Content-Length: 0


    ---
    Retransmitting #2 (NAT) to 10.251.2.2:5069:
    OPTIONS sip:10.251.2.2 SIP/2.0
    Via: SIP/2.0/UDP 10.251.11.50:5060;branch=z9hG4bK66eb25e5;rport
    Max-Forwards: 70
    From: "Unknown" <sip:Unknown@10.251.11.50>;tag=as54be8ceb
    To: <sip:10.251.2.2>
    Contact: <sip:Unknown@10.251.11.50:5060>
    Call-ID: 16ae66a8576f8bc3563df978558784af@10.251.11.50:5060
    CSeq: 102 OPTIONS
    User-Agent: FPBX-2.10.1(1.8.17.0)
    Date: Thu, 24 Nov 2016 02:00:36 GMT
    Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLIS                                                                                                                                                              H
    Supported: replaces, timer
    Content-Length: 0


    ---
    Retransmitting #3 (NAT) to 10.251.2.2:5069:
    OPTIONS sip:10.251.2.2 SIP/2.0
    Via: SIP/2.0/UDP 10.251.11.50:5060;branch=z9hG4bK66eb25e5;rport
    Max-Forwards: 70
    From: "Unknown" <sip:Unknown@10.251.11.50>;tag=as54be8ceb
    To: <sip:10.251.2.2>
    Contact: <sip:Unknown@10.251.11.50:5060>
    Call-ID: 16ae66a8576f8bc3563df978558784af@10.251.11.50:5060
    CSeq: 102 OPTIONS
    User-Agent: FPBX-2.10.1(1.8.17.0)
    Date: Thu, 24 Nov 2016 02:00:36 GMT
    Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLIS                                                                                                                                                              H
    Supported: replaces, timer
    Content-Length: 0


    ---
    Retransmitting #4 (NAT) to 10.251.2.2:5069:
    OPTIONS sip:10.251.2.2 SIP/2.0
    Via: SIP/2.0/UDP 10.251.11.50:5060;branch=z9hG4bK66eb25e5;rport
    Max-Forwards: 70
    From: "Unknown" <sip:Unknown@10.251.11.50>;tag=as54be8ceb
    To: <sip:10.251.2.2>
    Contact: <sip:Unknown@10.251.11.50:5060>
    Call-ID: 16ae66a8576f8bc3563df978558784af@10.251.11.50:5060
    CSeq: 102 OPTIONS
    User-Agent: FPBX-2.10.1(1.8.17.0)
    Date: Thu, 24 Nov 2016 02:00:36 GMT
    Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLIS                                                                                                                                                              H
    Supported: replaces, timer
    Content-Length: 0


    ---
    Really destroying SIP dialog '16ae66a8576f8bc3563df978558784af@10.251.11.50:5060                                                                                                                                                              ' Method: OPTIONS
        -- Got SIP response 503 "Service Unavailable" back from 195.226.208.25:5060
    Reliably Transmitting (NAT) to 10.251.2.2:5069:
    OPTIONS sip:10.251.2.2 SIP/2.0
    Via: SIP/2.0/UDP 10.251.11.50:5060;branch=z9hG4bK31807cf2;rport
    Max-Forwards: 70
    From: "Unknown" <sip:Unknown@10.251.11.50>;tag=as37fda66f
    To: <sip:10.251.2.2>
    Contact: <sip:Unknown@10.251.11.50:5060>
    Call-ID: 17a773e1777f56864726a16946ee1720@10.251.11.50:5060
    CSeq: 102 OPTIONS
    User-Agent: FPBX-2.10.1(1.8.17.0)
    Date: Thu, 24 Nov 2016 02:00:50 GMT
    Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLIS                                                                                                                                                              H
    Supported: replaces, timer
    Content-Length: 0


    ---
    Retransmitting #1 (NAT) to 10.251.2.2:5069:
    OPTIONS sip:10.251.2.2 SIP/2.0
    Via: SIP/2.0/UDP 10.251.11.50:5060;branch=z9hG4bK31807cf2;rport
    Max-Forwards: 70
    From: "Unknown" <sip:Unknown@10.251.11.50>;tag=as37fda66f
    To: <sip:10.251.2.2>
    Contact: <sip:Unknown@10.251.11.50:5060>
    Call-ID: 17a773e1777f56864726a16946ee1720@10.251.11.50:5060
    CSeq: 102 OPTIONS
    User-Agent: FPBX-2.10.1(1.8.17.0)
    Date: Thu, 24 Nov 2016 02:00:50 GMT
    Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLIS                                                                                                                                                              H
    Supported: replaces, timer
    Content-Length: 0


    ---
    Retransmitting #2 (NAT) to 10.251.2.2:5069:
    OPTIONS sip:10.251.2.2 SIP/2.0
    Via: SIP/2.0/UDP 10.251.11.50:5060;branch=z9hG4bK31807cf2;rport
    Max-Forwards: 70
    From: "Unknown" <sip:Unknown@10.251.11.50>;tag=as37fda66f
    To: <sip:10.251.2.2>
    Contact: <sip:Unknown@10.251.11.50:5060>
    Call-ID: 17a773e1777f56864726a16946ee1720@10.251.11.50:5060
    CSeq: 102 OPTIONS
    User-Agent: FPBX-2.10.1(1.8.17.0)
    Date: Thu, 24 Nov 2016 02:00:50 GMT
    Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLIS                                                                                                                                                              H
    Supported: replaces, timer
    Content-Length: 0


    ---
    Retransmitting #3 (NAT) to 10.251.2.2:5069:
    OPTIONS sip:10.251.2.2 SIP/2.0
    Via: SIP/2.0/UDP 10.251.11.50:5060;branch=z9hG4bK31807cf2;rport
    Max-Forwards: 70
    From: "Unknown" <sip:Unknown@10.251.11.50>;tag=as37fda66f
    To: <sip:10.251.2.2>
    Contact: <sip:Unknown@10.251.11.50:5060>
    Call-ID: 17a773e1777f56864726a16946ee1720@10.251.11.50:5060
    CSeq: 102 OPTIONS
    User-Agent: FPBX-2.10.1(1.8.17.0)
    Date: Thu, 24 Nov 2016 02:00:50 GMT
    Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLIS                                                                                                                                                              H
    Supported: replaces, timer
    Content-Length: 0


    ---
    Retransmitting #4 (NAT) to 10.251.2.2:5069:
    OPTIONS sip:10.251.2.2 SIP/2.0
    Via: SIP/2.0/UDP 10.251.11.50:5060;branch=z9hG4bK31807cf2;rport
    Max-Forwards: 70
    From: "Unknown" <sip:Unknown@10.251.11.50>;tag=as37fda66f
    To: <sip:10.251.2.2>
    Contact: <sip:Unknown@10.251.11.50:5060>
    Call-ID: 17a773e1777f56864726a16946ee1720@10.251.11.50:5060
    CSeq: 102 OPTIONS
    User-Agent: FPBX-2.10.1(1.8.17.0)
    Date: Thu, 24 Nov 2016 02:00:50 GMT
    Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLIS                                                                                                                                                              H
    Supported: replaces, timer
    Content-Length: 0


    ---
    Really destroying SIP dialog '17a773e1777f56864726a16946ee1720@10.251.11.50:5060                                                                                                                                                              ' Method: OPTIONS
    Reliably Transmitting (NAT) to 10.251.2.2:5069:
    OPTIONS sip:10.251.2.2 SIP/2.0
    Via: SIP/2.0/UDP 10.251.11.50:5060;branch=z9hG4bK3879323f;rport
    Max-Forwards: 70
    From: "Unknown" <sip:Unknown@10.251.11.50>;tag=as28907a4c
    To: <sip:10.251.2.2>
    Contact: <sip:Unknown@10.251.11.50:5060>
    Call-ID: 0e35042b3cc8d00b796057295e8b8704@10.251.11.50:5060
    CSeq: 102 OPTIONS
    User-Agent: FPBX-2.10.1(1.8.17.0)
    Date: Thu, 24 Nov 2016 02:01:04 GMT
    Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLIS                                                                                                                                                              H
    Supported: replaces, timer
    Content-Length: 0


    ---
    Retransmitting #1 (NAT) to 10.251.2.2:5069:
    OPTIONS sip:10.251.2.2 SIP/2.0
    Via: SIP/2.0/UDP 10.251.11.50:5060;branch=z9hG4bK3879323f;rport
    Max-Forwards: 70
    From: "Unknown" <sip:Unknown@10.251.11.50>;tag=as28907a4c
    To: <sip:10.251.2.2>
    Contact: <sip:Unknown@10.251.11.50:5060>
    Call-ID: 0e35042b3cc8d00b796057295e8b8704@10.251.11.50:5060
    CSeq: 102 OPTIONS
    User-Agent: FPBX-2.10.1(1.8.17.0)
    Date: Thu, 24 Nov 2016 02:01:04 GMT
    Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLIS                                                                                                                                                              H
    Supported: replaces, timer
    Content-Length: 0


    ---
    Retransmitting #2 (NAT) to 10.251.2.2:5069:
    OPTIONS sip:10.251.2.2 SIP/2.0
    Via: SIP/2.0/UDP 10.251.11.50:5060;branch=z9hG4bK3879323f;rport
    Max-Forwards: 70
    From: "Unknown" <sip:Unknown@10.251.11.50>;tag=as28907a4c
    To: <sip:10.251.2.2>
    Contact: <sip:Unknown@10.251.11.50:5060>
    Call-ID: 0e35042b3cc8d00b796057295e8b8704@10.251.11.50:5060
    CSeq: 102 OPTIONS
    User-Agent: FPBX-2.10.1(1.8.17.0)
    Date: Thu, 24 Nov 2016 02:01:04 GMT
    Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLIS                                                                                                                                                              H
    Supported: replaces, timer
    Content-Length: 0


    ---
    Retransmitting #3 (NAT) to 10.251.2.2:5069:
    OPTIONS sip:10.251.2.2 SIP/2.0
    Via: SIP/2.0/UDP 10.251.11.50:5060;branch=z9hG4bK3879323f;rport
    Max-Forwards: 70
    From: "Unknown" <sip:Unknown@10.251.11.50>;tag=as28907a4c
    To: <sip:10.251.2.2>
    Contact: <sip:Unknown@10.251.11.50:5060>
    Call-ID: 0e35042b3cc8d00b796057295e8b8704@10.251.11.50:5060
    CSeq: 102 OPTIONS
    User-Agent: FPBX-2.10.1(1.8.17.0)
    Date: Thu, 24 Nov 2016 02:01:04 GMT
    Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLIS                                                                                                                                                              H
    Supported: replaces, timer
    Content-Length: 0


    ---
    Retransmitting #4 (NAT) to 10.251.2.2:5069:
    OPTIONS sip:10.251.2.2 SIP/2.0
    Via: SIP/2.0/UDP 10.251.11.50:5060;branch=z9hG4bK3879323f;rport
    Max-Forwards: 70
    From: "Unknown" <sip:Unknown@10.251.11.50>;tag=as28907a4c
    To: <sip:10.251.2.2>
    Contact: <sip:Unknown@10.251.11.50:5060>
    Call-ID: 0e35042b3cc8d00b796057295e8b8704@10.251.11.50:5060
    CSeq: 102 OPTIONS
    User-Agent: FPBX-2.10.1(1.8.17.0)
    Date: Thu, 24 Nov 2016 02:01:04 GMT
    Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLIS                                                                                                                                                              H
    Supported: replaces, timer
    Content-Length: 0


    ---
    Really destroying SIP dialog '0e35042b3cc8d00b796057295e8b8704@10.251.11.50:5060                                                                                                                                                              ' Method: OPTIONS
        -- Registered SIP '913' at 192.168.4.185:59878
           > Saved useragent "3CXPhone 6.0.26523.0" for peer 913
    Reliably Transmitting (NAT) to 10.251.2.2:5069:
    OPTIONS sip:10.251.2.2 SIP/2.0
    Via: SIP/2.0/UDP 10.251.11.50:5060;branch=z9hG4bK53ed1307;rport
    Max-Forwards: 70
    From: "Unknown" <sip:Unknown@10.251.11.50>;tag=as77a5a34c
    To: <sip:10.251.2.2>
    Contact: <sip:Unknown@10.251.11.50:5060>
    Call-ID: 24a763bb5247ef0f07ccf8af623d5a50@10.251.11.50:5060
    CSeq: 102 OPTIONS
    User-Agent: FPBX-2.10.1(1.8.17.0)
    Date: Thu, 24 Nov 2016 02:01:18 GMT
    Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLIS                                                                                                                                                              H
    Supported: replaces, timer
    Content-Length: 0


    ---
      == Using SIP RTP TOS bits 184
      == Using SIP RTP CoS mark 5
        -- Executing [353568@from-internal:1] Macro("SIP/913-00000003", "user-caller                                                                                                                                                              id,LIMIT,") in new stack
        -- Executing [s@macro-user-callerid:1] Set("SIP/913-00000003", "AMPUSER=913"                                                                                                                                                              ) in new stack
        -- Executing [s@macro-user-callerid:2] GotoIf("SIP/913-00000003", "0?report"                                                                                                                                                              ) in new stack
        -- Executing [s@macro-user-callerid:3] ExecIf("SIP/913-00000003", "1?Set(REA                                                                                                                                                              LCALLERIDNUM=913)") in new stack
        -- Executing [s@macro-user-callerid:4] Set("SIP/913-00000003", "AMPUSER=913"                                                                                                                                                              ) in new stack
        -- Executing [s@macro-user-callerid:5] Set("SIP/913-00000003", "AMPUSERCIDNA                                                                                                                                                              ME=913") in new stack
        -- Executing [s@macro-user-callerid:6] GotoIf("SIP/913-00000003", "0?report"                                                                                                                                                              ) in new stack
        -- Executing [s@macro-user-callerid:7] Set("SIP/913-00000003", "AMPUSERCID=9                                                                                                                                                              13") in new stack
        -- Executing [s@macro-user-callerid:8] Set("SIP/913-00000003", "CALLERID(all                                                                                                                                                              )="913" <913>") in new stack
        -- Executing [s@macro-user-callerid:9] GotoIf("SIP/913-00000003", "0?limit")                                                                                                                                                               in new stack
        -- Executing [s@macro-user-callerid:10] ExecIf("SIP/913-00000003", "1?Set(GR                                                                                                                                                              OUP(concurrency_limit)=913)") in new stack
        -- Executing [s@macro-user-callerid:11] GosubIf("SIP/913-00000003", "7?sub-c                                                                                                                                                              css,s,1(from-internal,353568)") in new stack
        -- Executing [s@sub-ccss:1] ExecIf("SIP/913-00000003", "0?Return()") in new                                                                                                                                                               stack
        -- Executing [s@sub-ccss:2] Set("SIP/913-00000003", "CCSS_SETUP=TRUE") in ne                                                                                                                                                              w stack
        -- Executing [s@sub-ccss:3] GosubIf("SIP/913-00000003", "0?monitor_config,1(                                                                                                                                                              from-internal,353568):monitor_default,1(from-internal,353568)") in new stack
        -- Executing [monitor_default@sub-ccss:1] GotoIf("SIP/913-00000003", "0?is_e                                                                                                                                                              xten") in new stack
        -- Executing [monitor_default@sub-ccss:2] StackPop("SIP/913-00000003", "") i                                                                                                                                                              n new stack
        -- Executing [monitor_default@sub-ccss:3] Return("SIP/913-00000003", "FALSE"                                                                                                                                                              ) in new stack
        -- Executing [s@macro-user-callerid:12] GotoIf("SIP/913-00000003", "1?contin                                                                                                                                                              ue") in new stack
        -- Goto (macro-user-callerid,s,25)
        -- Executing [s@macro-user-callerid:25] Set("SIP/913-00000003", "CALLERID(nu                                                                                                                                                              mber)=913") in new stack
        -- Executing [s@macro-user-callerid:26] Set("SIP/913-00000003", "CALLERID(na                                                                                                                                                              me)=913") in new stack
        -- Executing [s@macro-user-callerid:27] Set("SIP/913-00000003", "CHANNEL(lan                                                                                                                                                              guage)=en") in new stack
        -- Executing [353568@from-internal:2] Set("SIP/913-00000003", "MOHCLASS=defa                                                                                                                                                              ult") in new stack
        -- Executing [353568@from-internal:3] ExecIf("SIP/913-00000003", "1?Set(TRUN                                                                                                                                                              KCIDOVERRIDE=550808)") in new stack
        -- Executing [353568@from-internal:4] Set("SIP/913-00000003", "_NODEST=") in                                                                                                                                                               new stack
        -- Executing [353568@from-internal:5] Gosub("SIP/913-00000003", "sub-record-                                                                                                                                                              check,s,1(out,353568,)") in new stack
        -- Executing [s@sub-record-check:1] GotoIf("SIP/913-00000003", "1?check") in                                                                                                                                                               new stack
        -- Goto (sub-record-check,s,6)
        -- Executing [s@sub-record-check:6] Set("SIP/913-00000003", "__MON_FMT=wav")                                                                                                                                                               in new stack
        -- Executing [s@sub-record-check:7] GotoIf("SIP/913-00000003", "1?next") in                                                                                                                                                               new stack
        -- Goto (sub-record-check,s,10)
        -- Executing [s@sub-record-check:10] ExecIf("SIP/913-00000003", "0?Return()"                                                                                                                                                              ) in new stack
        -- Executing [s@sub-record-check:11] GotoIf("SIP/913-00000003", "0?out,1") i                                                                                                                                                              n new stack
        -- Executing [s@sub-record-check:12] Set("SIP/913-00000003", "__REC_STATUS=I                                                                                                                                                              NITIALIZED") in new stack
        -- Executing [s@sub-record-check:13] ExecIf("SIP/913-00000003", "0?Set(__REC                                                                                                                                                              _POLICY_MODE=)") in new stack
        -- Executing [s@sub-record-check:14] Set("SIP/913-00000003", "NOW=1479952879                                                                                                                                                              ") in new stack
        -- Executing [s@sub-record-check:15] Set("SIP/913-00000003", "__DAY=24") in                                                                                                                                                               new stack
        -- Executing [s@sub-record-check:16] Set("SIP/913-00000003", "__MONTH=11") i                                                                                                                                                              n new stack
        -- Executing [s@sub-record-check:17] Set("SIP/913-00000003", "__YEAR=2016")                                                                                                                                                               in new stack
        -- Executing [s@sub-record-check:18] Set("SIP/913-00000003", "__TIMESTR=2016                                                                                                                                                              1124-080119") in new stack
        -- Executing [s@sub-record-check:19] Set("SIP/913-00000003", "__FROMEXTEN=91                                                                                                                                                              3") in new stack
        -- Executing [s@sub-record-check:20] Set("SIP/913-00000003", "__CALLFILENAME                                                                                                                                                              =out-353568-913-20161124-080119-1479952879.3") in new stack
        -- Executing [s@sub-record-check:21] Goto("SIP/913-00000003", "out,1") in ne                                                                                                                                                              w stack
        -- Goto (sub-record-check,out,1)
        -- Executing [out@sub-record-check:1] ExecIf("SIP/913-00000003", "1?Set(__RE                                                                                                                                                              C_POLICY_MODE=dontcare)") in new stack
        -- Executing [out@sub-record-check:2] GosubIf("SIP/913-00000003", "0?record,                                                                                                                                                              1(exten,353568,913)") in new stack
        -- Executing [out@sub-record-check:3] Return("SIP/913-00000003", "") in new                                                                                                                                                               stack
        -- Executing [353568@from-internal:6] Macro("SIP/913-00000003", "dialout-tru                                                                                                                                                              nk,1,353568,") in new stack
        -- Executing [s@macro-dialout-trunk:1] Set("SIP/913-00000003", "DIAL_TRUNK=1                                                                                                                                                              ") in new stack
        -- Executing [s@macro-dialout-trunk:2] GosubIf("SIP/913-00000003", "0?sub-pi                                                                                                                                                              ncheck,s,1()") in new stack
        -- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/913-00000003", "0?disable                                                                                                                                                              trunk,1") in new stack
        -- Executing [s@macro-dialout-trunk:4] Set("SIP/913-00000003", "DIAL_NUMBER=                                                                                                                                                              353568") in new stack
        -- Executing [s@macro-dialout-trunk:5] Set("SIP/913-00000003", "DIAL_TRUNK_O                                                                                                                                                              PTIONS=tr") in new stack
        -- Executing [s@macro-dialout-trunk:6] Set("SIP/913-00000003", "OUTBOUND_GRO                                                                                                                                                              UP=OUT_1") in new stack
        -- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/913-00000003", "1?nomax")                                                                                                                                                               in new stack
        -- Goto (macro-dialout-trunk,s,9)
        -- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/913-00000003", "0?skipout                                                                                                                                                              cid") in new stack
        -- Executing [s@macro-dialout-trunk:10] Set("SIP/913-00000003", "DIAL_TRUNK_                                                                                                                                                              OPTIONS=") in new stack
        -- Executing [s@macro-dialout-trunk:11] Macro("SIP/913-00000003", "outbound-                                                                                                                                                              callerid,1") in new stack
        -- Executing [s@macro-outbound-callerid:1] ExecIf("SIP/913-00000003", "0?Set                                                                                                                                                              (CALLERPRES()=)") in new stack
        -- Executing [s@macro-outbound-callerid:2] ExecIf("SIP/913-00000003", "0?Set                                                                                                                                                              (REALCALLERIDNUM=913)") in new stack
        -- Executing [s@macro-outbound-callerid:3] GotoIf("SIP/913-00000003", "1?nor                                                                                                                                                              mcid") in new stack
        -- Goto (macro-outbound-callerid,s,6)
        -- Executing [s@macro-outbound-callerid:6] Set("SIP/913-00000003", "USEROUTC                                                                                                                                                              ID=") in new stack
        -- Executing [s@macro-outbound-callerid:7] Set("SIP/913-00000003", "EMERGENC                                                                                                                                                              YCID=") in new stack
        -- Executing [s@macro-outbound-callerid:8] Set("SIP/913-00000003", "TRUNKOUT                                                                                                                                                              CID=550808") in new stack
        -- Executing [s@macro-outbound-callerid:9] GotoIf("SIP/913-00000003", "1?tru                                                                                                                                                              nkcid") in new stack
        -- Goto (macro-outbound-callerid,s,12)
        -- Executing [s@macro-outbound-callerid:12] ExecIf("SIP/913-00000003", "1?Se                                                                                                                                                              t(CALLERID(all)=550808)") in new stack
        -- Executing [s@macro-outbound-callerid:13] ExecIf("SIP/913-00000003", "0?Se                                                                                                                                                              t(CALLERID(all)=)") in new stack
        -- Executing [s@macro-outbound-callerid:14] ExecIf("SIP/913-00000003", "1?Se                                                                                                                                                              t(CALLERID(all)=550808)") in new stack
        -- Executing [s@macro-outbound-callerid:15] ExecIf("SIP/913-00000003", "0?Se                                                                                                                                                              t(CALLERPRES()=prohib_passed_screen)") in new stack
        -- Executing [s@macro-dialout-trunk:12] GosubIf("SIP/913-00000003", "1?sub-f                                                                                                                                                              lp-1,s,1()") in new stack
        -- Executing [s@sub-flp-1:1] ExecIf("SIP/913-00000003", "1?Return()") in new                                                                                                                                                               stack
        -- Executing [s@macro-dialout-trunk:13] Set("SIP/913-00000003", "OUTNUM=3535                                                                                                                                                              68") in new stack
        -- Executing [s@macro-dialout-trunk:14] Set("SIP/913-00000003", "custom=SIP/                                                                                                                                                              LaRcom") in new stack
        -- Executing [s@macro-dialout-trunk:15] ExecIf("SIP/913-00000003", "0?Set(DI                                                                                                                                                              AL_TRUNK_OPTIONS=M(setmusic^default))") in new stack
        -- Executing [s@macro-dialout-trunk:16] ExecIf("SIP/913-00000003", "0?Set(DI                                                                                                                                                              AL_TRUNK_OPTIONS=M(confirm))") in new stack
        -- Executing [s@macro-dialout-trunk:17] Macro("SIP/913-00000003", "dialout-t                                                                                                                                                              runk-predial-hook,") in new stack
        -- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("SIP/913-00000                                                                                                                                                              003", "") in new stack
        -- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/913-00000003", "0?bypass                                                                                                                                                              ,1") in new stack
        -- Executing [s@macro-dialout-trunk:19] ExecIf("SIP/913-00000003", "1?Set(CO                                                                                                                                                              NNECTEDLINE(num,i)=353568)") in new stack
        -- Executing [s@macro-dialout-trunk:20] ExecIf("SIP/913-00000003", "1?Set(CO                                                                                                                                                              NNECTEDLINE(name,i)=CID:550808)") in new stack
        -- Executing [s@macro-dialout-trunk:21] GotoIf("SIP/913-00000003", "0?custom                                                                                                                                                              trunk") in new stack
        -- Executing [s@macro-dialout-trunk:22] Dial("SIP/913-00000003", "SIP/LaRcom                                                                                                                                                              /353568,300,") in new stack
      == Everyone is busy/congested at this time (1:0/0/1)
        -- Executing [s@macro-dialout-trunk:23] NoOp("SIP/913-00000003", "Dial faile                                                                                                                                                              d for some reason with DIALSTATUS = CHANUNAVAIL and HANGUPCAUSE = 20") in new st                                                                                                                                                              ack
        -- Executing [s@macro-dialout-trunk:24] Goto("SIP/913-00000003", "s-CHANUNAV                                                                                                                                                              AIL,1") in new stack
        -- Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)
        -- Executing [s-CHANUNAVAIL@macro-dialout-trunk:1] Set("SIP/913-00000003", "                                                                                                                                                              RC=20") in new stack
        -- Executing [s-CHANUNAVAIL@macro-dialout-trunk:2] Goto("SIP/913-00000003",                                                                                                                                                               "20,1") in new stack
        -- Goto (macro-dialout-trunk,20,1)
        -- Executing [20@macro-dialout-trunk:1] Goto("SIP/913-00000003", "continue,1                                                                                                                                                              ") in new stack
        -- Goto (macro-dialout-trunk,continue,1)
        -- Executing [continue@macro-dialout-trunk:1] GotoIf("SIP/913-00000003", "1?                                                                                                                                                              noreport") in new stack
        -- Goto (macro-dialout-trunk,continue,3)
        -- Executing [continue@macro-dialout-trunk:3] NoOp("SIP/913-00000003", "TRUN                                                                                                                                                              K Dial failed due to CHANUNAVAIL HANGUPCAUSE: 20 - failing through to other trun                                                                                                                                                              ks") in new stack
        -- Executing [continue@macro-dialout-trunk:4] Set("SIP/913-00000003", "CALLE                                                                                                                                                              RID(number)=913") in new stack
        -- Executing [353568@from-internal:7] Macro("SIP/913-00000003", "outisbusy,"                                                                                                                                                              ) in new stack
        -- Executing [s@macro-outisbusy:1] Progress("SIP/913-00000003", "") in new s                                                                                                                                                              tack
        -- Executing [s@macro-outisbusy:2] GotoIf("SIP/913-00000003", "0?emergency,1                                                                                                                                                              ") in new stack
        -- Executing [s@macro-outisbusy:3] GotoIf("SIP/913-00000003", "0?intracompan                                                                                                                                                              y,1") in new stack
        -- Executing [s@macro-outisbusy:4] Playback("SIP/913-00000003", "all-circuit                                                                                                                                                              s-busy-now&pls-try-call-later, noanswer") in new stack
        -- Executing [s@macro-outisbusy:5] Congestion("SIP/913-00000003", "20") in n                                                                                                                                                              ew stack
      == Spawn extension (macro-outisbusy, s, 5) exited non-zero on 'SIP/913-0000000                                                                                                                                                              3' in macro 'outisbusy'
      == Spawn extension (from-internal, 353568, 7) exited non-zero on 'SIP/913-0000                                                                                                                                                              0003'
        -- Executing [h@from-internal:1] Hangup("SIP/913-00000003", "") in new stack
      == Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/913-00000003'
    Retransmitting #1 (NAT) to 10.251.2.2:5069:
    OPTIONS sip:10.251.2.2 SIP/2.0
    Via: SIP/2.0/UDP 10.251.11.50:5060;branch=z9hG4bK53ed1307;rport
    Max-Forwards: 70
    From: "Unknown" <sip:Unknown@10.251.11.50>;tag=as77a5a34c
    To: <sip:10.251.2.2>
    Contact: <sip:Unknown@10.251.11.50:5060>
    Call-ID: 24a763bb5247ef0f07ccf8af623d5a50@10.251.11.50:5060
    CSeq: 102 OPTIONS
    User-Agent: FPBX-2.10.1(1.8.17.0)
    Date: Thu, 24 Nov 2016 02:01:18 GMT
    Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLIS                                                                                                                                                              H
    Supported: replaces, timer
    Content-Length: 0


    ---
    Retransmitting #2 (NAT) to 10.251.2.2:5069:
    OPTIONS sip:10.251.2.2 SIP/2.0
    Via: SIP/2.0/UDP 10.251.11.50:5060;branch=z9hG4bK53ed1307;rport
    Max-Forwards: 70
    From: "Unknown" <sip:Unknown@10.251.11.50>;tag=as77a5a34c
    To: <sip:10.251.2.2>
    Contact: <sip:Unknown@10.251.11.50:5060>
    Call-ID: 24a763bb5247ef0f07ccf8af623d5a50@10.251.11.50:5060
    CSeq: 102 OPTIONS
    User-Agent: FPBX-2.10.1(1.8.17.0)
    Date: Thu, 24 Nov 2016 02:01:18 GMT
    Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLIS                                                                                                                                                              H
    Supported: replaces, timer
    Content-Length: 0


    ---
    Retransmitting #3 (NAT) to 10.251.2.2:5069:
    OPTIONS sip:10.251.2.2 SIP/2.0
    Via: SIP/2.0/UDP 10.251.11.50:5060;branch=z9hG4bK53ed1307;rport
    Max-Forwards: 70
    From: "Unknown" <sip:Unknown@10.251.11.50>;tag=as77a5a34c
    To: <sip:10.251.2.2>
    Contact: <sip:Unknown@10.251.11.50:5060>
    Call-ID: 24a763bb5247ef0f07ccf8af623d5a50@10.251.11.50:5060
    CSeq: 102 OPTIONS
    User-Agent: FPBX-2.10.1(1.8.17.0)
    Date: Thu, 24 Nov 2016 02:01:18 GMT
    Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLIS                                                                                                                                                              H
    Supported: replaces, timer
    Content-Length: 0


    ---
        -- Got SIP response 503 "Service Unavailable" back from 195.226.208.25:5060
    Retransmitting #4 (NAT) to 10.251.2.2:5069:
    OPTIONS sip:10.251.2.2 SIP/2.0
    Via: SIP/2.0/UDP 10.251.11.50:5060;branch=z9hG4bK53ed1307;rport
    Max-Forwards: 70
    From: "Unknown" <sip:Unknown@10.251.11.50>;tag=as77a5a34c
    To: <sip:10.251.2.2>
    Contact: <sip:Unknown@10.251.11.50:5060>
    Call-ID: 24a763bb5247ef0f07ccf8af623d5a50@10.251.11.50:5060
    CSeq: 102 OPTIONS
    User-Agent: FPBX-2.10.1(1.8.17.0)
    Date: Thu, 24 Nov 2016 02:01:18 GMT
    Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLIS                                                                                                                                                              H
    Supported: replaces, timer
    Content-Length: 0


    ---
</spoiler>

Проект компании "АТС Дизайн"
Asterisk® и Digium® являются зарегистрированными торговыми марками компании Digium, Inc., США.
IP АТС Asterisk распространяется под лицензией GNU GPL.