Страница 1 из 2

Не переводятся звонки по IAX2 транку

Добавлено: 06 май 2015, 18:23
q2ker
Имею 2 станции(2 офиса), соединенные по IAX2 транку. С телефонов внутри офисов можно сделать перевод звонка на другой номер другого офиса и наоборот, но если я скажем в группе одной АТС ставлю внутренний номер из другой АТС, то такой фокус не проходит, идет отбой. Что я делал не так?

Re: Не переводятся звонки по IAX2 транку

Добавлено: 06 май 2015, 22:24
ded
Как минимум - смотреть на строку CLI во время перевода звонка (если Вы не блондинка).
Там все ответы уже есть

Re: Не переводятся звонки по IAX2 транку

Добавлено: 07 май 2015, 11:14
q2ker
Я плохо разбираюсь в астериске, прошу помощи: :|
PRIME_BBCODE_SPOILER_SHOW PRIME_BBCODE_SPOILER:
[May 7 11:09:34] VERBOSE[20163] pbx.c: == Spawn extension (ext-group, 600, 22) exited non-zero on 'SIP/In8800-00000013'
[May 7 11:09:34] VERBOSE[20163] pbx.c: -- Executing [600@ext-group:22] Hangup("SIP/In8800-00000013", "") in new stack
[May 7 11:09:34] VERBOSE[20163] app_db.c: -- DBdel: family=BLKVM, key=600/SIP/In8800-00000013
[May 7 11:09:34] WARNING[20163] app_db.c: The DBdel application has been deprecated in favor of the DB_DELETE dialplan function!
[May 7 11:09:34] VERBOSE[20163] pbx.c: -- Executing [600@ext-group:21] DBdel("SIP/In8800-00000013", "BLKVM/600/SIP/In8800-00000013") in new stack
[May 7 11:09:34] VERBOSE[20163] pbx.c: -- Executing [600@ext-group:20] Set("SIP/In8800-00000013", "__NODEST=") in new stack
[May 7 11:09:34] VERBOSE[20163] pbx.c: -- Executing [600@ext-group:19] GotoIf("SIP/In8800-00000013", "0?nodest") in new stack
[May 7 11:09:34] VERBOSE[20163] pbx.c: -- Executing [600@ext-group:18] Set("SIP/In8800-00000013", "RingGroupMethod=") in new stack
[May 7 11:09:34] VERBOSE[20163] pbx.c: -- Executing [s@macro-dial:4] NoOp("SIP/In8800-00000013", "Returned from dialparties with no extensions to call and DIALSTATUS: NOANSWER") in new stack
[May 7 11:09:34] VERBOSE[20163] res_agi.c: -- AGI Script dialparties.agi completed, returning 0
[May 7 11:09:34] VERBOSE[20163] res_agi.c: dialparties.agi: Setting default NOANSWER DIALSTATUS since no extensions available
[May 7 11:09:34] VERBOSE[20163] res_agi.c: -- dialparties.agi: Filtered ARG3: 118-101-200-201
[May 7 11:09:34] VERBOSE[20163] res_agi.c: -- dialparties.agi: dbset CALLTRACE/201 to 78005002474
[May 7 11:09:34] VERBOSE[20163] res_agi.c: -- dialparties.agi: Checking CW and CFB status for extension 201
[May 7 11:09:34] VERBOSE[20163] res_agi.c: dialparties.agi: Extension 201 has ExtensionState: 4
[May 7 11:09:34] VERBOSE[20163] res_agi.c: dialparties.agi: EXTENSION_STATE: 4 (UNKNOWN)
[May 7 11:09:34] VERBOSE[20163] res_agi.c: -- dialparties.agi: dbset CALLTRACE/200 to 78005002474
[May 7 11:09:34] VERBOSE[20163] res_agi.c: -- dialparties.agi: Checking CW and CFB status for extension 200
[May 7 11:09:34] VERBOSE[20163] res_agi.c: dialparties.agi: Extension 200 has ExtensionState: 4
[May 7 11:09:34] VERBOSE[20163] res_agi.c: dialparties.agi: EXTENSION_STATE: 4 (UNKNOWN)
[May 7 11:09:34] VERBOSE[20163] res_agi.c: -- dialparties.agi: dbset CALLTRACE/101 to 78005002474
[May 7 11:09:34] VERBOSE[20163] res_agi.c: -- dialparties.agi: Checking CW and CFB status for extension 101
[May 7 11:09:34] VERBOSE[20163] res_agi.c: dialparties.agi: Extension 101 has ExtensionState: 4
[May 7 11:09:34] VERBOSE[20163] res_agi.c: dialparties.agi: EXTENSION_STATE: 4 (UNKNOWN)
[May 7 11:09:34] VERBOSE[20163] res_agi.c: -- dialparties.agi: dbset CALLTRACE/118 to 78005002474
[May 7 11:09:34] VERBOSE[20163] res_agi.c: -- dialparties.agi: Checking CW and CFB status for extension 118
[May 7 11:09:34] VERBOSE[20163] res_agi.c: dialparties.agi: Extension 118 has ExtensionState: 4
[May 7 11:09:34] VERBOSE[20163] res_agi.c: dialparties.agi: EXTENSION_STATE: 4 (UNKNOWN)
[May 7 11:09:34] VERBOSE[20163] res_agi.c: -- dialparties.agi: Extension 201 do not disturb is disabled
[May 7 11:09:34] VERBOSE[20163] res_agi.c: -- dialparties.agi: Extension 200 do not disturb is disabled
[May 7 11:09:34] VERBOSE[20163] res_agi.c: -- dialparties.agi: Extension 101 do not disturb is disabled
[May 7 11:09:34] VERBOSE[20163] res_agi.c: -- dialparties.agi: Extension 118 do not disturb is disabled
[May 7 11:09:34] VERBOSE[20163] res_agi.c: -- dialparties.agi: Extension 201 cf is disabled
[May 7 11:09:34] VERBOSE[20163] res_agi.c: -- dialparties.agi: Extension 200 cf is disabled
[May 7 11:09:34] VERBOSE[20163] res_agi.c: -- dialparties.agi: Extension 101 cf is disabled
[May 7 11:09:34] VERBOSE[20163] res_agi.c: -- dialparties.agi: Extension 118 cf is disabled
[May 7 11:09:34] VERBOSE[20163] res_agi.c: -- dialparties.agi: Added extension 201 to extension map
[May 7 11:09:34] VERBOSE[20163] res_agi.c: -- dialparties.agi: Added extension 200 to extension map
[May 7 11:09:34] VERBOSE[20163] res_agi.c: -- dialparties.agi: Added extension 101 to extension map
[May 7 11:09:34] VERBOSE[20163] res_agi.c: -- dialparties.agi: Added extension 118 to extension map
[May 7 11:09:34] VERBOSE[20163] res_agi.c: dialparties.agi: Methodology of ring is 'ringall'
[May 7 11:09:34] VERBOSE[20163] res_agi.c: dialparties.agi: Caller ID name is '78005002474' number is '78005002474'
[May 7 11:09:34] VERBOSE[20163] res_agi.c: dialparties.agi: Starting New Dialparties.agi
[May 7 11:09:34] VERBOSE[20163] res_agi.c: -- Launched AGI Script /var/lib/asterisk/agi-bin/dialparties.agi
[May 7 11:09:34] VERBOSE[20163] pbx.c: -- Executing [s@macro-dial:3] AGI("SIP/In8800-00000013", "dialparties.agi") in new stack
[May 7 11:09:34] VERBOSE[20163] pbx.c: -- Goto (macro-dial,s,3)
[May 7 11:09:34] VERBOSE[20163] pbx.c: -- Executing [s@macro-dial:1] GotoIf("SIP/In8800-00000013", "1?dial") in new stack
[May 7 11:09:34] VERBOSE[20163] pbx.c: -- Executing [600@ext-group:17] Macro("SIP/In8800-00000013", "dial,20,rtTw,118-101-200-201") in new stack
[May 7 11:09:34] VERBOSE[20163] res_agi.c: -- AGI Script app_log.php completed, returning 0
[May 7 11:09:34] ERROR[20163] utils.c: write() returned error: Broken pipe
[May 7 11:09:34] VERBOSE[20163] res_agi.c: -- Launched AGI Script /var/lib/asterisk/agi-bin/app_log.php
[May 7 11:09:34] VERBOSE[20163] pbx.c: -- Executing [600@ext-group:16] AGI("SIP/In8800-00000013", "app_log.php,1430986173.21,GROUP,600,118-101-200-201") in new stack
[May 7 11:09:34] VERBOSE[20163] pbx.c: -- Executing [600@ext-group:15] Set("SIP/In8800-00000013", "RingGroupMethod=ringall") in new stack
[May 7 11:09:34] VERBOSE[20163] pbx.c: -- Executing [s@macro-record-enable:5] MacroExit("SIP/In8800-00000013", "") in new stack
[May 7 11:09:34] VERBOSE[20163] res_agi.c: -- AGI Script recordingcheck completed, returning 0
[May 7 11:09:34] VERBOSE[20163] res_agi.c: recordingcheck,20150507-110934,1430986173.21: No DB Entry AMPUSER/201/recording - Not Recording for 201, checking for others
[May 7 11:09:34] VERBOSE[20163] res_agi.c: recordingcheck,20150507-110934,1430986173.21: No DB Entry AMPUSER/200/recording - Not Recording for 200, checking for others
[May 7 11:09:34] VERBOSE[20163] res_agi.c: recordingcheck,20150507-110934,1430986173.21: No DB Entry AMPUSER/101/recording - Not Recording for 101, checking for others
[May 7 11:09:34] VERBOSE[20163] res_agi.c: recordingcheck,20150507-110934,1430986173.21: No DB Entry AMPUSER/118/recording - Not Recording for 118, checking for others
[May 7 11:09:34] VERBOSE[20163] res_agi.c: -- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
[May 7 11:09:34] VERBOSE[20163] pbx.c: -- Executing [s@macro-record-enable:4] AGI("SIP/In8800-00000013", "recordingcheck,20150507-110934,1430986173.21") in new stack
[May 7 11:09:34] VERBOSE[20163] pbx.c: -- Goto (macro-record-enable,s,4)
[May 7 11:09:34] VERBOSE[20163] pbx.c: -- Executing [s@macro-record-enable:1] GotoIf("SIP/In8800-00000013", "1?check") in new stack
[May 7 11:09:34] VERBOSE[20163] pbx.c: -- Executing [600@ext-group:14] Macro("SIP/In8800-00000013", "record-enable,118-101-200-201,Group") in new stack
[May 7 11:09:34] VERBOSE[20163] pbx.c: -- Executing [600@ext-group:13] Set("SIP/In8800-00000013", "RecordMethod=Group") in new stack
[May 7 11:09:34] VERBOSE[20163] pbx.c: -- Executing [600@ext-group:12] Set("SIP/In8800-00000013", "__NODEST=600") in new stack
[May 7 11:09:34] VERBOSE[20163] pbx.c: -- Executing [600@ext-group:11] Set("SIP/In8800-00000013", "RRNODEST=") in new stack
[May 7 11:09:34] VERBOSE[20163] pbx.c: -- Executing [600@ext-group:10] Set("SIP/In8800-00000013", "DB(BLKVM/600/SIP/In8800-00000013)=TRUE") in new stack
[May 7 11:09:34] VERBOSE[20163] pbx.c: -- Executing [600@ext-group:9] Set("SIP/In8800-00000013", "__BLKVM_BASE=600") in new stack
[May 7 11:09:34] VERBOSE[20163] pbx.c: -- Executing [600@ext-group:8] Set("SIP/In8800-00000013", "__BLKVM_OVERRIDE=BLKVM/600/SIP/In8800-00000013") in new stack
[May 7 11:09:34] VERBOSE[20163] pbx.c: -- Executing [600@ext-group:7] Set("SIP/In8800-00000013", "__NODEST=") in new stack
[May 7 11:09:34] VERBOSE[20163] pbx.c: -- Goto (ext-group,600,7)
[May 7 11:09:34] VERBOSE[20163] pbx.c: -- Executing [600@ext-group:5] GotoIf("SIP/In8800-00000013", "1?skipdb") in new stack
[May 7 11:09:34] VERBOSE[20163] res_agi.c: -- AGI Script app_log.php completed, returning 0
[May 7 11:09:34] ERROR[20163] utils.c: write() returned error: Broken pipe
[May 7 11:09:33] VERBOSE[20163] res_agi.c: -- Launched AGI Script /var/lib/asterisk/agi-bin/app_log.php
[May 7 11:09:33] VERBOSE[20163] pbx.c: -- Executing [600@ext-group:4] AGI("SIP/In8800-00000013", "app_log.php,1430986173.21,GROUP,600,start") in new stack
[May 7 11:09:33] VERBOSE[20163] pbx.c: -- Executing [600@ext-group:3] Set("SIP/In8800-00000013", "CDR(from_did)=s") in new stack
[May 7 11:09:33] VERBOSE[20163] pbx.c: -- Executing [600@ext-group:2] Set("SIP/In8800-00000013", "__INGROUP=") in new stack
[May 7 11:09:33] VERBOSE[20163] pbx.c: -- Executing [s@macro-user-callerid:22] NoOp("SIP/In8800-00000013", "Using CallerID "78005002474" <78005002474>") in new stack
[May 7 11:09:33] VERBOSE[20163] pbx.c: -- Goto (macro-user-callerid,s,22)
[May 7 11:09:33] VERBOSE[20163] pbx.c: -- Executing [s@macro-user-callerid:15] GotoIf("SIP/In8800-00000013", "1?continue") in new stack
[May 7 11:09:33] VERBOSE[20163] pbx.c: -- Executing [s@macro-user-callerid:14] Set("SIP/In8800-00000013", "__TTL=64") in new stack
[May 7 11:09:33] VERBOSE[20163] pbx.c: -- Executing [s@macro-user-callerid:13] GotoIf("SIP/In8800-00000013", "0?continue") in new stack
[May 7 11:09:33] VERBOSE[20163] pbx.c: -- Goto (macro-user-callerid,s,13)
[May 7 11:09:33] VERBOSE[20163] pbx.c: -- Executing [s@macro-user-callerid:9] GotoIf("SIP/In8800-00000013", "1?report") in new stack
[May 7 11:09:33] VERBOSE[20163] pbx.c: -- Executing [s@macro-user-callerid:8] Set("SIP/In8800-00000013", "AMPUSERCIDNAME=") in new stack
[May 7 11:09:33] VERBOSE[20163] pbx.c: -- Executing [s@macro-user-callerid:7] Set("SIP/In8800-00000013", "AMPUSER=") in new stack
[May 7 11:09:33] VERBOSE[20163] pbx.c: -- Executing [s@macro-user-callerid:6] ExecIf("SIP/In8800-00000013", "1?Set(REALCALLERIDNUM=78005002474)") in new stack
[May 7 11:09:33] VERBOSE[20163] pbx.c: -- Executing [s@macro-user-callerid:5] GotoIf("SIP/In8800-00000013", "0?report") in new stack
[May 7 11:09:33] VERBOSE[20163] pbx.c: -- Executing [s@macro-user-callerid:4] Set("SIP/In8800-00000013", "AMPUSER=78005002474") in new stack
[May 7 11:09:33] VERBOSE[20163] pbx.c: -- Executing [s@macro-user-callerid:3] Set("SIP/In8800-00000013", "CALLERID(num)=78005002474") in new stack
[May 7 11:09:33] VERBOSE[20163] pbx.c: -- Executing [s@macro-user-callerid:2] GotoIf("SIP/In8800-00000013", "0?no") in new stack
[May 7 11:09:33] VERBOSE[20163] pbx.c: -- Executing [s@macro-user-callerid:1] ExecIf("SIP/In8800-00000013", "0?Set(CDR(dialstatus)=)") in new stack
[May 7 11:09:33] VERBOSE[20163] pbx.c: -- Executing [600@ext-group:1] Macro("SIP/In8800-00000013", "user-callerid,") in new stack
[May 7 11:09:33] VERBOSE[20163] pbx.c: -- Goto (ext-group,600,1)
[May 7 11:09:33] VERBOSE[20163] pbx.c: -- Executing [s@ext-did:9] Goto("SIP/In8800-00000013", "ext-group,600,1") in new stack
[May 7 11:09:33] VERBOSE[20163] pbx.c: -- Executing [s@ext-did:8] Set("SIP/In8800-00000013", "CALLERPRES()=allowed_not_screened") in new stack
[May 7 11:09:33] VERBOSE[20163] pbx.c: -- Executing [s@ext-did:7] Set("SIP/In8800-00000013", "__CALLINGPRES_SV=allowed_not_screened") in new stack
[May 7 11:09:33] VERBOSE[20163] pbx.c: -- Executing [s@ext-did:6] ExecIf("SIP/In8800-00000013", "0 ?Set(CALLERID(name)=78005002474)") in new stack
[May 7 11:09:33] VERBOSE[20163] pbx.c: -- Executing [s@ext-did:5] ExecIf("SIP/In8800-00000013", "1 ?Set(__TMPCID=78005002474)") in new stack
[May 7 11:09:33] VERBOSE[20163] pbx.c: -- Executing [s@ext-did:4] Set("SIP/In8800-00000013", "CHANNEL(language)=ru") in new stack
[May 7 11:09:33] VERBOSE[20163] pbx.c: -- Executing [s@app-blacklist-check:2] Return("SIP/In8800-00000013", "") in new stack
[May 7 11:09:33] VERBOSE[20163] pbx.c: -- Executing [s@app-blacklist-check:1] GotoIf("SIP/In8800-00000013", "0?blacklisted") in new stack
[May 7 11:09:33] VERBOSE[20163] pbx.c: -- Executing [s@ext-did:3] Gosub("SIP/In8800-00000013", "app-blacklist-check,s,1") in new stack
[May 7 11:09:33] VERBOSE[20163] pbx.c: -- Executing [s@ext-did:2] Set("SIP/In8800-00000013", "CDR(from_did)=s") in new stack
[May 7 11:09:33] VERBOSE[20163] pbx.c: -- Executing [s@ext-did:1] Set("SIP/In8800-00000013", "__FROM_DID=s") in new stack
[May 7 11:09:33] VERBOSE[20163] pbx.c: -- Goto (ext-did,s,1)
[May 7 11:09:33] VERBOSE[20163] pbx.c: -- Executing [101@from-trunk:2] Goto("SIP/In8800-00000013", "ext-did,s,1") in new stack
[May 7 11:09:33] VERBOSE[20163] pbx.c: -- Executing [101@from-trunk:1] NoOp("SIP/In8800-00000013", "Catch-All DID Match - Found 101 - You probably want a DID for this.") in new stack
[May 7 11:09:33] WARNING[32527] chan_sip.c: Huh? Not an RDNIS SIP header (tel:78005002474)?
[May 7 11:09:33] VERBOSE[32527] netsock.c: == Using UDPTL CoS mark 5
[May 7 11:09:33] VERBOSE[32527] netsock.c: == Using UDPTL TOS bits 184
[May 7 11:09:33] VERBOSE[32527] netsock.c: == Using SIP TRTP CoS mark 3
[May 7 11:09:33] VERBOSE[32527] netsock.c: == Using SIP TRTP TOS bits 136
[May 7 11:09:33] VERBOSE[32527] netsock.c: == Using SIP VRTP CoS mark 4
[May 7 11:09:33] VERBOSE[32527] netsock.c: == Using SIP VRTP TOS bits 136
[May 7 11:09:33] VERBOSE[32527] netsock.c: == Using SIP RTP CoS mark 5
[May 7 11:09:33] VERBOSE[32527] netsock.c: == Using SIP RTP TOS bits 184
[May 7 11:09:18] VERBOSE[20160] asterisk.c: -- Remote UNIX connection disconnected
[May 7 11:09:18] VERBOSE[32515] asterisk.c: -- Remote UNIX connection
[May 7 11:09:05] VERBOSE[20139] asterisk.c: -- Remote UNIX connection disconnected
[May 7 11:09:05] VERBOSE[32515] asterisk.c: -- Remote UNIX connection
[May 7 11:08:59] VERBOSE[19983] asterisk.c: -- Remote UNIX connection disconnected
[May 7 11:08:59] VERBOSE[32515] asterisk.c: -- Remote UNIX connection
[May 7 11:08:59] VERBOSE[19973] asterisk.c: -- Remote UNIX connection disconnected
[May 7 11:08:59] VERBOSE[32515] asterisk.c: -- Remote UNIX connection
[May 7 11:08:56] VERBOSE[19946] manager.c: == Manager 'admin' logged off from 127.0.0.1
[May 7 11:08:56] VERBOSE[19948] manager.c: == Manager 'admin' logged off from 127.0.0.1

