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

Настройка sip от CNT

Новичком считается только что прочитавший «Астериск - будущее телефонии»
http://asterisk.ru/knowledgebase/books
и пытающийся сделать большее

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

mgts
Сообщения: 24
Зарегистрирован: 06 июн 2012, 18:18

Настройка sip от CNT

Сообщение mgts »

Trixbox Asterisk 1.6.0.26
Собственно номер регистрируется, а входящие и исходящие звонки не проходят (
Прошу помощи в настройках.

Sip Registry
qwerty.cnt.ru:5060 8495номер 135 Registered Mon, 08 Oct 2012 18:15:36

sip_additional.conf
PRIME_BBCODE_SPOILER_SHOW PRIME_BBCODE_SPOILER:
[8495номер]
secret=пароль
type=user
context=from-trunk
insecure=port,invite

[Baza]
host=qwerty.cnt.ru
username=8495номер
secret=пароль
type=friend ;peer
insecure=port,invite
Лог при входящем звонке:
PRIME_BBCODE_SPOILER_SHOW PRIME_BBCODE_SPOILER:
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
== Using SIP VRTP TOS bits 136
== Using SIP VRTP CoS mark 6
-- Executing [8495номер@from-sip-external:1] NoOp("SIP/Baza-000002ec", "Received incoming SIP connection from unknown peer to 84956690002") in new stack
-- Executing [8495номер@from-sip-external:2] Set("SIP/Baza-000002ec", "DID=8495номер") in new stack
-- Executing [8495номер@from-sip-external:3] Goto("SIP/Baza-000002ec", "s,1") in new stack
-- Goto (from-sip-external,s,1)
-- Executing [s@from-sip-external:1] GotoIf("SIP/Baza-000002ec", "0?from-trunk,8495номер,1") in new stack
-- Executing [s@from-sip-external:2] Set("SIP/Baza-000002ec", "TIMEOUT(absolute)=15") in new stack
Channel will hangup at 2012-10-08 18:45:56.000 MSD.
-- Executing [s@from-sip-external:3] Answer("SIP/Baza-000002ec", "") in new stack
-- Executing [s@from-sip-external:4] Wait("SIP/Baza-000002ec", "2") in new stack
-- Executing [s@from-sip-external:5] Playback("SIP/Baza-000002ec", "ss-noservice") in new stack
-- <SIP/Baza-000002ec> Playing 'ss-noservice.gsm' (language 'en')
-- Executing [s@from-sip-external:6] PlayTones("SIP/Baza-000002ec", "congestion") in new stack
-- Executing [s@from-sip-external:7] Congestion("SIP/Baza-000002ec", "5") in new stack
== Spawn extension (from-sip-external, s, 7) exited non-zero on 'SIP/Baza-000002ec'
-- Executing [h@from-sip-external:1] NoOp("SIP/Baza-000002ec", "Hangup") in new stack
-- Executing [h@from-sip-external:2] Set("SIP/Baza-000002ec", "DID=s") in new stack
-- Executing [h@from-sip-external:3] Goto("SIP/Baza-000002ec", "s,1") in new stack
-- Goto (from-sip-external,s,1)
-- Executing [s@from-sip-external:1] GotoIf("SIP/Baza-000002ec", "0?from-trunk,s,1") in new stack
-- Executing [s@from-sip-external:2] Set("SIP/Baza-000002ec", "TIMEOUT(absolute)=15") in new stack
Channel will hangup at 2012-10-08 18:46:05.000 MSD.
-- Executing [s@from-sip-external:3] Answer("SIP/Baza-000002ec", "") in new stack
== Spawn extension (from-sip-external, s, 3) exited non-zero on 'SIP/Baza-000002ec'
При исходящей связи лог:
PRIME_BBCODE_SPOILER_SHOW PRIME_BBCODE_SPOILER:
<------------->
--- (15 headers 17 lines) ---
Sending to 10.10.0.100 : 5060 (NAT)
Using INVITE request as basis request - 3724803692@10_10_0_100
Found user '100' for '100'
Found RTP audio format 9
Found RTP audio format 8
Found RTP audio format 0
Found RTP audio format 96
Found RTP audio format 97
Found RTP audio format 2
Found RTP audio format 18
Found RTP audio format 101
Found audio description format G722 for ID 9
Found audio description format PCMA for ID 8
Found audio description format PCMU for ID 0
Found audio description format G726-32 for ID 96
Found audio description format AAL2-G726-32 for ID 97
Found audio description format G726-32 for ID 2
Found audio description format G729 for ID 18
Found audio description format telephone-event for ID 101
Capabilities: us - 0x28000c (ulaw|alaw|h263|h264), peer - audio=0x191c (ulaw|alaw|g726|g729|g726aal2|g722)/video=0x0 (nothing)/text=0x0 (nothing), combined - 0xc (ulaw|alaw)
Non-codec capabilities (dtmf): us - 0x1 (telephone-event), peer - 0x1 (telephone-event), combined - 0x1 (telephone-event)
Peer audio RTP is at port 10.10.0.100:5004
Peer doesn't provide video
Looking for НомерКудаЗвоню in from-internal (domain 10.10.0.5)
list_route: hop: <sip:100@10.10.0.100:5060>
trixbox1*CLI>
<--- Transmitting (NAT) to 10.10.0.100:5060 --->
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 10.10.0.100:5060;branch=z9hG4bK116965c9e6df3d6f6c06517d9a7e8f7;received=10.10.0.100;rport=5060
From: <sip:100@10.10.0.5>;tag=2965917619
To: <sip:НомерКудаЗвоню@10.10.0.5;user=phone>
Call-ID: 3724803692@10_10_0_100
CSeq: 3 INVITE
User-Agent: Asterisk PBX 1.6.0.26-FONCORE-r78
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO
Supported: replaces, timer
Contact: <sip:НомерКудаЗвоню@10.10.0.5>
Content-Length: 0


<------------>
-- Executing [НомерКудаЗвоню@from-internal:1] Macro("SIP/100-000002f1", "user-callerid,SKIPTTL,") in new stack
-- Executing [s@macro-user-callerid:1] Set("SIP/100-000002f1", "AMPUSER=100") in new stack
-- Executing [s@macro-user-callerid:2] GotoIf("SIP/100-000002f1", "0?report") in new stack
-- Executing [s@macro-user-callerid:3] ExecIf("SIP/100-000002f1", "1?Set(REALCALLERIDNUM=100)") in new stack
-- Executing [s@macro-user-callerid:4] Set("SIP/100-000002f1", "AMPUSER=100") in new stack
-- Executing [s@macro-user-callerid:5] Set("SIP/100-000002f1", "AMPUSERCIDNAME=Boss") in new stack
-- Executing [s@macro-user-callerid:6] GotoIf("SIP/100-000002f1", "0?report") in new stack
-- Executing [s@macro-user-callerid:7] Set("SIP/100-000002f1", "AMPUSERCID=100") in new stack
-- Executing [s@macro-user-callerid:8] Set("SIP/100-000002f1", "CALLERID(all)="Boss" <100>") in new stack
-- Executing [s@macro-user-callerid:9] ExecIf("SIP/100-000002f1", "0?Set(CHANNEL(language)=)") in new stack
-- Executing [s@macro-user-callerid:10] GotoIf("SIP/100-000002f1", "1?continue") in new stack
-- Goto (macro-user-callerid,s,19)
-- Executing [s@macro-user-callerid:19] NoOp("SIP/100-000002f1", "Using CallerID "Boss" <100>") in new stack
-- Executing [НомерКудаЗвоню@from-internal:2] Set("SIP/100-000002f1", "_NODEST=") in new stack
-- Executing [НомерКудаЗвоню@from-internal:3] Macro("SIP/100-000002f1", "record-enable,100,OUT,") in new stack
-- Executing [s@macro-record-enable:1] GotoIf("SIP/100-000002f1", "1?check") in new stack
-- Goto (macro-record-enable,s,4)
-- Executing [s@macro-record-enable:4] AGI("SIP/100-000002f1", "recordingcheck,20121008-185112,1349707872.847") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
recordingcheck,20121008-185112,1349707872.847: Outbound recording enabled.
recordingcheck,20121008-185112,1349707872.847: CALLFILENAME=OUT100-20121008-185112-1349707872.847
-- <SIP/100-000002f1>AGI Script recordingcheck completed, returning 0
-- Executing [s@macro-record-enable:999] MixMonitor("SIP/100-000002f1", "OUT100-20121008-185112-1349707872.847.wav,,") in new stack
-- Executing [НомерКудаЗвоню@from-internal:4] Macro("SIP/100-000002f1", "dialout-trunk,2,НомерКудаЗвоню,,") in new stack
-- Executing [s@macro-dialout-trunk:1] Set("SIP/100-000002f1", "DIAL_TRUNK=2") in new stack
-- Executing [s@macro-dialout-trunk:2] GosubIf("SIP/100-000002f1", "0?sub-pincheck,s,1") in new stack
== Begin MixMonitor Recording SIP/100-000002f1
-- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/100-000002f1", "0?disabletrunk,1") in new stack
-- Executing [s@macro-dialout-trunk:4] Set("SIP/100-000002f1", "DIAL_NUMBER=НомерКудаЗвоню") in new stack
-- Executing [s@macro-dialout-trunk:5] Set("SIP/100-000002f1", "DIAL_TRUNK_OPTIONS=tr") in new stack
-- Executing [s@macro-dialout-trunk:6] Set("SIP/100-000002f1", "OUTBOUND_GROUP=OUT_2") in new stack
-- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/100-000002f1", "1?nomax") in new stack
-- Goto (macro-dialout-trunk,s,9)
-- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/100-000002f1", "0?skipoutcid") in new stack
-- Executing [s@macro-dialout-trunk:10] Set("SIP/100-000002f1", "DIAL_TRUNK_OPTIONS=") in new stack
-- Executing [s@macro-dialout-trunk:11] Macro("SIP/100-000002f1", "outbound-callerid,2") in new stack
-- Executing [s@macro-outbound-callerid:1] ExecIf("SIP/100-000002f1", "0?Set(CALLERPRES()=)") in new stack
-- Executing [s@macro-outbound-callerid:2] ExecIf("SIP/100-000002f1", "0?Set(REALCALLERIDNUM=100)") in new stack
-- Executing [s@macro-outbound-callerid:3] GotoIf("SIP/100-000002f1", "1?normcid") in new stack
-- Goto (macro-outbound-callerid,s,6)
-- Executing [s@macro-outbound-callerid:6] Set("SIP/100-000002f1", "USEROUTCID=") in new stack
-- Executing [s@macro-outbound-callerid:7] Set("SIP/100-000002f1", "EMERGENCYCID=") in new stack
-- Executing [s@macro-outbound-callerid:8] Set("SIP/100-000002f1", "TRUNKOUTCID=8495номер") in new stack
-- Executing [s@macro-outbound-callerid:9] GotoIf("SIP/100-000002f1", "1?trunkcid") in new stack
-- Goto (macro-outbound-callerid,s,12)
-- Executing [s@macro-outbound-callerid:12] ExecIf("SIP/100-000002f1", "1?Set(CALLERID(all)=8495номер)") in new stack
-- Executing [s@macro-outbound-callerid:13] ExecIf("SIP/100-000002f1", "0?Set(CALLERID(all)=)") in new stack
-- Executing [s@macro-outbound-callerid:14] ExecIf("SIP/100-000002f1", "0?Set(CALLERPRES()=prohib_passed_screen)") in new stack
-- Executing [s@macro-dialout-trunk:12] ExecIf("SIP/100-000002f1", "1?AGI(fixlocalprefix)") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/fixlocalprefix
-- <SIP/100-000002f1>AGI Script fixlocalprefix completed, returning 0
-- Executing [s@macro-dialout-trunk:13] Set("SIP/100-000002f1", "OUTNUM=НомерКудаЗвоню") in new stack
-- Executing [s@macro-dialout-trunk:14] Set("SIP/100-000002f1", "custom=SIP/Baza") in new stack
-- Executing [s@macro-dialout-trunk:15] ExecIf("SIP/100-000002f1", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^))") in new stack
-- Executing [s@macro-dialout-trunk:16] Macro("SIP/100-000002f1", "dialout-trunk-predial-hook,") in new stack
-- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("SIP/100-000002f1", "") in new stack
-- Executing [s@macro-dialout-trunk:17] GotoIf("SIP/100-000002f1", "0?bypass,1") in new stack
-- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/100-000002f1", "0?customtrunk") in new stack
-- Executing [s@macro-dialout-trunk:19] Dial("SIP/100-000002f1", "SIP/Baza/НомерКудаЗвоню,300,") in new stack
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
== Using SIP VRTP TOS bits 136
== Using SIP VRTP CoS mark 6
-- Called Baza/НомерКудаЗвоню
-- SIP/Baza-000002f2 is circuit-busy
== Everyone is busy/congested at this time (1:0/1/0)
-- Executing [s@macro-dialout-trunk:20] Goto("SIP/100-000002f1", "s-CONGESTION,1") in new stack
-- Goto (macro-dialout-trunk,s-CONGESTION,1)
-- Executing [s-CONGESTION@macro-dialout-trunk:1] GotoIf("SIP/100-000002f1", "1?noreport") in new stack
-- Goto (macro-dialout-trunk,s-CONGESTION,3)
-- Executing [s-CONGESTION@macro-dialout-trunk:3] NoOp("SIP/100-000002f1", "TRUNK Dial failed due to CONGESTION - failing through to other trunks") in new stack
-- Executing [НомерКудаЗвоню@from-internal:5] Macro("SIP/100-000002f1", "outisbusy,") in new stack
-- Executing [s@macro-outisbusy:1] Playback("SIP/100-000002f1", "all-circuits-busy-now,noanswer") in new stack
Audio is at 10.10.0.5 port 15950
Adding codec 0x4 (ulaw) to SDP
Adding codec 0x8 (alaw) to SDP
Adding non-codec 0x1 (telephone-event) to SDP
trixbox1*CLI>
<--- Transmitting (NAT) to 10.10.0.100:5060 --->
SIP/2.0 183 Session Progress
Via: SIP/2.0/UDP 10.10.0.100:5060;branch=z9hG4bK116965c9e6df3d6f6c06517d9a7e8f7;received=10.10.0.100;rport=5060
From: <sip:100@10.10.0.5>;tag=2965917619
To: <sip:НомерКудаЗвоню@10.10.0.5;user=phone>;tag=as18236104
Call-ID: 3724803692@10_10_0_100
CSeq: 3 INVITE
User-Agent: Asterisk PBX 1.6.0.26-FONCORE-r78
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO
Supported: replaces, timer
Contact: <sip:НомерКудаЗвоню@10.10.0.5>
Content-Type: application/sdp
Content-Length: 292

