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

asterisk + SI3000 нет исходящих

Добавлено: 10 июн 2011, 20:24
hellard
Дано Asterisk 1.8.4.2 + FreePBX 2.9.0.6
Состыкован посредством SIP со станцией SI 3000.
Есть входящие, работает безукоризненно.
Дошло дело до настройки исходящей связи, и тут имеем полную жо#у в виде следующего.
При попытке сиходящего звонка получаем отбой и такое на консольке (включен sip set debug ip 10.0.0.2):

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

ipats*CLI>
  == Using SIP RTP TOS bits 184
  == Using SIP RTP CoS mark 5
    -- Executing [357457@from-internal:1] Macro("SIP/911-000000a0", "user-callerid,LIMIT,") in new stack
    -- Executing [s@macro-user-callerid:1] Set("SIP/911-000000a0", "AMPUSER=911") in new stack
    -- Executing [s@macro-user-callerid:2] GotoIf("SIP/911-000000a0", "0?report") in new stack
    -- Executing [s@macro-user-callerid:3] ExecIf("SIP/911-000000a0", "1?Set(REALCALLERIDNUM=911)") in new stack
    -- Executing [s@macro-user-callerid:4] Set("SIP/911-000000a0", "AMPUSER=911") in new stack
    -- Executing [s@macro-user-callerid:5] Set("SIP/911-000000a0", "AMPUSERCIDNAME=Hellard home") in new stack
    -- Executing [s@macro-user-callerid:6] GotoIf("SIP/911-000000a0", "0?report") in new stack
    -- Executing [s@macro-user-callerid:7] Set("SIP/911-000000a0", "AMPUSERCID=911") in new stack
    -- Executing [s@macro-user-callerid:8] Set("SIP/911-000000a0", "CALLERID(all)="Hellard home" <911>") in new stack
    -- Executing [s@macro-user-callerid:9] GotoIf("SIP/911-000000a0", "0?limit") in new stack
    -- Executing [s@macro-user-callerid:10] ExecIf("SIP/911-000000a0", "1?Set(GROUP(concurrency_limit)=911)") in new stack
    -- Executing [s@macro-user-callerid:11] GosubIf("SIP/911-000000a0", "7?sub-ccss,s,1(from-internal,357457)") in new stack
    -- Executing [s@sub-ccss:1] ExecIf("SIP/911-000000a0", "0?Return()") in new stack
    -- Executing [s@sub-ccss:2] Set("SIP/911-000000a0", "CCSS_SETUP=TRUE") in new stack
    -- Executing [s@sub-ccss:3] GosubIf("SIP/911-000000a0", "0?monitor_config,1(from-internal,357457):monitor_default,1(from-internal,357457)") in new stack
    -- Executing [monitor_default@sub-ccss:1] GotoIf("SIP/911-000000a0", "0?is_exten") in new stack
    -- Executing [monitor_default@sub-ccss:2] StackPop("SIP/911-000000a0", "") in new stack
    -- Executing [monitor_default@sub-ccss:3] Return("SIP/911-000000a0", "FALSE") in new stack
    -- Executing [s@macro-user-callerid:12] ExecIf("SIP/911-000000a0", "1?Set(CHANNEL(language)=ru)") in new stack
    -- Executing [s@macro-user-callerid:13] GotoIf("SIP/911-000000a0", "1?continue") in new stack

    -- Goto (macro-user-callerid,s,26)
    -- Executing [s@macro-user-callerid:26] Set("SIP/911-000000a0", "CALLERID(number)=911") in new stack
    -- Executing [s@macro-user-callerid:27] Set("SIP/911-000000a0", "CALLERID(name)=Hellard home") in new stack
    -- Executing [s@macro-user-callerid:28] Set("SIP/911-000000a0", "CHANNEL(language)=ru") in new stack
    -- Executing [357457@from-internal:2] Set("SIP/911-000000a0", "MOHCLASS=default") in new stack
    -- Executing [357457@from-internal:3] Set("SIP/911-000000a0", "_NODEST=") in new stack
    -- Executing [357457@from-internal:4] Macro("SIP/911-000000a0", "record-enable,911,OUT,") in new stack
    -- Executing [s@macro-record-enable:1] GotoIf("SIP/911-000000a0", "1?check") in new stack
    -- Goto (macro-record-enable,s,4)
    -- Executing [s@macro-record-enable:4] ExecIf("SIP/911-000000a0", "0?MacroExit()") in new stack
    -- Executing [s@macro-record-enable:5] GotoIf("SIP/911-000000a0", "0?Group:OUT") in new stack
    -- Goto (macro-record-enable,s,14)
    -- Executing [s@macro-record-enable:14] GotoIf("SIP/911-000000a0", "0?IN") in new stack
    -- Executing [s@macro-record-enable:15] ExecIf("SIP/911-000000a0", "1?MacroExit()") in new stack
    -- Executing [357457@from-internal:5] Macro("SIP/911-000000a0", "dialout-trunk,1,357457,") in new stack
    -- Executing [s@macro-dialout-trunk:1] Set("SIP/911-000000a0", "DIAL_TRUNK=1") in new stack
    -- Executing [s@macro-dialout-trunk:2] GosubIf("SIP/911-000000a0", "0?sub-pincheck,s,1") in new stack
    -- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/911-000000a0", "0?disabletrunk,1") in new stack
    -- Executing [s@macro-dialout-trunk:4] Set("SIP/911-000000a0", "DIAL_NUMBER=357457") in new stack
    -- Executing [s@macro-dialout-trunk:5] Set("SIP/911-000000a0", "DIAL_TRUNK_OPTIONS=tr") in new stack
    -- Executing [s@macro-dialout-trunk:6] Set("SIP/911-000000a0", "OUTBOUND_GROUP=OUT_1") in new stack
    -- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/911-000000a0", "0?nomax") in new stack
    -- Executing [s@macro-dialout-trunk:8] GotoIf("SIP/911-000000a0", "0?chanfull") in new stack
    -- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/911-000000a0", "0?skipoutcid") in new stack
    -- Executing [s@macro-dialout-trunk:10] Set("SIP/911-000000a0", "DIAL_TRUNK_OPTIONS=") in new stack
    -- Executing [s@macro-dialout-trunk:11] Macro("SIP/911-000000a0", "outbound-callerid,1") in new stack
    -- Executing [s@macro-outbound-callerid:1] ExecIf("SIP/911-000000a0", "0?Set(CALLERPRES()=)") in new stack
    -- Executing [s@macro-outbound-callerid:2] ExecIf("SIP/911-000000a0", "0?Set(REALCALLERIDNUM=911)") in new stack
    -- Executing [s@macro-outbound-callerid:3] GotoIf("SIP/911-000000a0", "1?normcid") in new stack
    -- Goto (macro-outbound-callerid,s,6)


    -- Executing [s@macro-outbound-callerid:6] Set("SIP/911-000000a0", "USEROUTCID=") in new stack
    -- Executing [s@macro-outbound-callerid:7] Set("SIP/911-000000a0", "EMERGENCYCID=") in new stack
    -- Executing [s@macro-outbound-callerid:8] Set("SIP/911-000000a0", "TRUNKOUTCID=358709") in new stack
    -- Executing [s@macro-outbound-callerid:9] GotoIf("SIP/911-000000a0", "1?trunkcid") in new stack
    -- Goto (macro-outbound-callerid,s,12)
    -- Executing [s@macro-outbound-callerid:12] ExecIf("SIP/911-000000a0", "1?Set(CALLERID(all)=358709)") in new stack
    -- Executing [s@macro-outbound-callerid:13] ExecIf("SIP/911-000000a0", "0?Set(CALLERID(all)=)") in new stack
    -- Executing [s@macro-outbound-callerid:14] ExecIf("SIP/911-000000a0", "0?Set(CALLERID(all)=)") in new stack
    -- Executing [s@macro-outbound-callerid:15] ExecIf("SIP/911-000000a0", "0?Set(CALLERPRES()=prohib_passed_screen)") in new stack
    -- Executing [s@macro-dialout-trunk:12] GosubIf("SIP/911-000000a0", "0?sub-flp-1,s,1") in new stack
    -- Executing [s@macro-dialout-trunk:13] Set("SIP/911-000000a0", "OUTNUM=357457") in new stack
    -- Executing [s@macro-dialout-trunk:14] Set("SIP/911-000000a0", "custom=SIP/358709") in new stack
    -- Executing [s@macro-dialout-trunk:15] ExecIf("SIP/911-000000a0", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default))") in new stack
    -- Executing [s@macro-dialout-trunk:16] ExecIf("SIP/911-000000a0", "0?Set(DIAL_TRUNK_OPTIONS=M(confirm))") in new stack
    -- Executing [s@macro-dialout-trunk:17] Macro("SIP/911-000000a0", "dialout-trunk-predial-hook,") in new stack
    -- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("SIP/911-000000a0", "") in new stack
    -- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/911-000000a0", "0?bypass,1") in new stack
    -- Executing [s@macro-dialout-trunk:19] GotoIf("SIP/911-000000a0", "0?customtrunk") in new stack
    -- Executing [s@macro-dialout-trunk:20] Dial("SIP/911-000000a0", "SIP/358709/357457,300,") in new stack
  == Using SIP RTP TOS bits 184
  == Using SIP RTP CoS mark 5
