Вход | Регистрация
Вы здесь: Главная / Форум / Главный форум по Asterisk / Конфигурация и настройка / по pri приходит connect если абонент получивший звонок через sip транк моментально сбрасывает его

по pri приходит connect если абонент получивший звонок через sip транк моментально сбрасывает его

по pri приходит connect если абонент получивший звонок через sip транк моментально сбрасывает его
Сообщений: 23

по pri приходит connect если абонент получивший звонок через sip транк моментально сбрасывает его

Asterisk 1.6.2.5-0ubuntu1
libpri version: 1.4.10.2

звоню с атс по e1 в sip транк на мобильный телефон
если абонент моментально сбрасывает звонок
по сип приходит 487 busy
если же через пол секунды сбрасывает
по сип приходит bye
эти события я обрабатываю макросом
[macro-m_incom]
exten => s,1,Dial(${ARG1},60)
exten => s,n,Goto(s-${DIALSTATUS},1)
exten => s-NOANSWER,1,Hangup
exten => s-BUSY,1,Hangup
exten => s-BYE,1,Hangup

в случае если абонент моментально сбрасывает звонок
по pri приходит событие Connect
потом через секунду Disconnect
Можно ли в таком случае сделать, чтобы Connect не приходил до тех пор пока соединение не произойдет?
2010-11-18 10:39

Сообщений: 23

Re: по pri приходит connect если абонент получивший звонок через sip транк моментально сбрасывает его

не ужели ни кто не знает ответ на вопрос?
2010-11-19 09:12

Avatara of switch
Откуда: Уфа
Сообщений: 5856

Re: по pri приходит connect если абонент получивший звонок через sip транк моментально сбрасывает его

лог вызова приведите
только краткий, а не портянку на 10 экранов
http://www.lynks.ru - Решения телефонии, мини-АТС, VoIP на основе Trixbox и Asterisk
2010-11-19 09:37

Сообщений: 23

Re: по pri приходит connect если абонент получивший звонок через sip транк моментально сбрасывает его

вот лог sip
Audio is at XXXXXXXXXXX port 13608
Adding codec 0x8 (alaw) to SDP
Adding codec 0x4 (ulaw) to SDP
Adding non-codec 0x1 (telephone-event) to SDP
Reliably Transmitting (no NAT) to XXXXXXXXXXX:5060:
INVITE sip:0479265897436@XXXXXXXXXXX SIP/2.0
Via: SIP/2.0/UDP XXXXXXXXXXX:5060;branch=z9hG4bK61ac742a;rport
Max-Forwards: 70
From: "Anonymous" <sip:Anonymous@anonymous.invalid>;tag=as5c7736f4
To: <sip:0479265897436@XXXXXXXXXXX>
Contact: <sip:Anonymous@XXXXXXXXXXX>
Call-ID: 1245f3d77f2c16086ca0b0124b604a0e@XXXXXXXXXXX
CSeq: 102 INVITE
User-Agent: Asterisk PBX 1.6.2.5-0ubuntu1
Date: Tue, 16 Nov 2010 10:49:11 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO
Supported: replaces, timer
Content-Type: application/sdp
Content-Length: 296

v=0
o=root 1931335234 1931335234 IN IP4 XXXXXXXXXXX
s=Asterisk PBX 1.6.2.5-0ubuntu1
c=IN IP4 XXXXXXXXXXX
t=0 0
m=audio 13608 RTP/AVP 8 0 101
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=silenceSupp:off - - - -
a=ptime:20
a=sendrecv

---
asterisk*CLI>
<--- SIP read from UDP:XXXXXXXXXXX:5060 --->
SIP/2.0 100 Trying
Via: SIP/2.0/UDP XXXXXXXXXXX:5060;branch=z9hG4bK61ac742a;received=XXXXXXXXXXX;rport=5060
From: "Anonymous" <sip:Anonymous@anonymous.invalid>;tag=as5c7736f4
To: <sip:0479265897436@XXXXXXXXXXX>;tag=157051728-10126-32560
Call-ID: 1245f3d77f2c16086ca0b0124b604a0e@XXXXXXXXXXX
CSeq: 102 INVITE
Content-Length: 0


<------------->
--- (7 headers 0 lines) ---
asterisk*CLI>
<--- SIP read from UDP:XXXXXXXXXXX:5060 --->
SIP/2.0 183 Call Proceeding
Via: SIP/2.0/UDP XXXXXXXXXXX:5060;branch=z9hG4bK61ac742a;received=XXXXXXXXXXX;rport=5060
From: "Anonymous" <sip:Anonymous@anonymous.invalid>;tag=as5c7736f4
To: <sip:0479265897436@XXXXXXXXXXX>;tag=157051728-10126-32560
Call-ID: 1245f3d77f2c16086ca0b0124b604a0e@XXXXXXXXXXX
CSeq: 102 INVITE
Allow: INVITE, ACK, CANCEL, OPTIONS, INFO, BYE
Content-Type: application/sdp
Content-Length: 235

