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

нет входящих звонков

Добавлено: 09 дек 2013, 11:33
nesterov
Добрый день уважаемые форумчани!!
я новичок в настройке elastix и у меня такая проблема
оператор дал такие данные
Username=login
Password=pass
Domain=ims.ucom.am
Registrar=extus.ims.ucom.am
OutboundProxy=extus.ims.ucom.am

как правильно сформировать PEER Details: ?

мои настройки
disallow=all
type=friend
defaultuser=login
secret=pass
insecure=invite
port=5060
nat=yes
host=extus.ims.ucom.am
fromuser=login
context=from-trunk
dtmfmode=rfc2833
allow=alaw
qualify=yes

Register String:
login@ims.ucom.am:pass:login@extus.ims.ucom.am/login

не работает только исходящий вызов

Re: нет входящих звонков

Добавлено: 09 дек 2013, 11:49
april22
а в консоли что !?

Re: нет входящих звонков

Добавлено: 09 дек 2013, 13:07
nesterov

Код: Выделить всё

~]# asterisk -vvvvvvvvvvr
Asterisk 1.8.20.0, Copyright (C) 1999 - 2012 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 1.8.20.0 currently running on onlinetravel (pid = 3040)
Verbosity is at least 10
  == Using SIP RTP TOS bits 184
  == Using SIP RTP CoS mark 5
    -- Executing [9098307730@from-internal:1] Macro("SIP/8000-000000a0", "user-callerid,SKIPTTL,") in new stack
    -- Executing [s@macro-user-callerid:1] Set("SIP/8000-000000a0", "AMPUSER=8000") in new stack
    -- Executing [s@macro-user-callerid:2] GotoIf("SIP/8000-000000a0", "0?report") in new stack
    -- Executing [s@macro-user-callerid:3] ExecIf("SIP/8000-000000a0", "1?Set(REALCALLERIDNUM=8000)") in new stack
    -- Executing [s@macro-user-callerid:4] Set("SIP/8000-000000a0", "AMPUSER=8000") in new stack
    -- Executing [s@macro-user-callerid:5] Set("SIP/8000-000000a0", "AMPUSERCIDNAME=zal") in new stack
    -- Executing [s@macro-user-callerid:6] GotoIf("SIP/8000-000000a0", "0?report") in new stack
    -- Executing [s@macro-user-callerid:7] Set("SIP/8000-000000a0", "AMPUSERCID=8000") in new stack
    -- Executing [s@macro-user-callerid:8] Set("SIP/8000-000000a0", "CALLERID(all)="zal" <8000>") in new stack
    -- Executing [s@macro-user-callerid:9] ExecIf("SIP/8000-000000a0", "0?Set(CHANNEL(language)=)") in new stack
    -- Executing [s@macro-user-callerid:10] GotoIf("SIP/8000-000000a0", "1?continue") in new stack
    -- Goto (macro-user-callerid,s,19)
    -- Executing [s@macro-user-callerid:19] Set("SIP/8000-000000a0", "CALLERID(number)=8000") in new stack
    -- Executing [s@macro-user-callerid:20] Set("SIP/8000-000000a0", "CALLERID(name)=zal") in new stack
    -- Executing [s@macro-user-callerid:21] NoOp("SIP/8000-000000a0", "Using CallerID "zal" <8000>") in new stack
    -- Executing [9098307730@from-internal:2] NoOp("SIP/8000-000000a0", "Calling Out Route: 9_outside") in new stack
    -- Executing [9098307730@from-internal:3] Set("SIP/8000-000000a0", "MOHCLASS=default") in new stack
    -- Executing [9098307730@from-internal:4] Set("SIP/8000-000000a0", "_NODEST=") in new stack
    -- Executing [9098307730@from-internal:5] Macro("SIP/8000-000000a0", "record-enable,8000,OUT,") in new stack
    -- Executing [s@macro-record-enable:1] GotoIf("SIP/8000-000000a0", "1?check") in new stack
    -- Goto (macro-record-enable,s,4)
    -- Executing [s@macro-record-enable:4] ExecIf("SIP/8000-000000a0", "0?MacroExit()") in new stack
    -- Executing [s@macro-record-enable:5] GotoIf("SIP/8000-000000a0", "0?Group:OUT") in new stack
    -- Goto (macro-record-enable,s,15)
    -- Executing [s@macro-record-enable:15] GotoIf("SIP/8000-000000a0", "0?IN") in new stack
    -- Executing [s@macro-record-enable:16] ExecIf("SIP/8000-000000a0", "1?MacroExit()") in new stack
    -- Executing [9098307730@from-internal:6] Macro("SIP/8000-000000a0", "dialout-trunk,2,098307730,") in new stack
    -- Executing [s@macro-dialout-trunk:1] Set("SIP/8000-000000a0", "DIAL_TRUNK=2") in new stack
    -- Executing [s@macro-dialout-trunk:2] GosubIf("SIP/8000-000000a0", "0?sub-pincheck,s,1") in new stack
    -- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/8000-000000a0", "0?disabletrunk,1") in new stack
    -- Executing [s@macro-dialout-trunk:4] Set("SIP/8000-000000a0", "DIAL_NUMBER=098307730") in new stack
    -- Executing [s@macro-dialout-trunk:5] Set("SIP/8000-000000a0", "DIAL_TRUNK_OPTIONS=tr") in new stack
    -- Executing [s@macro-dialout-trunk:6] Set("SIP/8000-000000a0", "OUTBOUND_GROUP=OUT_2") in new stack
    -- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/8000-000000a0", "1?nomax") in new stack
    -- Goto (macro-dialout-trunk,s,9)
    -- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/8000-000000a0", "0?skipoutcid") in new stack
    -- Executing [s@macro-dialout-trunk:10] Set("SIP/8000-000000a0", "DIAL_TRUNK_OPTIONS=") in new stack
    -- Executing [s@macro-dialout-trunk:11] Macro("SIP/8000-000000a0", "outbound-callerid,2") in new stack
    -- Executing [s@macro-outbound-callerid:1] ExecIf("SIP/8000-000000a0", "0?Set(CALLERPRES()=)") in new stack
    -- Executing [s@macro-outbound-callerid:2] ExecIf("SIP/8000-000000a0", "0?Set(REALCALLERIDNUM=8000)") in new stack
    -- Executing [s@macro-outbound-callerid:3] GotoIf("SIP/8000-000000a0", "1?normcid") in new stack
    -- Goto (macro-outbound-callerid,s,6)
    -- Executing [s@macro-outbound-callerid:6] Set("SIP/8000-000000a0", "USEROUTCID=8000") in new stack
    -- Executing [s@macro-outbound-callerid:7] Set("SIP/8000-000000a0", "EMERGENCYCID=") in new stack
    -- Executing [s@macro-outbound-callerid:8] Set("SIP/8000-000000a0", "TRUNKOUTCID=37411411111") in new stack
    -- Executing [s@macro-outbound-callerid:9] GotoIf("SIP/8000-000000a0", "1?trunkcid") in new stack
    -- Goto (macro-outbound-callerid,s,12)
    -- Executing [s@macro-outbound-callerid:12] ExecIf("SIP/8000-000000a0", "1?Set(CALLERID(all)=37411411111)") in new stack
    -- Executing [s@macro-outbound-callerid:13] ExecIf("SIP/8000-000000a0", "1?Set(CALLERID(all)=8000)") in new stack
    -- Executing [s@macro-outbound-callerid:14] ExecIf("SIP/8000-000000a0", "0?Set(CALLERID(all)=)") in new stack
    -- Executing [s@macro-outbound-callerid:15] ExecIf("SIP/8000-000000a0", "0?Set(CALLERPRES()=prohib_passed_screen)") in new stack
    -- Executing [s@macro-dialout-trunk:12] GosubIf("SIP/8000-000000a0", "0?sub-flp-2,s,1") in new stack
    -- Executing [s@macro-dialout-trunk:13] Set("SIP/8000-000000a0", "OUTNUM=098307730") in new stack
    -- Executing [s@macro-dialout-trunk:14] Set("SIP/8000-000000a0", "custom=SIP/37411411111") in new stack
    -- Executing [s@macro-dialout-trunk:15] ExecIf("SIP/8000-000000a0", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default))") in new stack
    -- Executing [s@macro-dialout-trunk:16] Macro("SIP/8000-000000a0", "dialout-trunk-predial-hook,") in new stack
    -- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("SIP/8000-000000a0", "") in new stack
    -- Executing [s@macro-dialout-trunk:17] GotoIf("SIP/8000-000000a0", "0?bypass,1") in new stack
    -- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/8000-000000a0", "0?customtrunk") in new stack
    -- Executing [s@macro-dialout-trunk:19] Dial("SIP/8000-000000a0", "SIP/37411411111/098307730,300,") in new stack
  == Using SIP RTP TOS bits 184
  == Using SIP RTP CoS mark 5
    -- Called SIP/37411411111/098307730
  == Everyone is busy/congested at this time (1:0/0/1)
    -- Executing [s@macro-dialout-trunk:20] NoOp("SIP/8000-000000a0", "Dial failed for some reason with DIALSTATUS = CHANUNAVAIL and HANGUPCAUSE = 21") in new stack
    -- Executing [s@macro-dialout-trunk:21] Goto("SIP/8000-000000a0", "s-CHANUNAVAIL,1") in new stack
    -- Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)
    -- Executing [s-CHANUNAVAIL@macro-dialout-trunk:1] Set("SIP/8000-000000a0", "RC=21") in new stack
    -- Executing [s-CHANUNAVAIL@macro-dialout-trunk:2] Goto("SIP/8000-000000a0", "21,1") in new stack
    -- Goto (macro-dialout-trunk,21,1)
    -- Executing [21@macro-dialout-trunk:1] Goto("SIP/8000-000000a0", "continue,1") in new stack
    -- Goto (macro-dialout-trunk,continue,1)
    -- Executing [continue@macro-dialout-trunk:1] GotoIf("SIP/8000-000000a0", "1?noreport") in new stack
    -- Goto (macro-dialout-trunk,continue,3)
    -- Executing [continue@macro-dialout-trunk:3] NoOp("SIP/8000-000000a0", "TRUNK Dial failed due to CHANUNAVAIL HANGUPCAUSE: 21 - failing through to other trunks") in new stack
    -- Executing [continue@macro-dialout-trunk:4] Set("SIP/8000-000000a0", "CALLERID(number)=8000") in new stack
    -- Executing [9098307730@from-internal:7] Macro("SIP/8000-000000a0", "outisbusy,") in new stack
    -- Executing [s@macro-outisbusy:1] Progress("SIP/8000-000000a0", "") in new stack
    -- Executing [s@macro-outisbusy:2] GotoIf("SIP/8000-000000a0", "0?emergency,1") in new stack
    -- Executing [s@macro-outisbusy:3] GotoIf("SIP/8000-000000a0", "0?intracompany,1") in new stack
    -- Executing [s@macro-outisbusy:4] Playback("SIP/8000-000000a0", "all-circuits-busy-now&pls-try-call-later, noanswer") in new stack
    -- <SIP/8000-000000a0> Playing 'all-circuits-busy-now.gsm' (language 'en')
    -- <SIP/8000-000000a0> Playing 'pls-try-call-later.gsm' (language 'en')
    -- Executing [s@macro-outisbusy:5] Congestion("SIP/8000-000000a0", "20") in new stack
  == Spawn extension (macro-outisbusy, s, 5) exited non-zero on 'SIP/8000-000000a0' in macro 'outisbusy'
  == Spawn extension (from-internal, 9098307730, 7) exited non-zero on 'SIP/8000-000000a0'
    -- Executing [h@from-internal:1] Macro("SIP/8000-000000a0", "hangupcall") in new stack
    -- Executing [s@macro-hangupcall:1] GotoIf("SIP/8000-000000a0", "1?endmixmoncheck") in new stack
    -- Goto (macro-hangupcall,s,9)
    -- Executing [s@macro-hangupcall:9] NoOp("SIP/8000-000000a0", "End of MIXMON check") in new stack
    -- Executing [s@macro-hangupcall:10] GotoIf("SIP/8000-000000a0", "1?nomeetmemon") in new stack
    -- Goto (macro-hangupcall,s,28)
    -- Executing [s@macro-hangupcall:28] NoOp("SIP/8000-000000a0", "End of MEETME check") in new stack
    -- Executing [s@macro-hangupcall:29] GotoIf("SIP/8000-000000a0", "1?noautomon") in new stack
    -- Goto (macro-hangupcall,s,34)
    -- Executing [s@macro-hangupcall:34] NoOp("SIP/8000-000000a0", "TOUCH_MONITOR_OUTPUT=") in new stack
    -- Executing [s@macro-hangupcall:35] GotoIf("SIP/8000-000000a0", "1?noautomon2") in new stack
    -- Goto (macro-hangupcall,s,41)
    -- Executing [s@macro-hangupcall:41] NoOp("SIP/8000-000000a0", "MONITOR_FILENAME=") in new stack
    -- Executing [s@macro-hangupcall:42] GotoIf("SIP/8000-000000a0", "1?skiprg") in new stack
    -- Goto (macro-hangupcall,s,45)
    -- Executing [s@macro-hangupcall:45] GotoIf("SIP/8000-000000a0", "1?skipblkvm") in new stack
    -- Goto (macro-hangupcall,s,48)
    -- Executing [s@macro-hangupcall:48] GotoIf("SIP/8000-000000a0", "1?theend") in new stack
    -- Goto (macro-hangupcall,s,50)
    -- Executing [s@macro-hangupcall:50] AGI("SIP/8000-000000a0", "hangup.agi") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/hangup.agi
    -- <SIP/8000-000000a0>AGI Script hangup.agi completed, returning 0
    -- Executing [s@macro-hangupcall:51] Hangup("SIP/8000-000000a0", "") in new stack
  == Spawn extension (macro-hangupcall, s, 51) exited non-zero on 'SIP/8000-000000a0' in macro 'hangupcall'
  == Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/8000-000000a0'


