Чат  ::   FAQ  ::   Поиск  ::   Регистрация  ::   Вход

Monast (meetme rooms). Не собирается конференция.

WEB GUI и не только WEB

Модераторы: stas2k, april22

Monast (meetme rooms). Не собирается конференция.

Сообщение oddity » 15 ноя 2018, 13:52

Добрый день! Может кто сталкивался в монасте с проблемой собрать конференцию с разных астеров...

Суть проблемы:
Имеется 2 сервера астериск, между ними сип-транк и звонки ходят без проблем. Но конференция именно через монаст собирается только в пределах одного сервера. Если в окне "Invite Numbers to MeetMe"
снимок1.jpeg
снимок1.jpeg (10.53 KIB) Просмотров: 651
указывать телефонный номер другого сервера то вызов (invite) не доходит.

В логах пишет следующее:
[Показать] Спойлер:
-- Executing [2001@from-pstn:1] Set("Local/2001@from-pstn-0000000f;2", "__FROM_DID=2001") in new stack
-- Executing [2001@from-pstn:2] NoOp("Local/2001@from-pstn-0000000f;2", "Received an unknown call with DID set to 2001") in new stack
-- Executing [2001@from-pstn:3] Goto("Local/2001@from-pstn-0000000f;2", "s,a2") in new stack
-- Goto (from-pstn,s,2)
-- Executing [s@from-pstn:2] Answer("Local/2001@from-pstn-0000000f;2", "") in new stack
-- Created MeetMe conference 1023 for conference 'Monast-1542275244'
-- Executing [s@from-pstn:3] Wait("Local/2001@from-pstn-0000000f;2", "2") in new stack
-- <Local/2001@from-pstn-0000000f;1> Playing 'conf-onlyperson.slin' (language 'ru')
-- Executing [s@from-pstn:4] Playback("Local/2001@from-pstn-0000000f;2", "ss-noservice") in new stack
-- <Local/2001@from-pstn-0000000f;2> Playing 'ss-noservice.slin' (language 'ru')
-- Executing [s@from-pstn:5] SayAlpha("Local/2001@from-pstn-0000000f;2", "2001") in new stack
-- <Local/2001@from-pstn-0000000f;2> Playing 'digits/2.slin' (language 'ru')
-- <Local/2001@from-pstn-0000000f;2> Playing 'digits/0.slin' (language 'ru')
-- <Local/2001@from-pstn-0000000f;2> Playing 'digits/0.slin' (language 'ru')
-- <Local/2001@from-pstn-0000000f;2> Playing 'digits/1.slin' (language 'ru')
-- Executing [s@from-pstn:6] Hangup("Local/2001@from-pstn-0000000f;2", "") in new stack
== Spawn extension (from-pstn, s, 6) exited non-zero on 'Local/2001@from-pstn-0000000f;2'
-- Executing [h@from-pstn:1] Macro("Local/2001@from-pstn-0000000f;2", "hangupcall,") in new stack
-- Executing [s@macro-hangupcall:1] GotoIf("Local/2001@from-pstn-0000000f;2", "1?theend") in new stack
-- Goto (macro-hangupcall,s,3)
-- Executing [s@macro-hangupcall:3] ExecIf("Local/2001@from-pstn-0000000f;2", "0?Set(CDR(recordingfile)=)") in new stack
-- Executing [s@macro-hangupcall:4] Hangup("Local/2001@from-pstn-0000000f;2", "") in new stack
== Spawn extension (macro-hangupcall, s, 4) exited non-zero on 'Local/2001@from-pstn-0000000f;2' in macro 'hangupcall'
== Spawn extension (from-pstn, h, 1) exited non-zero on 'Local/2001@from-pstn-0000000f;2'
-- Hungup 'DAHDI/pseudo-2008414673'


Буду весьма признателен, кто подскажет в какую сторону копать. Спасибо!
oddity
 
Сообщений: 13
Зарегистрирован: 05 сен 2016, 15:40

Re: Monast (meetme rooms). Не собирается конференция.

Сообщение ded » 15 ноя 2018, 14:19

2001@from-pstn - это вы как-бы не с той стороны пришли, не в тот контекст попали.

Идеалогия примерно такая же, как в Firewall: есть две принципиально несмешиваемые стороны - внешняя и внутренняя (WAN & LAN).