v=0
o=XXXXXXXXXXX 1289904554 1289904554 IN IP4 XXXXXXXXXXX
s=AlterProxySoftSwitch
c=IN IP4 XXXXXXXXXXX
t=0 0
m=audio 17784 RTP/AVP 8 101
a=rtpmap:8 PCMA/8000
a=ptime:20
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15

<------------->
--- (9 headers 10 lines) ---
Found RTP audio format 8
Found RTP audio format 101
Found audio description format PCMA for ID 8
Found audio description format telephone-event for ID 101
Capabilities: us - 0x10c (ulaw|alaw|g729), peer - audio=0x8 (alaw)/video=0x0 (nothing)/text=0x0 (nothing), combined - 0x8 (alaw)
Non-codec capabilities (dtmf): us - 0x1 (telephone-event), peer - 0x1 (telephone-event), combined - 0x1 (telephone-event)
Peer audio RTP is at port XXXXXXXXXXX:17784
asterisk*CLI>
<--- SIP read from UDP:XXXXXXXXXXX:5060 --->
SIP/2.0 183 Progress
Via: SIP/2.0/UDP XXXXXXXXXXX:5060;branch=z9hG4bK61ac742a;received=XXXXXXXXXXX;rport=5060
From: "Anonymous" <sip:Anonymous@anonymous.invalid>;tag=as5c7736f4
To: <sip:0479265897436@XXXXXXXXXXX>;tag=157051728-10126-32560
Call-ID: 1245f3d77f2c16086ca0b0124b604a0e@XXXXXXXXXXX
CSeq: 102 INVITE
Allow: INVITE, ACK, CANCEL, OPTIONS, INFO, BYE
Content-Type: application/sdp
Content-Length: 235

v=0
o=XXXXXXXXXXX 1289904554 1289904555 IN IP4 XXXXXXXXXXX
s=AlterProxySoftSwitch
c=IN IP4 XXXXXXXXXXX
t=0 0
m=audio 17784 RTP/AVP 8 101
a=rtpmap:8 PCMA/8000
a=ptime:20
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15

<------------->
--- (9 headers 10 lines) ---
Found RTP audio format 8
Found RTP audio format 101
Found audio description format PCMA for ID 8
Found audio description format telephone-event for ID 101
Capabilities: us - 0x10c (ulaw|alaw|g729), peer - audio=0x8 (alaw)/video=0x0 (nothing)/text=0x0 (nothing), combined - 0x8 (alaw)
Non-codec capabilities (dtmf): us - 0x1 (telephone-event), peer - 0x1 (telephone-event), combined - 0x1 (telephone-event)
Peer audio RTP is at port XXXXXXXXXXX:17784
asterisk*CLI>
<--- SIP read from UDP:XXXXXXXXXXX:5060 --->
SIP/2.0 486 Busy Here
Via: SIP/2.0/UDP XXXXXXXXXXX:5060;branch=z9hG4bK61ac742a;received=XXXXXXXXXXX;rport=5060
From: "Anonymous" <sip:Anonymous@anonymous.invalid>;tag=as5c7736f4
To: <sip:0479265897436@XXXXXXXXXXX>;tag=157051728-10126-32560
Call-ID: 1245f3d77f2c16086ca0b0124b604a0e@XXXXXXXXXXX
CSeq: 102 INVITE
Content-Length: 0


<------------->
--- (7 headers 0 lines) ---
Transmitting (no NAT) to XXXXXXXXXXX:5060:
ACK sip:0479265897436@XXXXXXXXXXX SIP/2.0
Via: SIP/2.0/UDP XXXXXXXXXXX:5060;branch=z9hG4bK61ac742a;rport
Max-Forwards: 70
From: "Anonymous" <sip:Anonymous@anonymous.invalid>;tag=as5c7736f4
To: <sip:0479265897436@XXXXXXXXXXX>;tag=157051728-10126-32560
Contact: <sip:Anonymous@XXXXXXXXXXX>
Call-ID: 1245f3d77f2c16086ca0b0124b604a0e@XXXXXXXXXXX
CSeq: 102 ACK
User-Agent: Asterisk PBX 1.6.2.5-0ubuntu1
Content-Length: 0


---
Really destroying SIP dialog '1245f3d77f2c16086ca0b0124b604a0e@XXXXXXXXXXX' Method: INVITE

вот лог pri

Dialogic DM3 ISDN Trace Utility
Copyright (c) 2006 Dialogic Corporation
DLhid 1.01-Build-04 isdntrace