Audio is at 5060
Adding codec 0x4 (ulaw) to SDP
Adding codec 0x8 (alaw) to SDP
Adding non-codec 0x1 (telephone-event) to SDP
Reliably Transmitting (no NAT) to 10.0.0.2:5060:
INVITE sip:357457@10.0.0.2 SIP/2.0
Via: SIP/2.0/UDP 10.91.51.246:5060;branch=z9hG4bK370cc69c
Max-Forwards: 70
From: "358709" <sip:358709@10.91.51.246>;tag=as49196822


To: <sip:357457@10.0.0.2>
Contact: <sip:358709@10.91.51.246:5060>
Call-ID: 4531955b37140d785779c44e6f6b4b36@10.91.51.246:5060
CSeq: 102 INVITE
User-Agent: FPBX-2.9.0(1.8.4.2)
Date: Fri, 10 Jun 2011 16:17:57 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Type: application/sdp
Content-Length: 260

v=0
o=root 2005812287 2005812287 IN IP4 10.91.51.246
s=Asterisk PBX 1.8.4.2
c=IN IP4 10.91.51.246
t=0 0
m=audio 11124 RTP/AVP 0 8 101
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=sendrecv

---
    -- Called 358709/357457

<--- SIP read from UDP:10.0.0.2:5060 --->
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 10.91.51.246:5060;branch=z9hG4bK370cc69c
From: "358709" <sip:358709@10.91.51.246>;tag=as49196822
To: <sip:357457@10.0.0.2>
Call-ID: 4531955b37140d785779c44e6f6b4b36@10.91.51.246:5060
CSeq: 102 INVITE