Для внешнего мира в freePBX определены контексты from-trunk, from-pstn с инклюдами, оттуда все звонки разруливаются тогда через Inbound routes по т.н. DIDs - (условно) городским, внешним номерам. Внутренние же номера живут в контексте ext-local, а если со всеми apps - то from-internal.
Так что если хотите с другого астериска звонить на внутренний номер (конференции, или пользователя) 2001, то транк надо втыкать в контекст from-internal и тогда вызывать 2001@from-internal.

А вы принимаете его в from-pstn, тогда надо набирать их городской номер вместо 2001 типа
+74951234567@from-pstn
ded
 
Сообщений: 13568
Зарегистрирован: 26 авг 2010, 19:00

Re: Monast (meetme rooms). Не собирается конференция.

Сообщение oddity » 15 ноя 2018, 14:57

Пробовал через кастомный контекст и сейчас через from-internal, результат такой же. Но в логах пишет другое:
[2018-11-15 13:44:11] NOTICE[2285][C-00000020]: chan_sip.c:23011 handle_response_invite: Failed to authenticate on INVITE to '"MonAst Invited" <sip:2001@XX.XXX.XX.XXX>;tag=as1016772a'


Полный лог:
[Показать] Спойлер:
-- Executing [2001@from-internal:1] Macro("Local/2001@from-internal-00000012;2", "user-callerid,LIMIT,EXTERNAL,") in new stack
-- Executing [s@macro-user-callerid:1] Set("Local/2001@from-internal-00000012;2", "TOUCH_MONITOR=1542278651.62") in new stack
-- Executing [s@macro-user-callerid:2] Set("Local/2001@from-internal-00000012;2", "AMPUSER=2001") in new stack
-- Executing [s@macro-user-callerid:3] GotoIf("Local/2001@from-internal-00000012;2", "0?report") in new stack
-- Executing [s@macro-user-callerid:4] ExecIf("Local/2001@from-internal-00000012;2", "1?Set(REALCALLERIDNUM=2001)") in new stack
-- Executing [s@macro-user-callerid:5] Set("Local/2001@from-internal-00000012;2", "AMPUSER=") in new stack
-- Executing [s@macro-user-callerid:6] GotoIf("Local/2001@from-internal-00000012;2", "0?limit") in new stack
-- Executing [s@macro-user-callerid:7] Set("Local/2001@from-internal-00000012;2", "AMPUSERCIDNAME=") in new stack
-- Executing [s@macro-user-callerid:8] GotoIf("Local/2001@from-internal-00000012;2", "1?report") in new stack
-- Goto (macro-user-callerid,s,16)
-- Executing [s@macro-user-callerid:16] GotoIf("Local/2001@from-internal-00000012;2", "1?continue") in new stack
-- Goto (macro-user-callerid,s,30)
-- Executing [s@macro-user-callerid:30] Set("Local/2001@from-internal-00000012;2", "CALLERID(number)=2001") in new stack
-- Executing [s@macro-user-callerid:31] Set("Local/2001@from-internal-00000012;2", "CALLERID(name)=MonAst Invited") in new stack
-- Executing [s@macro-user-callerid:32] Set("Local/2001@from-internal-00000012;2", "CDR(cnum)=2001") in new stack
-- Executing [s@macro-user-callerid:33] Set("Local/2001@from-internal-00000012;2", "CDR(cnam)=MonAst Invited") in new stack
-- Executing [s@macro-user-callerid:34] Set("Local/2001@from-internal-00000012;2", "CHANNEL(language)=ru") in new stack
-- Executing [2001@from-internal:2] ExecIf("Local/2001@from-internal-00000012;2", "0 ?Set(CDR(accountcode)=)") in new stack
-- Executing [2001@from-internal:3] Set("Local/2001@from-internal-00000012;2", "MOHCLASS=default") in new stack
-- Executing [2001@from-internal:4] Set("Local/2001@from-internal-00000012;2", "_NODEST=") in new stack
-- Executing [2001@from-internal:5] Gosub("Local/2001@from-internal-00000012;2", "sub-record-check,s,1(out,2001,)") in new stack
-- Executing [s@sub-record-check:1] Set("Local/2001@from-internal-00000012;2", "REC_POLICY_MODE_SAVE=") in new stack
-- Executing [s@sub-record-check:2] GotoIf("Local/2001@from-internal-00000012;2", "1?check") in new stack
-- Goto (sub-record-check,s,7)
-- Executing [s@sub-record-check:7] Set("Local/2001@from-internal-00000012;2", "__MON_FMT=wav") in new stack
-- Executing [s@sub-record-check:8] GotoIf("Local/2001@from-internal-00000012;2", "1?next") in new stack
-- Goto (sub-record-check,s,11)
-- Executing [s@sub-record-check:11] ExecIf("Local/2001@from-internal-00000012;2", "0?Return()") in new stack
-- Executing [s@sub-record-check:12] ExecIf("Local/2001@from-internal-00000012;2", "0?Set(__REC_POLICY_MODE=)") in new stack
-- Executing [s@sub-record-check:13] GotoIf("Local/2001@from-internal-00000012;2", "0?out,1") in new stack
-- Executing [s@sub-record-check:14] Set("Local/2001@from-internal-00000012;2", "__REC_STATUS=INITIALIZED") in new stack
-- Executing [s@sub-record-check:15] Set("Local/2001@from-internal-00000012;2", "NOW=1542278651") in new stack
-- Executing [s@sub-record-check:16] Set("Local/2001@from-internal-00000012;2", "__DAY=15") in new stack
-- Executing [s@sub-record-check:17] Set("Local/2001@from-internal-00000012;2", "__MONTH=11") in new stack
-- Executing [s@sub-record-check:18] Set("Local/2001@from-internal-00000012;2", "__YEAR=2018") in new stack
-- Executing [s@sub-record-check:19] Set("Local/2001@from-internal-00000012;2", "__TIMESTR=20181115-134411") in new stack
-- Executing [s@sub-record-check:20] Set("Local/2001@from-internal-00000012;2", "__FROMEXTEN=2001") in new stack
-- Executing [s@sub-record-check:21] Set("Local/2001@from-internal-00000012;2", "__CALLFILENAME=out-2001-2001-20181115-134411-1542278651.62") in new stack
-- Executing [s@sub-record-check:22] Goto("Local/2001@from-internal-00000012;2", "out,1") in new stack
-- Goto (sub-record-check,out,1)
-- Executing [out@sub-record-check:1] ExecIf("Local/2001@from-internal-00000012;2", "1?Set(__REC_POLICY_MODE=)") in new stack
-- Executing [out@sub-record-check:2] GosubIf("Local/2001@from-internal-00000012;2", "0?record,1(exten,2001,2001)") in new stack
-- Executing [out@sub-record-check:3] Return("Local/2001@from-internal-00000012;2", "") in new stack
-- Executing [2001@from-internal:6] Macro("Local/2001@from-internal-00000012;2", "dialout-trunk,2,2001,,off") in new stack
-- Executing [s@macro-dialout-trunk:1] Set("Local/2001@from-internal-00000012;2", "DIAL_TRUNK=2") in new stack
-- Executing [s@macro-dialout-trunk:2] GosubIf("Local/2001@from-internal-00000012;2", "0?sub-pincheck,s,1()") in new stack
-- Executing [s@macro-dialout-trunk:3] GotoIf("Local/2001@from-internal-00000012;2", "0?disabletrunk,1") in new stack
-- Executing [s@macro-dialout-trunk:4] Set("Local/2001@from-internal-00000012;2", "DIAL_NUMBER=2001") in new stack
-- Executing [s@macro-dialout-trunk:5] Set("Local/2001@from-internal-00000012;2", "DIAL_TRUNK_OPTIONS=Ttr") in new stack
-- Executing [s@macro-dialout-trunk:6] Set("Local/2001@from-internal-00000012;2", "OUTBOUND_GROUP=OUT_2") in new stack
-- Executing [s@macro-dialout-trunk:7] GotoIf("Local/2001@from-internal-00000012;2", "1?nomax") in new stack
-- Goto (macro-dialout-trunk,s,9)
-- Executing [s@macro-dialout-trunk:9] GotoIf("Local/2001@from-internal-00000012;2", "0?skipoutcid") in new stack
-- Executing [s@macro-dialout-trunk:10] Set("Local/2001@from-internal-00000012;2", "DIAL_TRUNK_OPTIONS=Tt") in new stack
-- Executing [s@macro-dialout-trunk:11] Macro("Local/2001@from-internal-00000012;2", "outbound-callerid,2") in new stack
-- Executing [s@macro-outbound-callerid:1] ExecIf("Local/2001@from-internal-00000012;2", "0?Set(CALLERPRES()=)") in new stack
-- Executing [s@macro-outbound-callerid:2] ExecIf("Local/2001@from-internal-00000012;2", "0?Set(REALCALLERIDNUM=2001)") in new stack
-- Executing [s@macro-outbound-callerid:3] GotoIf("Local/2001@from-internal-00000012;2", "1?normcid") in new stack
-- Goto (macro-outbound-callerid,s,6)
-- Executing [s@macro-outbound-callerid:6] Set("Local/2001@from-internal-00000012;2", "USEROUTCID=") in new stack
-- Executing [s@macro-outbound-callerid:7] Set("Local/2001@from-internal-00000012;2", "EMERGENCYCID=") in new stack
-- Executing [s@macro-outbound-callerid:8] Set("Local/2001@from-internal-00000012;2", "TRUNKOUTCID=") in new stack
-- Executing [s@macro-outbound-callerid:9] GotoIf("Local/2001@from-internal-00000012;2", "1?trunkcid") in new stack
-- Goto (macro-outbound-callerid,s,14)
-- Executing [s@macro-outbound-callerid:14] ExecIf("Local/2001@from-internal-00000012;2", "0?Set(CALLERID(all)=)") in new stack
-- Executing [s@macro-outbound-callerid:15] ExecIf("Local/2001@from-internal-00000012;2", "0?Set(CALLERID(all)=)") in new stack
-- Executing [s@macro-outbound-callerid:16] ExecIf("Local/2001@from-internal-00000012;2", "0?Set(CALLERID(all)=)") in new stack
-- Executing [s@macro-outbound-callerid:17] ExecIf("Local/2001@from-internal-00000012;2", "0?Set(CALLERPRES()=prohib_passed_screen)") in new stack
-- Executing [s@macro-outbound-callerid:18] Set("Local/2001@from-internal-00000012;2", "CDR(outbound_cnum)=2001") in new stack
-- Executing [s@macro-outbound-callerid:19] Set("Local/2001@from-internal-00000012;2", "CDR(outbound_cnam)=MonAst Invited") in new stack
-- Executing [s@macro-dialout-trunk:12] GosubIf("Local/2001@from-internal-00000012;2", "0?sub-flp-2,s,1()") in new stack
-- Executing [s@macro-dialout-trunk:13] Set("Local/2001@from-internal-00000012;2", "OUTNUM=2001") in new stack
-- Executing [s@macro-dialout-trunk:14] Set("Local/2001@from-internal-00000012;2", "custom=SIP/test_on_test2") in new stack
-- Executing [s@macro-dialout-trunk:15] ExecIf("Local/2001@from-internal-00000012;2", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default)Tt)") in new stack
-- Executing [s@macro-dialout-trunk:16] ExecIf("Local/2001@from-internal-00000012;2", "0?Set(DIAL_TRUNK_OPTIONS=TtM(confirm))") in new stack
-- Executing [s@macro-dialout-trunk:17] Macro("Local/2001@from-internal-00000012;2", "dialout-trunk-predial-hook,") in new stack
-- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("Local/2001@from-internal-00000012;2", "") in new stack
-- Executing [s@macro-dialout-trunk:18] GotoIf("Local/2001@from-internal-00000012;2", "0?bypass,1") in new stack
-- Executing [s@macro-dialout-trunk:19] ExecIf("Local/2001@from-internal-00000012;2", "0?Set(CONNECTEDLINE(num,i)=2001)") in new stack
-- Executing [s@macro-dialout-trunk:20] ExecIf("Local/2001@from-internal-00000012;2", "0?Set(CONNECTEDLINE(name,i)=CID:2001)") in new stack
-- Executing [s@macro-dialout-trunk:21] GotoIf("Local/2001@from-internal-00000012;2", "0?customtrunk") in new stack
-- Executing [s@macro-dialout-trunk:22] Dial("Local/2001@from-internal-00000012;2", "SIP/test_on_test2/2001,300,Tt") in new stack
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
-- Called SIP/test_on_test2/2001
[2018-11-15 13:44:11] NOTICE[2285][C-00000020]: chan_sip.c:23011 handle_response_invite: Failed to authenticate on INVITE to '"MonAst Invited" <sip:2001@XX.XXX.XX.XXX>;tag=as1016772a'
-- SIP/test_on_test2-0000000f is circuit-busy
== Everyone is busy/congested at this time (1:0/1/0)
-- Executing [s@macro-dialout-trunk:23] NoOp("Local/2001@from-internal-00000012;2", "Dial failed for some reason with DIALSTATUS = CONGESTION and HANGUPCAUSE = 21") in new stack
-- Executing [s@macro-dialout-trunk:24] GotoIf("Local/2001@from-internal-00000012;2", "0?continue,1:s-CONGESTION,1") in new stack
-- Goto (macro-dialout-trunk,s-CONGESTION,1)
-- Executing [s-CONGESTION@macro-dialout-trunk:1] Set("Local/2001@from-internal-00000012;2", "RC=21") in new stack
-- Executing [s-CONGESTION@macro-dialout-trunk:2] Goto("Local/2001@from-internal-00000012;2", "21,1") in new stack
-- Goto (macro-dialout-trunk,21,1)
-- Executing [21@macro-dialout-trunk:1] Goto("Local/2001@from-internal-00000012;2", "continue,1") in new stack
-- Goto (macro-dialout-trunk,continue,1)
-- Executing [continue@macro-dialout-trunk:1] NoOp("Local/2001@from-internal-00000012;2", "TRUNK Dial failed due to CONGESTION HANGUPCAUSE: 21 - failing through to other trunks") in new stack
-- Executing [continue@macro-dialout-trunk:2] Set("Local/2001@from-internal-00000012;2", "CALLERID(number)=") in new stack
-- Executing [2001@from-internal:7] Macro("Local/2001@from-internal-00000012;2", "outisbusy,") in new stack
-- Executing [s@macro-outisbusy:1] Progress("Local/2001@from-internal-00000012;2", "") in new stack
-- Executing [s@macro-outisbusy:2] GotoIf("Local/2001@from-internal-00000012;2", "0?emergency,1") in new stack
-- Executing [s@macro-outisbusy:3] GotoIf("Local/2001@from-internal-00000012;2", "0?intracompany,1") in new stack
-- Executing [s@macro-outisbusy:4] Playback("Local/2001@from-internal-00000012;2", "all-circuits-busy-now&pls-try-call-later, noanswer") in new stack
-- <Local/2001@from-internal-00000012;2> Playing 'all-circuits-busy-now.slin' (language 'ru')
-- <Local/2001@from-internal-00000012;2> Playing 'pls-try-call-later.slin' (language 'ru')
-- Executing [s@macro-outisbusy:5] Congestion("Local/2001@from-internal-00000012;2", "20") in new stack
[2018-11-15 13:44:16] WARNING[11455][C-00000020]: channel.c:4860 ast_prod: Prodding channel 'Local/2001@from-internal-00000012;2' failed
== Spawn extension (macro-outisbusy, s, 5) exited non-zero on 'Local/2001@from-internal-00000012;2' in macro 'outisbusy'
== Spawn extension (from-internal, 2001, 7) exited non-zero on 'Local/2001@from-internal-00000012;2'
-- Executing [h@from-internal:1] Hangup("Local/2001@from-internal-00000012;2", "") in new stack
== Spawn extension (from-internal, h, 1) exited non-zero on 'Local/2001@from-internal-00000012;2
oddity
 