Re: Не переводятся звонки по IAX2 транку

Добавлено: 07 май 2015, 11:20
vl87
http://forum.asterisk.ru/viewtopic.php? ... 9&start=20 смотрите моё последнее сообщение, думаю у вас аналогичная проблема

Re: Не переводятся звонки по IAX2 транку

Добавлено: 07 май 2015, 11:36
Zavr2008
Внутренние номера между АТС не должны повторяться. Иначе нужно префиксы добавлять.
Хотя тут навскидку сложно SIP-IAX2-SIP..
Можно попробовать для теста связать SIP-транком вместо IAX2. Посмотреть будет ли матюкаться.

Re: Не переводятся звонки по IAX2 транку

Добавлено: 07 май 2015, 13:32
ded
Executing [101@from-trunk:1] NoOp("SIP/In8800-00000013", "Catch-All DID Match - Found 101 - You probably want a DID for this.")
- неправильно состыкованы станции: одна в другую должна втыкаться не снаружи (с транковой части) а изнутри (контекст from-internal).

Идите на курсы по Астериску, "плохо разбираюсь в Астериске" - не аргумент, обучаться на форуме с криками о помощи - неразумно, непорядочно. У Вас каждый второй вопрос будет от незнания, и что? Все дырки заполнять вопрос-ответ?
Вы помните для чего этот форум (Вы согласились при регистрации)?

