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

Исходящая связь не работает

0

настройки транка:

type=peer
nat=yes
insecure=invite,port
qualify=3000
host=80.75.132.66
dtmfmode=rfc2833
directmedia=no
disallow=all
allow=alaw,ulaw,g729

Лог:

-- Executing [s@macro-dial:7] Dial("SIP/newTrunkYouMagic-00000028", "Local/8961XXXXXXXX@from-internal/n,20,trM(auto-blkvm)") in new stack
    -- Called Local/8961XXXXXXXX@from-internal/n
    -- Executing [8961XXXXXXXX@from-internal:1] Macro("Local/8961XXXXXXXX@from-internal-00000035;2", "user-callerid,SKIPTTL,") in new stack
    -- Executing [s@macro-user-callerid:1] Set("Local/8961XXXXXXXX@from-internal-00000035;2", "AMPUSER=78332XXXXXX") in new stack
    -- Executing [s@macro-user-callerid:2] GotoIf("Local/8961XXXXXXXX@from-internal-00000035;2", "1?report") in new stack
    -- Goto (macro-user-callerid,s,10)
    -- Executing [s@macro-user-callerid:10] GotoIf("Local/8961XXXXXXXX@from-internal-00000035;2", "1?continue") in new stack
    -- Goto (macro-user-callerid,s,19)
    -- Executing [s@macro-user-callerid:19] Set("Local/8961XXXXXXXX@from-internal-00000035;2", "CALLERID(number)=78332XXXXXX") in new stack
    -- Executing [s@macro-user-callerid:20] Set("Local/8961XXXXXXXX@from-internal-00000035;2", "CALLERID(name)=78332XXXXXX") in new stack
    -- Executing [s@macro-user-callerid:21] NoOp("Local/8961XXXXXXXX@from-internal-00000035;2", "Using CallerID "78332XXXXXX" <78332XXXXXX>") in new stack
    -- Executing [8961XXXXXXXX@from-internal:2] NoOp("Local/8961XXXXXXXX@from-internal-00000035;2", "Calling Out Route: outbound") in new stack
    -- Executing [8961XXXXXXXX@from-internal:3] Set("Local/8961XXXXXXXX@from-internal-00000035;2", "MOHCLASS=default") in new stack
    -- Executing [8961XXXXXXXX@from-internal:4] Set("Local/8961XXXXXXXX@from-internal-00000035;2", "_NODEST=") in new stack
    -- Executing [8961XXXXXXXX@from-internal:5] Macro("Local/8961XXXXXXXX@from-internal-00000035;2", "record-enable,78332XXXXXX,OUT,") in new stack
    -- Executing [s@macro-record-enable:1] GotoIf("Local/8961XXXXXXXX@from-internal-00000035;2", "1?check") in new stack
    -- Goto (macro-record-enable,s,4)
    -- Executing [s@macro-record-enable:4] ExecIf("Local/8961XXXXXXXX@from-internal-00000035;2", "0?MacroExit()") in new stack
    -- Executing [s@macro-record-enable:5] GotoIf("Local/8961XXXXXXXX@from-internal-00000035;2", "0?Group:OUT") in new stack
    -- Goto (macro-record-enable,s,15)
    -- Executing [s@macro-record-enable:15] GotoIf("Local/8961XXXXXXXX@from-internal-00000035;2", "0?IN") in new stack
    -- Executing [s@macro-record-enable:16] ExecIf("Local/8961XXXXXXXX@from-internal-00000035;2", "1?MacroExit()") in new stack
    -- Executing [8961XXXXXXXX@from-internal:6] Macro("Local/8961XXXXXXXX@from-internal-00000035;2", "dialout-trunk,3,+7961XXXXXXX,") in new stack
    -- Executing [s@macro-dialout-trunk:1] Set("Local/8961XXXXXXXX@from-internal-00000035;2", "DIAL_TRUNK=3") in new stack
    -- Executing [s@macro-dialout-trunk:2] GosubIf("Local/8961XXXXXXXX@from-internal-00000035;2", "0?sub-pincheck,s,1") in new stack
    -- Executing [s@macro-dialout-trunk:3] GotoIf("Local/8961XXXXXXXX@from-internal-00000035;2", "0?disabletrunk,1") in new stack
    -- Executing [s@macro-dialout-trunk:4] Set("Local/8961XXXXXXXX@from-internal-00000035;2", "DIAL_NUMBER=+7961XXXXXXX") in new stack
    -- Executing [s@macro-dialout-trunk:5] Set("Local/8961XXXXXXXX@from-internal-00000035;2", "DIAL_TRUNK_OPTIONS=tr") in new stack
    -- Executing [s@macro-dialout-trunk:6] Set("Local/8961XXXXXXXX@from-internal-00000035;2", "OUTBOUND_GROUP=OUT_3") in new stack
    -- Executing [s@macro-dialout-trunk:7] GotoIf("Local/8961XXXXXXXX@from-internal-00000035;2", "1?nomax") in new stack
    -- Goto (macro-dialout-trunk,s,9)
    -- Executing [s@macro-dialout-trunk:9] GotoIf("Local/8961XXXXXXXX@from-internal-00000035;2", "0?skipoutcid") in new stack
    -- Executing [s@macro-dialout-trunk:10] Set("Local/8961XXXXXXXX@from-internal-00000035;2", "DIAL_TRUNK_OPTIONS=") in new stack
    -- Executing [s@macro-dialout-trunk:11] Macro("Local/8961XXXXXXXX@from-internal-00000035;2", "outbound-callerid,3") in new stack
    -- Executing [s@macro-outbound-callerid:1] ExecIf("Local/8961XXXXXXXX@from-internal-00000035;2", "1?Set(CALLERPRES()=allowed_not_screened)") in new stack
    -- Executing [s@macro-outbound-callerid:2] ExecIf("Local/8961XXXXXXXX@from-internal-00000035;2", "1?Set(REALCALLERIDNUM=78332XXXXXX)") in new stack
    -- Executing [s@macro-outbound-callerid:3] GotoIf("Local/8961XXXXXXXX@from-internal-00000035;2", "0?normcid") in new stack
    -- Executing [s@macro-outbound-callerid:4] Set("Local/8961XXXXXXXX@from-internal-00000035;2", "USEROUTCID=78332XXXXXX") in new stack
    -- Executing [s@macro-outbound-callerid:5] GotoIf("Local/8961XXXXXXXX@from-internal-00000035;2", "1?bypass") in new stack
    -- Goto (macro-outbound-callerid,s,7)
    -- Executing [s@macro-outbound-callerid:7] Set("Local/8961XXXXXXXX@from-internal-00000035;2", "EMERGENCYCID=") in new stack
    -- Executing [s@macro-outbound-callerid:8] Set("Local/8961XXXXXXXX@from-internal-00000035;2", "TRUNKOUTCID=") in new stack
    -- Executing [s@macro-outbound-callerid:9] GotoIf("Local/8961XXXXXXXX@from-internal-00000035;2", "1?trunkcid") in new stack
    -- Goto (macro-outbound-callerid,s,12)
    -- Executing [s@macro-outbound-callerid:12] ExecIf("Local/8961XXXXXXXX@from-internal-00000035;2", "0?Set(CALLERID(all)=)") in new stack
    -- Executing [s@macro-outbound-callerid:13] ExecIf("Local/8961XXXXXXXX@from-internal-00000035;2", "1?Set(CALLERID(all)=78332XXXXXX)") in new stack
    -- Executing [s@macro-outbound-callerid:14] ExecIf("Local/8961XXXXXXXX@from-internal-00000035;2", "0?Set(CALLERID(all)=)") in new stack
    -- Executing [s@macro-outbound-callerid:15] ExecIf("Local/8961XXXXXXXX@from-internal-00000035;2", "0?Set(CALLERPRES()=prohib_passed_screen)") in new stack
    -- Executing [s@macro-dialout-trunk:12] GosubIf("Local/8961XXXXXXXX@from-internal-00000035;2", "0?sub-flp-3,s,1") in new stack
    -- Executing [s@macro-dialout-trunk:13] Set("Local/8961XXXXXXXX@from-internal-00000035;2", "OUTNUM=+7961XXXXXXX") in new stack
    -- Executing [s@macro-dialout-trunk:14] Set("Local/8961XXXXXXXX@from-internal-00000035;2", "custom=SIP/newTrunkYouMagic") in new stack
    -- Executing [s@macro-dialout-trunk:15] ExecIf("Local/8961XXXXXXXX@from-internal-00000035;2", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default))") in new stack
    -- Executing [s@macro-dialout-trunk:16] Macro("Local/8961XXXXXXXX@from-internal-00000035;2", "dialout-trunk-predial-hook,") in new stack
    -- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("Local/8961XXXXXXXX@from-internal-00000035;2", "") in new stack
    -- Executing [s@macro-dialout-trunk:17] GotoIf("Local/8961XXXXXXXX@from-internal-00000035;2", "0?bypass,1") in new stack
    -- Executing [s@macro-dialout-trunk:18] GotoIf("Local/8961XXXXXXXX@from-internal-00000035;2", "0?customtrunk") in new stack
    -- Executing [s@macro-dialout-trunk:19] Dial("Local/8961XXXXXXXX@from-internal-00000035;2", "SIP/newTrunkYouMagic/+7961XXXXXXX,300,") in new stack
  == Using SIP RTP TOS bits 184
  == Using SIP RTP CoS mark 5
    -- Called SIP/newTrunkYouMagic/+7961XXXXXXX
    -- SIP/newTrunkYouMagic-00000029 is circuit-busy
  == Everyone is busy/congested at this time (1:0/1/0)
    -- Executing [s@macro-dialout-trunk:20] NoOp("Local/8961XXXXXXXX@from-internal-00000035;2", "Dial failed for some reason with DIALSTATUS = CONGESTION and HANGUPCAUSE = 21") in new stack
    -- Executing [s@macro-dialout-trunk:21] Goto("Local/8961XXXXXXXX@from-internal-00000035;2", "s-CONGESTION,1") in new stack
    -- Goto (macro-dialout-trunk,s-CONGESTION,1)
    -- Executing [s-CONGESTION@macro-dialout-trunk:1] Set("Local/8961XXXXXXXX@from-internal-00000035;2", "RC=21") in new stack
    -- Executing [s-CONGESTION@macro-dialout-trunk:2] Goto("Local/8961XXXXXXXX@from-internal-00000035;2", "21,1") in new stack
    -- Goto (macro-dialout-trunk,21,1)
    -- Executing [21@macro-dialout-trunk:1] Goto("Local/8961XXXXXXXX@from-internal-00000035;2", "continue,1") in new stack
    -- Goto (macro-dialout-trunk,continue,1)
    -- Executing [continue@macro-dialout-trunk:1] GotoIf("Local/8961XXXXXXXX@from-internal-00000035;2", "1?noreport") in new stack
    -- Goto (macro-dialout-trunk,continue,3)
    -- Executing [continue@macro-dialout-trunk:3] NoOp("Local/8961XXXXXXXX@from-internal-00000035;2", "TRUNK Dial failed due to CONGESTION HANGUPCAUSE: 21 - failing through to other trunks") in new stack
    -- Executing [continue@macro-dialout-trunk:4] Set("Local/8961XXXXXXXX@from-internal-00000035;2", "CALLERID(number)=78332XXXXXX") in new stack
    -- Executing [8961XXXXXXXX@from-internal:7] Macro("Local/8961XXXXXXXX@from-internal-00000035;2", "outisbusy,") in new stack
    -- Executing [s@macro-outisbusy:1] Progress("Local/8961XXXXXXXX@from-internal-00000035;2", "") in new stack
    -- Executing [s@macro-outisbusy:2] GotoIf("Local/8961XXXXXXXX@from-internal-00000035;2", "0?emergency,1") in new stack
    -- Executing [s@macro-outisbusy:3] GotoIf("Local/8961XXXXXXXX@from-internal-00000035;2", "0?intracompany,1") in new stack
    -- Executing [s@macro-outisbusy:4] Playback("Local/8961XXXXXXXX@from-internal-00000035;2", "all-circuits-busy-now&pls-try-call-later, noanswer") in new stack
    -- <Local/8961XXXXXXXX@from-internal-00000035;2> Playing 'all-circuits-busy-now.gsm' (language 'en')
    -- Local/8961XXXXXXXX@from-internal-00000035;1 is making progress passing it to SIP/newTrunkYouMagic-00000028
    -- <Local/8961XXXXXXXX@from-internal-00000035;2> Playing 'pls-try-call-later.gsm' (language 'en')
    -- Executing [s@macro-outisbusy:5] Congestion("Local/8961XXXXXXXX@from-internal-00000035;2", "20") in new stack
    -- Local/8961XXXXXXXX@from-internal-00000035;1 is circuit-busy
  == Everyone is busy/congested at this time (1:0/1/0)
    -- Executing [s@macro-dial:8] Set("SIP/newTrunkYouMagic-00000028", "DIALSTATUS=CONGESTION") in new stack
    -- Executing [s@macro-dial:9] GosubIf("SIP/newTrunkYouMagic-00000028", "0?CONGESTION,1") in new stack
    -- Executing [600@ext-group:15] Set("SIP/newTrunkYouMagic-00000028", "RingGroupMethod=") in new stack
    -- Executing [600@ext-group:16] GotoIf("SIP/newTrunkYouMagic-00000028", "0?nodest") in new stack
    -- Executing [600@ext-group:17] Set("SIP/newTrunkYouMagic-00000028", "__NODEST=") in new stack
    -- Executing [600@ext-group:18] NoOp("SIP/newTrunkYouMagic-00000028", "Deleting: BLKVM/600/SIP/newTrunkYouMagic-00000028 TRUE") in new stack
    -- Executing [600@ext-group:19] Goto("SIP/newTrunkYouMagic-00000028", "app-blackhole,hangup,1") in new stack
    -- Goto (app-blackhole,hangup,1)
    -- Executing [hangup@app-blackhole:1] NoOp("SIP/newTrunkYouMagic-00000028", "Blackhole Dest: Hangup") in new stack
    -- Executing [hangup@app-blackhole:2] Hangup("SIP/newTrunkYouMagic-00000028", "") in new stack
  == Spawn extension (app-blackhole, hangup, 2) exited non-zero on 'SIP/newTrunkYouMagic-00000028'
  == Spawn extension (macro-outisbusy, s, 5) exited non-zero on 'Local/8961XXXXXXXX@from-internal-00000035;2' in macro 'outisbusy'
  == Spawn extension (from-internal, 8961XXXXXXXX, 7) exited non-zero on 'Local/8961XXXXXXXX@from-internal-00000035;2'
    -- Executing [h@from-internal:1] Macro("Local/8961XXXXXXXX@from-internal-00000035;2", "hangupcall") in new stack
    -- Executing [s@macro-hangupcall:1] GotoIf("Local/8961XXXXXXXX@from-internal-00000035;2", "1?endmixmoncheck") in new stack
    -- Goto (macro-hangupcall,s,9)
    -- Executing [s@macro-hangupcall:9] NoOp("Local/8961XXXXXXXX@from-internal-00000035;2", "End of MIXMON check") in new stack
    -- Executing [s@macro-hangupcall:10] GotoIf("Local/8961XXXXXXXX@from-internal-00000035;2", "1?nomeetmemon") in new stack
    -- Goto (macro-hangupcall,s,28)
    -- Executing [s@macro-hangupcall:28] NoOp("Local/8961XXXXXXXX@from-internal-00000035;2", "End of MEETME check") in new stack
    -- Executing [s@macro-hangupcall:29] GotoIf("Local/8961XXXXXXXX@from-internal-00000035;2", "1?noautomon") in new stack
    -- Goto (macro-hangupcall,s,34)
    -- Executing [s@macro-hangupcall:34] NoOp("Local/8961XXXXXXXX@from-internal-00000035;2", "TOUCH_MONITOR_OUTPUT=") in new stack
    -- Executing [s@macro-hangupcall:35] GotoIf("Local/8961XXXXXXXX@from-internal-00000035;2", "1?noautomon2") in new stack
    -- Goto (macro-hangupcall,s,41)
    -- Executing [s@macro-hangupcall:41] NoOp("Local/8961XXXXXXXX@from-internal-00000035;2", "MONITOR_FILENAME=") in new stack
    -- Executing [s@macro-hangupcall:42] GotoIf("Local/8961XXXXXXXX@from-internal-00000035;2", "1?skiprg") in new stack
    -- Goto (macro-hangupcall,s,45)
    -- Executing [s@macro-hangupcall:45] GotoIf("Local/8961XXXXXXXX@from-internal-00000035;2", "1?skipblkvm") in new stack
    -- Goto (macro-hangupcall,s,48)
    -- Executing [s@macro-hangupcall:48] GotoIf("Local/8961XXXXXXXX@from-internal-00000035;2", "1?theend") in new stack
    -- Goto (macro-hangupcall,s,50)
    -- Executing [s@macro-hangupcall:50] AGI("Local/8961XXXXXXXX@from-internal-00000035;2", "hangup.agi") in new stack