v=0
o=root 852825267 852825267 IN IP4 10.10.0.5
s=Asterisk PBX 1.6.0.26-FONCORE-r78
c=IN IP4 10.10.0.5
t=0 0
m=audio 15950 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=silenceSupp:off - - - -
a=ptime:20
a=sendrecv

<------------>
-- <SIP/100-000002f1> Playing 'all-circuits-busy-now.ulaw' (language 'en')
-- Executing [s@macro-outisbusy:2] Playback("SIP/100-000002f1", "pls-try-call-later,noanswer") in new stack
-- <SIP/100-000002f1> Playing 'pls-try-call-later.ulaw' (language 'en')
trixbox1*CLI>
<--- SIP read from UDP://10.10.0.100:5060 --->
CANCEL sip:НомерКудаЗвоню@10.10.0.5;user=phone SIP/2.0
Via: SIP/2.0/UDP 10.10.0.100:5060;branch=z9hG4bK116965c9e6df3d6f6c06517d9a7e8f7;rport
From: <sip:100@10.10.0.5>;tag=2965917619
To: <sip:НомерКудаЗвоню@10.10.0.5;user=phone>
Call-ID: 3724803692@10_10_0_100
CSeq: 3 CANCEL
Contact: <sip:100@10.10.0.100:5060>
Authorization: Digest username="100", realm="asterisk", algorithm=MD5, uri="sip:НомерКудаЗвоню@10.10.0.5;user=phone", nonce="4e52b608", response="79d4db1928879bc59c37d0664bdae976"
Max-Forwards: 70
User-Agent: A510 IP/42.072.00.000.000
Content-Length: 0


