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

goip4 Настройка работы с freepbx

0

Делаю настройку шлюза и транка, много раз пробывал по разным мануалам, но эффект один, подскажите в чем может быть дело вот лог при звонке

          == Using SIP RTP TOS bits 184
      == Using SIP RTP CoS mark 5
        -- Executing [89507852314@from-internal:1] Macro("SIP/100-00000030", "user-callerid,SKIPTTL,") in new stack
        -- Executing [s@macro-user-callerid:1] Set("SIP/100-00000030", "AMPUSER=100") in new stack
        -- Executing [s@mac

ro-user-callerid:2] GotoIf("SIP/100-00000030", "0?report") in new stack
    -- Executing [s@macro-user-callerid:3] ExecIf("SIP/100-00000030", "1?Set(REALCALLERIDNUM=100)") in new stack
    -- Executing [s@macro-user-callerid:4] Set("SIP/100-00000030", "AMPUSER=100") in new stack
    -- Executing [s@macro-user-callerid:5] Set("SIP/100-00000030", "AMPUSERCIDNAME=100") in new stack
    -- Executing [s@macro-user-callerid:6] GotoIf("SIP/100-00000030", "0?report") in new stack
    -- Executing [s@macro-user-callerid:7] Set("SIP/100-00000030", "AMPUSERCID=100") in new stack
    -- Executing [s@macro-user-callerid:8] Set("SIP/100-00000030", "CALLERID(all)="100" <100>") in new stack
    -- Executing [s@macro-user-callerid:9] ExecIf("SIP/100-00000030", "0?Set(CHANNEL(language)=)") in new stack
    -- Executing [s@macro-user-callerid:10] GotoIf("SIP/100-00000030", "1?continue") in new stack
    -- Goto (macro-user-callerid,s,19)
    -- Executing [s@macro-user-callerid:19] Set("SIP/100-00000030", "CALLERID(number)=100") in new stack
    -- Executing [s@macro-user-callerid:20] Set("SIP/100-00000030", "CALLERID(name)=100") in new stack
    -- Executing [s@macro-user-callerid:21] NoOp("SIP/100-00000030", "Using CallerID "100" <100>") in new stack
    -- Executing [89507852314@from-internal:2] NoOp("SIP/100-00000030", "Calling Out Route: test") in new stack
    -- Executing [89507852314@from-internal:3] Set("SIP/100-00000030", "MOHCLASS=default") in new stack
    -- Executing [89507852314@from-internal:4] Set("SIP/100-00000030", "_NODEST=") in new stack
    -- Executing [89507852314@from-internal:5] Macro("SIP/100-00000030", "record-enable,100,OUT,") in new stack
    -- Executing [s@macro-record-enable:1] GotoIf("SIP/100-00000030", "1?check") in new stack
    -- Goto (macro-record-enable,s,4)
    -- Executing [s@macro-record-enable:4] ExecIf("SIP/100-00000030", "0?MacroExit()") in new stack
    -- Executing [s@macro-record-enable:5] GotoIf("SIP/100-00000030", "0?Group:OUT") in new stack
    -- Goto (macro-record-enable,s,15)
    -- Executing [s@macro-record-enable:15] GotoIf("SIP/100-00000030", "0?IN") in new stack
    -- Executing [s@macro-record-enable:16] ExecIf("SIP/100-00000030", "1?MacroExit()") in new stack
    -- Executing [89507852314@from-internal:6] Macro("SIP/100-00000030", "dialout-trunk,1,89507852314,") in new stack
    -- Executing [s@macro-dialout-trunk:1] Set("SIP/100-00000030", "DIAL_TRUNK=1") in new stack
    -- Executing [s@macro-dialout-trunk:2] GosubIf("SIP/100-00000030", "0?sub-pincheck,s,1") in new stack
    -- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/100-00000030", "0?disabletrunk,1") in new stack
    -- Executing [s@macro-dialout-trunk:4] Set("SIP/100-00000030", "DIAL_NUMBER=89507852314") in new stack
    -- Executing [s@macro-dialout-trunk:5] Set("SIP/100-00000030", "DIAL_TRUNK_OPTIONS=tr") in new stack
    -- Executing [s@macro-dialout-trunk:6] Set("SIP/100-00000030", "OUTBOUND_GROUP=OUT_1") in new stack
    -- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/100-00000030", "1?nomax") in new stack
    -- Goto (macro-dialout-trunk,s,9)
    -- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/100-00000030", "0?skipoutcid") in new stack
    -- Executing [s@macro-dialout-trunk:10] Set("SIP/100-00000030", "DIAL_TRUNK_OPTIONS=") in new stack
    -- Executing [s@macro-dialout-trunk:11] Macro("SIP/100-00000030", "outbound-callerid,1") in new stack
    -- Executing [s@macro-outbound-callerid:1] ExecIf("SIP/100-00000030", "0?Set(CALLERPRES()=)") in new stack
    -- Executing [s@macro-outbound-callerid:2] ExecIf("SIP/100-00000030", "0?Set(REALCALLERIDNUM=100)") in new stack
    -- Executing [s@macro-outbound-callerid:3] GotoIf("SIP/100-00000030", "1?normcid") in new stack
    -- Goto (macro-outbound-callerid,s,6)
    -- Executing [s@macro-outbound-callerid:6] Set("SIP/100-00000030", "USEROUTCID=100") in new stack
    -- Executing [s@macro-outbound-callerid:7] Set("SIP/100-00000030", "EMERGENCYCID=") in new stack
    -- Executing [s@macro-outbound-callerid:8] Set("SIP/100-00000030", "TRUNKOUTCID=") in new stack
    -- Executing [s@macro-outbound-callerid:9] GotoIf("SIP/100-00000030", "1?trunkcid") in new stack
    -- Goto (macro-outbound-callerid,s,12)
    -- Executing [s@macro-outbound-callerid:12] ExecIf("SIP/100-00000030", "0?Set(CALLERID(all)=)") in new stack
    -- Executing [s@macro-outbound-callerid:13] ExecIf("SIP/100-00000030", "1?Set(CALLERID(all)=100)") in new stack
    -- Executing [s@macro-outbound-callerid:14] ExecIf("SIP/100-00000030", "0?Set(CALLERID(all)=)") in new stack
    -- Executing [s@macro-outbound-callerid:15] ExecIf("SIP/100-00000030", "0?Set(CALLERPRES()=prohib_passed_screen)") in new stack
    -- Executing [s@macro-dialout-trunk:12] GosubIf("SIP/100-00000030", "0?sub-flp-1,s,1") in new stack
    -- Executing [s@macro-dialout-trunk:13] Set("SIP/100-00000030", "OUTNUM=*189507852314") in new stack
    -- Executing [s@macro-dialout-trunk:14] Set("SIP/100-00000030", "custom=SIP/gsm") in new stack
    -- Executing [s@macro-dialout-trunk:15] ExecIf("SIP/100-00000030", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default))") in new stack
    -- Executing [s@macro-dialout-trunk:16] Macro("SIP/100-00000030", "dialout-trunk-predial-hook,") in new stack
    -- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("SIP/100-00000030", "") in new stack
    -- Executing [s@macro-dialout-trunk:17] GotoIf("SIP/100-00000030", "0?bypass,1") in new stack
    -- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/100-00000030", "0?customtrunk") in new stack
    -- Executing [s@macro-dialout-trunk:19] Dial("SIP/100-00000030", "SIP/gsm/*189507852314,300,") in new stack
  == Using SIP RTP TOS bits 184
  == Using SIP RTP CoS mark 5
    -- Called SIP/gsm/*189507852314
  == Everyone is busy/congested at this time (1:0/0/1)
    -- Executing [s@macro-dialout-trunk:20] NoOp("SIP/100-00000030", "Dial failed for some reason with DIALSTATUS = CHANUNAVAIL and HANGUPCAUSE = 1") in new stack
    -- Executing [s@macro-dialout-trunk:21] Goto("SIP/100-00000030", "s-CHANUNAVAIL,1") in new stack
    -- Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)
    -- Executing [s-CHANUNAVAIL@macro-dialout-trunk:1] Set("SIP/100-00000030", "RC=1") in new stack
    -- Executing [s-CHANUNAVAIL@macro-dialout-trunk:2] Goto("SIP/100-00000030", "1,1") in new stack
    -- Goto (macro-dialout-trunk,1,1)
    -- Executing [1@macro-dialout-trunk:1] Goto("SIP/100-00000030", "continue,1") in new stack
    -- Goto (macro-dialout-trunk,continue,1)
    -- Executing [continue@macro-dialout-trunk:1] GotoIf("SIP/100-00000030", "1?noreport") in new stack
    -- Goto (macro-dialout-trunk,continue,3)
    -- Executing [continue@macro-dialout-trunk:3] NoOp("SIP/100-00000030", "TRUNK Dial failed due to CHANUNAVAIL HANGUPCAUSE: 1 - failing through to other trunks") in new stack
    -- Executing [continue@macro-dialout-trunk:4] Set("SIP/100-00000030", "CALLERID(number)=100") in new stack
    -- Executing [89507852314@from-internal:7] Macro("SIP/100-00000030", "outisbusy,") in new stack
    -- Executing [s@macro-outisbusy:1] Progress("SIP/100-00000030", "") in new stack
    -- Executing [s@macro-outisbusy:2] GotoIf("SIP/100-00000030", "0?emergency,1") in new stack
    -- Executing [s@macro-outisbusy:3] GotoIf("SIP/100-00000030", "0?intracompany,1") in new stack
    -- Executing [s@macro-outisbusy:4] Playback("SIP/100-00000030", "all-circuits-busy-now&pls-try-call-later, noanswer") in new stack
    -- <SIP/100-00000030> Playing 'all-circuits-busy-now.gsm' (language 'en')
    -- <SIP/100-00000030> Playing 'pls-try-call-later.gsm' (language 'en')
    -- Executing [s@macro-outisbusy:5] Congestion("SIP/100-00000030", "20") in new stack
  == Spawn extension (macro-outisbusy, s, 5) exited non-zero on 'SIP/100-00000030' in macro 'outisbusy'
  == Spawn extension (from-internal, 89507852314, 7) exited non-zero on 'SIP/100-00000030'
    -- Executing [h@from-internal:1] Macro("SIP/100-00000030", "hangupcall") in new stack
    -- Executing [s@macro-hangupcall:1] GotoIf("SIP/100-00000030", "1?endmixmoncheck") in new stack
    -- Goto (macro-hangupcall,s,9)
    -- Executing [s@macro-hangupcall:9] NoOp("SIP/100-00000030", "End of MIXMON check") in new stack
    -- Executing [s@macro-hangupcall:10] GotoIf("SIP/100-00000030", "1?nomeetmemon") in new stack
    -- Goto (macro-hangupcall,s,28)
    -- Executing [s@macro-hangupcall:28] NoOp("SIP/100-00000030", "End of MEETME check") in new stack
    -- Executing [s@macro-hangupcall:29] GotoIf("SIP/100-00000030", "1?noautomon") in new stack
    -- Goto (macro-hangupcall,s,34)
    -- Executing [s@macro-hangupcall:34] NoOp("SIP/100-00000030", "TOUCH_MONITOR_OUTPUT=") in new stack
    -- Executing [s@macro-hangupcall:35] GotoIf("SIP/100-00000030", "1?noautomon2") in new stack
    -- Goto (macro-hangupcall,s,41)
    -- Executing [s@macro-hangupcall:41] NoOp("SIP/100-00000030", "MONITOR_FILENAME=") in new stack
    -- Executing [s@macro-hangupcall:42] GotoIf("SIP/100-00000030", "1?skiprg") in new stack
    -- Goto (macro-hangupcall,s,45)
    -- Executing [s@macro-hangupcall:45] GotoIf("SIP/100-00000030", "1?skipblkvm") in new stack
    -- Goto (macro-hangupcall,s,48)
    -- Executing [s@macro-hangupcall:48] GotoIf("SIP/100-00000030", "1?theend") in new stack
    -- Goto (macro-hangupcall,s,50)
    -- Executing [s@macro-hangupcall:50] AGI("SIP/100-00000030", "hangup.agi") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/hangup.agi
    -- <SIP/100-00000030>AGI Script hangup.agi completed, returning 0
    -- Executing [s@macro-hangupcall:51] Hangup("SIP/100-00000030", "") in new stack
  == Spawn extension (macro-hangupcall, s, 51) exited non-zero on 'SIP/100-00000030' in macro 'hangupcall'
  == Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/100-00000030'

Выкладываю скриншоты настройки транка image description

Настройки шлюза

image description image description

Логи звонка с первой симки, на скриншотах 4, но первая настроена по аналогии

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

спросил 2013-12-19 17:25:23 +0400

Barssoft Gravatar Barssoft
140 18 4 11

Comments

1

dialplan на шлюзе 4:-*4 , Вы отправляете *189507852314 . Читайте дальше мануал.

zzuz ( 2013-12-19 18:02:15 +0400 )редактировать

Блин написал же, что все симки по аналогии настроены, и для первой симки диаплан 1:-*1 До конца не пробовали дочитать?

Barssoft ( 2013-12-20 05:29:24 +0400 )редактировать

"Логи звонка с первой симки, на скриншотах 4, но первая настроена по аналогии" - это не говорит о том , что диаплан на какой-то линии как-то настроен. Это можно трактовать как угодно. Вот если Вы нам еще раскажите , что означает диаплан 1:-*1 будет вообще замечательно.

zzuz ( 2013-12-20 10:12:02 +0400 )редактировать

2 Ответа

0

Неправильно:

1:-*1

Правильно:

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

ответил 2013-12-21 13:09:07 +0400

Olpag Gravatar Olpag
2024 3 6 30

Comments

Ок проверю будет ли работать

Barssoft ( 2013-12-21 13:37:42 +0400 )редактировать

Не работает, ситуация такая же

Barssoft ( 2013-12-23 12:29:24 +0400 )редактировать

нет под рукой GOIP, чтобы проверить... должно работать.... попробуй префикс без звездочек, например :

1111:-1111

соответственно и в настройках транка указать префикс выхода на линию 1111

Olpag ( 2013-12-23 20:45:21 +0400 )редактировать

Решился вопрос, прошил шлюз на другую прошивку и все заработало, исходящая связь работает нормально

Barssoft ( 2013-12-25 20:28:04 +0400 )редактировать
0

Ошибка в диалплане.

http://www.voip-shop.ru/manual/GoIP4_UserManual.pdf

3.9 Dial Plan

Еще раз внимательно перечитай! :-)

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

ответил 2013-12-21 07:47:02 +0400

bolshoy_plohish Gravatar bolshoy_plohish
1388 25 20 38

Comments

:-*1 написал так, но все равно не работает, я думаю дело в прошивке, такое ощущение что тут просто h323

Barssoft ( 2013-12-21 10:55:22 +0400 )редактировать

:-D

Читай еще раз!

bolshoy_plohish ( 2013-12-21 12:15:31 +0400 )редактировать

Вот это тебе будет полезно

telnet mode for customer to view internal debug messages.

Telnet Login ID = info

Password: gsm1 / gsm2 / gsm3 / gsm4/ gsm5 / gsm6 / gsm 7 / gsm8/ gsmall / gsmsip / gsmclose / sip

Remarks:

gsm1 - display the debug messages for GSM channel 1 only

gsm2 - display the debug messages for GSM channel 2 only

gsm3 - display the debug messages for GSM channel 3 only

gsm4 - display the debug messages for GSM channel 4 only

gsm5 - display the debug messages for GSM channel 5 only

gsm6 - display the debug messages for GSM channel 6 only

gsm7 - display the debug messages for GSM channel 7 only

gsm8 - display the debug messages for GSM channel 8 only

gsmall - display the debug messages for all GSM channels.

gsmsip - display the debug messages for all GSM channels and SIP signaling.

gsmclose - close the debug messages for all GSM channels.

sip - display the debug messages for SIP signaling.

bolshoy_plohish ( 2013-12-21 15:41:59 +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 ленту новостей

Статистика

Задан: 2013-12-19 17:25:23 +0400

Просмотрен: 6,188 раз

Обновлен: Dec 21 '13

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

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