NET5 Switch

Wed Nov 17 15:21:16 2010
TX Frame: Time = 1293366.668
Response=0 SAPI=0x00
TEI=0x00
0x01 0x19 Receive Ready
Hex Dump:
00 01 01 19

Wed Nov 17 15:21:16 2010
RX Frame: Time = 1293366.672
Response=0 SAPI=0x00
TEI=0x00
0x01 0x7d Receive Ready
Hex Dump:
00 01 01 7d

Wed Nov 17 15:21:18 2010
TX Frame: Time = 1293368.728
Response=0 SAPI=0x00
TEI=0x00
0x7c 0x18 Information
PD=0x08 Dest=0 CR=0x0544
SETUP(0x05)
1: SENDING COMPLETE(0xa1)
1: BEARER CAPABILITY(0x04)
2: IE Length(0x03)
3: 1------- Extension Bit
-00----- Coding Standard
---00000 Info. Transfer Cap.
4: 1------- Extension Bit
-00----- Transfer Mode
---10000 Info. Transfer Rate
5: 1------- Extension Bit
-01----- Layer 1 Indent
---00011 User Info. Layer 1
1: CHANNEL ID(0x18)
2: IE Length(0x03)
3: 1------- Extension Bit
-0------ Interface ID Present
--1----- Interface Type
---0---- Spare
----1--- Preferred/Exclusive
-----0-- D-Channel Indicator
------01 Info. Channel Sel.
3.2: 1------- Extension Bit
-00----- Coding Standard
---0---- Number Map
----0011 Channel/Map Element
4: 1------- Extension Bit
-0000001 Channel Number/Slot Map
1: CALLED PARTY NUM(0x70)
2: IE Length(0x0e)
3: 1------- Extension Bit
-000---- Type of Number
----0000 Numbering plan ID
0479265897436 Number Digit(s)
Hex Dump:
00 01 7c 18 08 02 05 44 05 a1
04 03 80 90 a3 18 03 a9 83 81
70 0e 80 30 34 37 39 32 36 35
38 39 37 34 33 36

Wed Nov 17 15:21:18 2010
RX Frame: Time = 1293368.736
Response=0 SAPI=0x00
TEI=0x00
0x01 0x7e Receive Ready
Hex Dump:
00 01 01 7e

Wed Nov 17 15:21:18 2010
RX Frame: Time = 1293368.740
Command=1 SAPI=0x00
TEI=0x00
0x18 0x7e Information
PD=0x08 Orig=1 CR=0x8544
CALL PROCEEDING(0x02)
1: CHANNEL ID(0x18)
2: IE Length(0x03)
3: 1------- Extension Bit
-0------ Interface ID Present
--1----- Interface Type
---0---- Spare
----1--- Preferred/Exclusive
-----0-- D-Channel Indicator
------01 Info. Channel Sel.
3.2: 1------- Extension Bit
-00----- Coding Standard
---0---- Number Map
----0011 Channel/Map Element
4: 1------- Extension Bit
-0000001 Channel Number/Slot Map
Hex Dump:
02 01 18 7e 08 02 85 44 02 18
03 a9 83 81

Wed Nov 17 15:21:18 2010
TX Frame: Time = 1293368.740
Command=1 SAPI=0x00
TEI=0x00
0x01 0x1a Receive Ready
Hex Dump:
02 01 01 1a

Wed Nov 17 15:21:25 2010
RX Frame: Time = 1293375.96
Command=1 SAPI=0x00
TEI=0x00
0x1a 0x7e Information
PD=0x08 Orig=1 CR=0x8544
CALL PROGRESS(0x03)
1: PROGRESS INDICATOR(0x1e)
2: IE Length(0x02)
3: 1------- Extension Bit
-00----- Coding Standard
---0---- Spare
----0001 Location
4: 1------- Extension Bit
-0001000 Progress Description
Hex Dump:
02 01 1a 7e 08 02 85 44 03 1e
02 81 88

Wed Nov 17 15:21:25 2010
TX Frame: Time = 1293375.100
Command=1 SAPI=0x00
TEI=0x00
0x01 0x1c Receive Ready
Hex Dump:
02 01 01 1c

Wed Nov 17 15:21:28 2010
RX Frame: Time = 1293378.808
Command=1 SAPI=0x00
TEI=0x00
0x1c 0x7e Information
PD=0x08 Orig=1 CR=0x8544
ALERTING(0x01)
1: PROGRESS INDICATOR(0x1e)
2: IE Length(0x02)
3: 1------- Extension Bit
-00----- Coding Standard
---0---- Spare
----0001 Location
4: 1------- Extension Bit
-0001000 Progress Description
Hex Dump:
02 01 1c 7e 08 02 85 44 01 1e
02 81 88