<------------->
--- (11 headers 0 lines) ---
Sending to 10.10.0.100 : 5060 (NAT)

<--- Reliably Transmitting (NAT) to 10.10.0.100:5060 --->
SIP/2.0 487 Request Terminated
Via: SIP/2.0/UDP 10.10.0.100:5060;branch=z9hG4bK116965c9e6df3d6f6c06517d9a7e8f7;received=10.10.0.100;rport=5060
From: <sip:100@10.10.0.5>;tag=2965917619
To: <sip:НомерКудаЗвоню@10.10.0.5;user=phone>;tag=as18236104
Call-ID: 3724803692@10_10_0_100
CSeq: 3 INVITE
User-Agent: Asterisk PBX 1.6.0.26-FONCORE-r78
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO
Supported: replaces, timer
Content-Length: 0


<------------>

<--- Transmitting (NAT) to 10.10.0.100:5060 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 10.10.0.100:5060;branch=z9hG4bK116965c9e6df3d6f6c06517d9a7e8f7;received=10.10.0.100;rport=5060
From: <sip:100@10.10.0.5>;tag=2965917619
To: <sip:НомерКудаЗвоню@10.10.0.5;user=phone>;tag=as18236104
Call-ID: 3724803692@10_10_0_100
CSeq: 3 CANCEL
User-Agent: Asterisk PBX 1.6.0.26-FONCORE-r78
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO
Supported: replaces, timer
Content-Length: 0