Re: нет входящих звонков

Добавлено: 09 дек 2013, 13:13
awsswa
а номер 098307730 существует ?

Re: нет входящих звонков

Добавлено: 09 дек 2013, 13:21
nesterov
конечно

Re: нет входящих звонков

Добавлено: 09 дек 2013, 13:22
nesterov
есть yalink t22 ip телефон еще под рукой если в него просто вбить данные что дал провайдер то все работает и звонит и принимает звонки!!

Re: нет входящих звонков

Добавлено: 09 дек 2013, 13:25
nesterov
еще прикол
мои настройки
disallow=all
type=friend
defaultuser=login
secret=pass
insecure=invite
port=5060
nat=yes
host=extus.ims.ucom.am (если меняю host=extus.ims.ucom.am на host=ims.ucom.am) то исход работает и теперь нет входящих! тоисть при звонке на сип номер выдает сбой ту ту ту
fromuser=login
context=from-trunk
dtmfmode=rfc2833
allow=alaw
qualify=yes

Re: нет входящих звонков

Добавлено: 09 дек 2013, 13:48
ded
1) Сделайте два пира: один для входящих, другой - для исходящих.
2) или просто попробуйте добавить параметр
fromdomain=

Re: нет входящих звонков

Добавлено: 09 дек 2013, 14:20
april22
-- Executing [9098307730@from-internal:1] Macro("SIP/8000-000000a0", "user-callerid,SKIPTTL,") in new stack
-- Executing [s@macro-dialout-trunk:19] Dial("SIP/8000-000000a0", "SIP/37411411111/098307730,300,") in new stack

мне кажентся тут как то странно ?!

Re: нет входящих звонков

Добавлено: 09 дек 2013, 14:29
ded
Executing [9098307730@from-internal - это он сам свой номер 9098307730 изнутри набирает.