<------------->
--- (6 headers 0 lines) ---

<--- SIP read from UDP:10.0.0.2:5060 --->
SIP/2.0 503 Service Unavailable
Via: SIP/2.0/UDP 10.91.51.246:5060;branch=z9hG4bK370cc69c
From: "358709" <sip:358709@10.91.51.246>;tag=as49196822
To: <sip:357457@10.0.0.2>;tag=SDs6cp799-ouhb-pfa3g6o3s1
Call-ID: 4531955b37140d785779c44e6f6b4b36@10.91.51.246:5060
CSeq: 102 INVITE
Content-Length: 0

<------------->
--- (7 headers 0 lines) ---
    -- Got SIP response 503 "Service Unavailable" back from 10.0.0.2:5060
Transmitting (no NAT) to 10.0.0.2:5060:
ACK sip:357457@10.0.0.2 SIP/2.0
Via: SIP/2.0/UDP 10.91.51.246:5060;branch=z9hG4bK370cc69c
Max-Forwards: 70
From: "358709" <sip:358709@10.91.51.246>;tag=as49196822
To: <sip:357457@10.0.0.2>;tag=SDs6cp799-ouhb-pfa3g6o3s1
Contact: <sip:358709@10.91.51.246:5060>
Call-ID: 4531955b37140d785779c44e6f6b4b36@10.91.51.246:5060
CSeq: 102 ACK
User-Agent: FPBX-2.9.0(1.8.4.2)
Content-Length: 0