<------------>
== Spawn extension (macro-outisbusy, s, 2) exited non-zero on 'SIP/100-000002f1' in macro 'outisbusy'
== Spawn extension (from-internal, НомерКудаЗвоню, 5) exited non-zero on 'SIP/100-000002f1'
-- Executing [h@from-internal:1] Macro("SIP/100-000002f1", "hangupcall") in new stack
-- Executing [s@macro-hangupcall:1] GotoIf("SIP/100-000002f1", "1?skiprg") in new stack
-- Goto (macro-hangupcall,s,4)
-- Executing [s@macro-hangupcall:4] GotoIf("SIP/100-000002f1", "1?skipblkvm") in new stack
-- Goto (macro-hangupcall,s,7)
-- Executing [s@macro-hangupcall:7] GotoIf("SIP/100-000002f1", "1?theend") in new stack
-- Goto (macro-hangupcall,s,9)
-- Executing [s@macro-hangupcall:9] Hangup("SIP/100-000002f1", "") in new stack
== Spawn extension (macro-hangupcall, s, 9) exited non-zero on 'SIP/100-000002f1' in macro 'hangupcall'
== Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/100-000002f1'
== MixMonitor close filestream
== End MixMonitor Recording SIP/100-000002f1
trixbox1*CLI>
<--- SIP read from UDP://10.10.0.100:5060 --->
ACK sip:НомерКудаЗвоню@10.10.0.5;user=phone SIP/2.0
Via: SIP/2.0/UDP 10.10.0.100:5060;branch=z9hG4bK116965c9e6df3d6f6c06517d9a7e8f7;rport
From: <sip:100@10.10.0.5>;tag=2965917619
To: <sip:НомерКудаЗвоню@10.10.0.5;user=phone>;tag=as18236104
Call-ID: 3724803692@10_10_0_100
CSeq: 3 ACK
Contact: <sip:100@10.10.0.100:5060>
Authorization: Digest username="100", realm="asterisk", algorithm=MD5, uri="sip:НомерКудаЗвоню@10.10.0.5;user=phone", nonce="4e52b608", response="000c4632bea3b7be577c7e56d38d29fa"
Max-Forwards: 70
User-Agent: A510 IP/42.072.00.000.000
Content-Length: 0