Re: Не переводятся звонки по IAX2 транку

Добавлено: 07 май 2015, 13:37
Zavr2008
ded, Зоркий глаз - меткий ответ :)

Re: Не переводятся звонки по IAX2 транку

Добавлено: 07 май 2015, 14:58
q2ker
ded писал(а):
Executing [101@from-trunk:1] NoOp("SIP/In8800-00000013", "Catch-All DID Match - Found 101 - You probably want a DID for this.")
- неправильно состыкованы станции: одна в другую должна втыкаться не снаружи (с транковой части) а изнутри (контекст from-internal).
Но они так и соединены.
1 -я станция
disallow=all
username=Ligovskiy
secret=ХХХ
host=10.10.1.111
port=4569
type=friend
context=from-internal
qualify=yes
trunk=yes
allow=alaw

Пользователь:
disallow=all
type=user
secret=ХХХ
host=10.10.1.111
context=from-internal
allow=alaw
disallow=all
username=Ligovskiy
secret=ХХХ
host=10.0.0.100
port=4569
type=friend
context=from-internal
qualify=yes
trunk=yes
allow=alaw

Пользователь:
disallow=all
type=user
secret=ХХХ
host=10.0.0.100
context=from-internal
allow=alaw

Re: Не переводятся звонки по IAX2 транку

Добавлено: 08 май 2015, 01:18
ded
Что Вы пытаетесь доказать? Вы неправильно соединили два сервера по IAX2, разве не очевидно?
1) Если type=friend, то
Пользователь:
disallow=all
type=user
secret=ХХХ
host=10.10.1.111
context=from-internal
allow=alaw
не нужен.

2) У вас переведённый звонок ломится по SIP, а не по IAX2. Как Вы это объясните?
Это Вы так думаете, что они так соединены. Астериск думает иначе, показываю ещё раз:
Executing [101@from-trunk:1] NoOp("SIP/In8800-00000013", "Catch-All DID Match - Found 101 - You probably want a DID for this.")

Re: Не переводятся звонки по IAX2 транку

Добавлено: 08 май 2015, 13:24
q2ker
Сделал type=peer, звонки работают, переводы нет. Что ещё нужно исправить?