p.s. входящий вызов перенаправляется на группу 600, в которой и прописан номер 8961XXXXXXX#

удалить закрыть спам изменить тег редактировать

спросил 2014-10-07 12:44:50 +0400

Zaak Gravatar Zaak
1 5 1

Comments

Что говорит техподдержка провайдера?

zzuz ( 2014-10-07 14:08:14 +0400 )редактировать

техподдержка пока что говорят что 603 ошибку получают и всё.

Ответ - Zavr2008: 1: в Trunk я задавал Outbound Caller ID - мой номер который выдал мне провайдер (7499649XXXX), и да там появлялись строки Set(CALLERID(num)=7499649XXXX) - результат тот же.

2: В мануале по настройке у провайдера указано, что вызывать нужно только через +7, либо 8, на Outbound у них настройки шаблона также приведены (все к +7 сводится) - их я у себя применил

3: номер реальный и полный, но тестовые 300 минут - бесплатно, дальше просто платить нужно будет, и оформлять договор

Zaak ( 2014-10-07 18:53:08 +0400 )редактировать

603 - это Decline . К провайдеру.

zzuz ( 2014-10-07 21:01:48 +0400 )редактировать

Смею предположить , что у Вас NAT и сервер с внутреннем адресом?

zzuz ( 2014-10-07 21:03:11 +0400 )редактировать