Wed Nov 17 15:21:28 2010
TX Frame: Time = 1293378.808
Command=1 SAPI=0x00
TEI=0x00
0x01 0x1e Receive Ready
Hex Dump:
02 01 01 1e

Wed Nov 17 15:21:29 2010
RX Frame: Time = 1293378.916
Command=1 SAPI=0x00
TEI=0x00
0x1e 0x7e Information
PD=0x08 Orig=1 CR=0x8544
CALL CONNECT(0x07)
1: CHANNEL ID(0x18)
2: IE Length(0x03)
3: 1------- Extension Bit
-0------ Interface ID Present
--1----- Interface Type
---0---- Spare
----1--- Preferred/Exclusive
-----0-- D-Channel Indicator
------01 Info. Channel Sel.
3.2: 1------- Extension Bit
-00----- Coding Standard
---0---- Number Map
----0011 Channel/Map Element
4: 1------- Extension Bit
-0000001 Channel Number/Slot Map
1: PROGRESS INDICATOR(0x1e)
2: IE Length(0x02)
3: 1------- Extension Bit
-00----- Coding Standard
---0---- Spare
----0001 Location
4: 1------- Extension Bit
-0000010 Progress Description
Hex Dump:
02 01 1e 7e 08 02 85 44 07 18
03 a9 83 81 1e 02 81 82

Wed Nov 17 15:21:29 2010
TX Frame: Time = 1293378.916
Command=1 SAPI=0x00
TEI=0x00
0x01 0x20 Receive Ready
Hex Dump:
02 01 01 20

Wed Nov 17 15:21:29 2010
TX Frame: Time = 1293378.916
Response=0 SAPI=0x00
TEI=0x00
0x7e 0x20 Information
PD=0x08 Dest=0 CR=0x0544
CALL CONNECT ACKNOWLEDGE(0x0f)
Hex Dump:
00 01 7e 20 08 02 05 44 0f

Wed Nov 17 15:21:29 2010
RX Frame: Time = 1293378.924
Response=0 SAPI=0x00
TEI=0x00
0x01 0x80 Receive Ready
Hex Dump:
00 01 01 80

Wed Nov 17 15:21:29 2010
RX Frame: Time = 1293378.960
Command=1 SAPI=0x00
TEI=0x00
0x20 0x80 Information
PD=0x08 Orig=1 CR=0x8544
CALL DISCONNECT(0x45)
1: CAUSE(0x08)
2: IE Length(0x02)
3: 1------- Extension Bit
-00----- Coding Standard
---0---- Spare
----0001 Location
4: 1------- Extension Bit
-0010000 Cause Value
Hex Dump:
02 01 20 80 08 02 85 44 45 08
02 81 90

Wed Nov 17 15:21:29 2010
TX Frame: Time = 1293378.960
Command=1 SAPI=0x00
TEI=0x00
0x01 0x22 Receive Ready
Hex Dump:
02 01 01 22

Wed Nov 17 15:21:29 2010
TX Frame: Time = 1293378.996
Response=0 SAPI=0x00
TEI=0x00
0x80 0x22 Information
PD=0x08 Dest=0 CR=0x0544
RELEASE(0x4d)
Hex Dump:
00 01 80 22 08 02 05 44 4d

Wed Nov 17 15:21:29 2010
RX Frame: Time = 1293379.4
Response=0 SAPI=0x00
TEI=0x00
0x01 0x82 Receive Ready
Hex Dump:
00 01 01 82

Wed Nov 17 15:21:29 2010
RX Frame: Time = 1293379.4
Command=1 SAPI=0x00
TEI=0x00
0x22 0x82 Information
PD=0x08 Orig=1 CR=0x8544
RELEASE COMPLETE(0x5a)
1: CAUSE(0x08)
2: IE Length(0x02)
3: 1------- Extension Bit
-00----- Coding Standard
---0---- Spare
----0001 Location
4: 1------- Extension Bit
-0010000 Cause Value
Hex Dump:
02 01 22 82 08 02 85 44 5a 08
02 81 90

Wed Nov 17 15:21:29 2010
TX Frame: Time = 1293379.4
Command=1 SAPI=0x00
TEI=0x00
0x01 0x24 Receive Ready
Hex Dump:
02 01 01 24
2010-11-22 16:00

Добавить страницу в закладки:  Delicious Google Slashdot Yahoo Yandex.ru Reddit Digg Technorati Bobrdobr.ru Newsland.ru Smi2.ru Rumarkz.ru Vaau.ru Memori.ru Rucity.com Moemesto.ru News2.ru Mister-Wong.ru Myscoop.ru 100zakladok.ru