<------------->
--- (11 headers 0 lines) ---
Really destroying SIP dialog '3724803692@10_10_0_100' Method: ACK
чувствую, что что то не то с маршрутом.
Trixbox Asterisk 1.6.0.26
ded
Сообщения: 15626
Зарегистрирован: 26 авг 2010, 19:00

Re: Настройка sip от CNT

Сообщение ded »

Разве проблема с соединением на asterisk.org?
Думается Вам надо обращаться в техподдержку qwerty.cnt.ru
mgts
Сообщения: 24
Зарегистрирован: 06 июн 2012, 18:18

Re: Настройка sip от CNT

Сообщение mgts »

Я предположил, что дело в маршрутах, т.к. при входящем звонке именно астериск ругается, что то типа "номер не активен"
Не пойму куда копать (
Trixbox Asterisk 1.6.0.26
mgts
Сообщения: 24
Зарегистрирован: 06 июн 2012, 18:18

Re: Настройка sip от CNT

Сообщение mgts »

ded писал(а):Разве проблема с соединением на asterisk.org?
Думается Вам надо обращаться в техподдержку qwerty.cnt.ru
они ни чем помочь не могут: Пробуйте как на сайте указано, через софт-телефон... Получается? Ну вот видите! Все работает!
как то так. ..
Trixbox Asterisk 1.6.0.26
jugatsu
Сообщения: 298
Зарегистрирован: 31 май 2011, 15:56

Re: Настройка sip от CNT

Сообщение jugatsu »

нах*я sip_additional.conf о_О

выложи скрины настроек
mgts
Сообщения: 24
Зарегистрирован: 06 июн 2012, 18:18

Re: Настройка sip от CNT

Сообщение mgts »

Скан каких настроек нужен?
Trixbox Asterisk 1.6.0.26
Аватара пользователя
zzuz
Сообщения: 1658
Зарегистрирован: 21 сен 2010, 13:33
Контактная информация:

Re: Настройка sip от CNT

Сообщение zzuz »

Видимо имеется ввиду скан паспорта.
Линия24 - Системы Массового Телефонного Обслуживания
mgts
Сообщения: 24
Зарегистрирован: 06 июн 2012, 18:18

Re: Настройка sip от CNT

Сообщение mgts »

скрин-скан "какая в попу разница, мальчик или девочка (с) :lol:
Trixbox Asterisk 1.6.0.26
mgts
Сообщения: 24
Зарегистрирован: 06 июн 2012, 18:18

Re: Настройка sip от CNT

Сообщение mgts »

собственно, сам спросил, сам отвечу... про входящие звонки:
Основные настройки -->> Установки безопасности -->> Разрешить входящие анонимные SIP звонки?: -->> да

Теперь остался вопрос про исходящие ( Так... проблема решается наскоками...
Trixbox Asterisk 1.6.0.26
ded
Сообщения: 15626
Зарегистрирован: 26 авг 2010, 19:00

Re: Настройка sip от CNT

Сообщение ded »

Основные настройки -->> Установки безопасности -->> Разрешить кому угодно звонить куда угодно?: -->> да, скока хошь!
Ответить
© 2008 — 2025 Asterisk.ru
Digium, Asterisk and AsteriskNOW are registered trademarks of Digium, Inc.
Design and development by PostMet-Netzwerk GmbH