Да, Вы верно предположили, и проблему решил, оказалось в настройках NAT был один очень старый косяк, теперь все корректно.

Zaak ( 2014-10-08 13:47:55 +0400 )редактировать

1 Ответ

0

Трындец.

  1. Кто за Вас будет правильно подставлять CallerID?

    Делать это нужно либо в самом транке, либо в маршрутах Вашей GUi-сборки. После этого увидите в портянке строки вида Set(CALLERID(num)=XXXXXXXXX)

  2. Какого Вы вызываете "SIP/newTrunkYouMagic/+7961XXXXXXX'?

    Вам же в тех форме четко указано: 7961XXXXXX без всяких '+'.

  3. У МТТ стоит узнать - они Вам дали тестовый номер или полный? Если тестовый, то и звонить нужно не на сотовые)

Для Alvis есть заметка на нашем wiki, тыц

ссылка удалить спам редактировать

ответил 2014-10-07 15:21:22 +0400

Zavr2008 Gravatar Zavr2008 flag of Russian Federation
2886 11 9 40
http://mh.otx.ru/

обновил 2014-10-07 15:23:33 +0400

Ваш ответ

Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!
[скрыть предварительный просмотр]

Закладки и информация

Добавить закладку

подписаться на rss ленту новостей

Статистика

Задан: 2014-10-07 12:44:50 +0400

Просмотрен: 863 раз

Обновлен: Oct 07 '14

Похожие вопросы:

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