---
    -- SIP/358709-000000a1 is circuit-busy
  == Everyone is busy/congested at this time (1:0/1/0)
    -- Executing [s@macro-dialout-trunk:21] NoOp("SIP/911-000000a0", "Dial failed for some reason with DIALSTATUS = CONGESTION and HANGUPCAUSE = 34") in new stack
    -- Executing [s@macro-dialout-trunk:22] Goto("SIP/911-000000a0", "s-CONGESTION,1") in new stack
    -- Goto (macro-dialout-trunk,s-CONGESTION,1)
    -- Executing [s-CONGESTION@macro-dialout-trunk:1] Set("SIP/911-000000a0", "RC=34") in new stack
    -- Executing [s-CONGESTION@macro-dialout-trunk:2] Goto("SIP/911-000000a0", "34,1") in new stack
    -- Goto (macro-dialout-trunk,34,1)
    -- Executing [34@macro-dialout-trunk:1] Goto("SIP/911-000000a0", "continue,1") in new stack
    -- Goto (macro-dialout-trunk,continue,1)
    -- Executing [continue@macro-dialout-trunk:1] GotoIf("SIP/911-000000a0", "1?noreport") in new stack
    -- Goto (macro-dialout-trunk,continue,3)
    -- Executing [continue@macro-dialout-trunk:3] NoOp("SIP/911-000000a0", "TRUNK Dial failed due to CONGESTION HANGUPCAUSE: 34 - failing through to other trunks") in new stack
    -- Executing [continue@macro-dialout-trunk:4] Set("SIP/911-000000a0", "CALLERID(number)=911") in new stack
    -- Executing [357457@from-internal:6] Macro("SIP/911-000000a0", "outisbusy,") in new stack
    -- Executing [s@macro-outisbusy:1] Progress("SIP/911-000000a0", "") in new stack
    -- Executing [s@macro-outisbusy:2] GotoIf("SIP/911-000000a0", "0?emergency,1") in new stack
    -- Executing [s@macro-outisbusy:3] GotoIf("SIP/911-000000a0", "0?intracompany,1") in new stack
    -- Executing [s@macro-outisbusy:4] Playback("SIP/911-000000a0", "all-circuits-busy-now&pls-try-call-later, noanswer") in new stack
    -- <SIP/911-000000a0> Playing 'all-circuits-busy-now.ulaw' (language 'ru')
Really destroying SIP dialog '4531955b37140d785779c44e6f6b4b36@10.91.51.246:5060' Method: INVITE
    -- <SIP/911-000000a0> Playing 'pls-try-call-later.ulaw' (language 'ru')
  == Spawn extension (macro-outisbusy, s, 4) exited non-zero on 'SIP/911-000000a0' in macro 'outisbusy'
  == Spawn extension (from-internal, 357457, 6) exited non-zero on 'SIP/911-000000a0'
    -- Executing [h@from-internal:1] Hangup("SIP/911-000000a0", "") in new stack
  == Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/911-000000a0'
ipats*CLI>
Толи лыжи не едут.... Однако я уже по всякому перепробовал. Удаленная сторона повернулась попой, в виду своей неприступной крутости (а-ля ростелеком). Говорят что у них черный ящик под названием SI3000 и посмотреть что у них происходит типа они не могут.

Любой другой SIP телефон отлично работает как на входяще так и на исходящие с базойвой настройкой в виде username + secret + host.

ЗЫ. выходит что с лыжами порядок, а проблема во мне. :)
ЗЫ. гуру, помогите плиз, походу сам не сдюжу.

Re: asterisk + SI3000 нет исходящих

Добавлено: 10 июн 2011, 20:48
gofer_k
503 Service Unavailable этим все сказано.

Re: asterisk + SI3000 нет исходящих

Добавлено: 10 июн 2011, 20:59
hellard
Я даже между строк не прошу читать. :)
Любой другой SIP телефон отлично работает как на входяще так и на исходящие с базойвой настройкой в виде username + secret + host.

Re: asterisk + SI3000 нет исходящих

Добавлено: 10 июн 2011, 21:04
ded
Dial("SIP/911-000000a0", "SIP/358709/357457,300,") - что посылаете то и получаете.

SI3000 надо настроить как транк а не как экстеншн 358709, чтоьы диал был логичным - SIP/SI3000/357457 (технология/узел/экстеншн).

А пока что вместо телефона № 358709 Вы подключили Астериск я полагаю. Даже если так, то ничто не мешает сделать SIP транк и обозвать его как угодно:
SI3000
type=friend
host=10.0.0.2
username=358709
secret=?
fromuser=358709
fromdomain=10.0.0.2


и добавить в исходящие маршруты правило набора через этот транк, типа 35ХХХХ

Re: asterisk + SI3000 нет исходящих

Добавлено: 10 июн 2011, 21:12
hellard
Фига себе! Огромная благодарность, даже и предположить не смел что это может иметь столь глобальное значение.
Однако так как настраивал через FreePBX и подумать не мог, что мой номер 358709 не являет собой уникальное имя транка.
:)

зы. как говорится век живи, век учись. еще баз благодарю.

Re: asterisk + SI3000 нет исходящих

Добавлено: 10 июн 2011, 21:16
ded
Уникальным для SI3000 является fromuser=358709 при посылке исходящего звонка, а как зтот пир обзываем на Астериске - это наше дело, это никуда не передаётся.