Сообщений: 13
Зарегистрирован: 05 сен 2016, 15:40

Re: Monast (meetme rooms). Не собирается конференция.

Сообщение ded » 15 ноя 2018, 15:12

Когда
Failed to authenticate on INVITE
это надо на SIP пире для другого Астериска (где указан context=from-internal) указать ещё
insecure=invite
или соединять по IAX2.
ded
 
Сообщений: 13568
Зарегистрирован: 26 авг 2010, 19:00

Re: Monast (meetme rooms). Не собирается конференция.

Сообщение oddity » 15 ноя 2018, 16:20

Спасибо, по iax2 всё заработало!
А вот по сипу отключил аутентификацию как Вы посоветовали: insecure=invite и insecure=port,invite пробовал. Всё так же в логах: "Failed to authenticate on INVITE".
oddity
 
Сообщений: 13
Зарегистрирован: 05 сен 2016, 15:40

Re: Monast (meetme rooms). Не собирается конференция.

Сообщение ded » 15 ноя 2018, 17:14

Не так, не правильно был объявлен SIP пир, поэтому Failed to authenticate on INVITE
Почитайте теорию SIP про аутентификацию.
ded
 
Сообщений: 13568
Зарегистрирован: 26 авг 2010, 19:00


Вернуться в Графические интерфейсы Астериск

Кто сейчас на форуме

Сейчас этот форум просматривают: нет зарегистрированных пользователей и гости: 1

© 2008 — 2019 Asterisk.ru
Digium, Asterisk and AsteriskNOW are registered trademarks of Digium, Inc.
Design and development by PostMet-Netzwerk GmbH