Страница 1 из 2
addpac ap700 + старый факс + asterisk
Добавлено: 16 фев 2016, 15:40
deny12rus
Имеется вот такой набор:
1) Asterisk Version: 13.7.0
2) Addpac AP700_G2 S/W Version : 8.41.091
3) Факс панасоник
4) sip номер в мир от домру
5) внутренние номера на pjsip
тестировал с одного внутреннего номера (программный факс VentaFax) на внутренний номер факса, который прописан на первом порту Addpac: факсы ходят в обе стороны успешно
Но когда отправляю на городской номер, где стоит также аналоговый факс, то факс не отправляется и не принимается =(
в логах астера при этом пишется: chan_pjsip.c: Can't send 10 type frames with PJSIP
гугление ведет к отключению VAD, но я его отключил на addpac
! Voice service voip configuration.
!
protocol sip
dtmf-relay rfc-2833
voice service voip
fax protocol bypass
fax rate 9600
h323 call start fast
h323 call tunnel enable
busyout monitor gatekeeper
busyout monitor sip-server
no busyout monitor callagent
busyout monitor voip-interface
no call-barring unconfigured-ip-address
no voip-inbound-call-barring enable
!
dial-peer voice 2000 voip
destination-pattern T
session target sip-server
session protocol sip
voice-class codec 0
no vad
no dtmf-relay
fax protocol bypass
fax rate 9600
voice class codec 0
codec preference 1 g711alaw
codec preference 2 g711ulaw
!
куда копать товарищи?
Re: addpac ap700 + старый факс + asterisk
Добавлено: 16 фев 2016, 15:51
ded
tcpdump host XXX -c0 -w /tmpfile.pcap в одном и другом случае.
Засунуть в Wireshark и сравнивать.
Re: addpac ap700 + старый факс + asterisk
Добавлено: 16 фев 2016, 18:00
awsswa
У вас факс настроен в голосе (не T38) - fax protocol bypass
в настройка транка какие голосовые кодаки стоят - только G711 ?
Re: addpac ap700 + старый факс + asterisk
Добавлено: 17 фев 2016, 09:21
deny12rus
снял tcpdump-ом, сравнил, отличие в протоколе sdp:
7 6.201035 192.168.0.3 192.168.0.2 SIP/SDP 853 Request: INVITE sip:997@192.168.0.2 |
10 6.228206 192.168.0.3 192.168.0.2 SIP/SDP 1122 Request: INVITE sip:997@192.168.0.2 |
14 6.963356 192.168.0.2 192.168.0.3 SIP/SDP 870 Status: 200 OK |
1 0.000000 192.168.0.3 192.168.0.2 SIP/SDP 859 Request: INVITE sip:423632@192.168.0.2 |
4 0.027276 192.168.0.3 192.168.0.2 SIP/SDP 1131 Request: INVITE sip:423632@192.168.0.2 |
7 2.953305 192.168.0.2 192.168.0.3 SIP/SDP 786 Status: 183 Session Progress |
439 7.332651 192.168.0.2 192.168.0.3 SIP/SDP 873 Status: 200 OK |
Из RFC 3621, описывающему протокол SIP:
The 183 (Session Progress) response is used to convey information about the progress of the call that is not otherwise classified. The Reason-Phrase, header fields, or message body MAY be used to convey more details about the call progress
но я не понял какой смысл несет данный статус в моем случае с факсом =(
кодек в настройках транка:
disallow=all
allow=alaw
Re: addpac ap700 + старый факс + asterisk
Добавлено: 17 фев 2016, 13:59
ded
Нет, не так. Полезно видеть именно все заголовки SIP этого диалога, именно в части SDP. Там всё будет видно (разницу).
Re: addpac ap700 + старый факс + asterisk
Добавлено: 17 фев 2016, 15:31
deny12rus
вот так?
Код: Выделить всё
|Time | 192.168.0.3 |
| | | 192.168.0.2 |
|0.000000 | INVITE SDP (g711A g7 |SIP INVITE From: <sip:203@192.168.0.2 To:<sip:423632@192.168.0.2 Call-ID:b12cc356-4970-4d00-803f-0002a4085f50@192.168.0.3 CSeq:36
| |(5060) ------------------> (5060) |
|0.000751 | 401 Unauthorized |SIP Status 401 Unauthorized
| |(5060) <------------------ (5060) |
|0.012927 | ACK | |SIP ACK From: <sip:203@192.168.0.2 To:<sip:423632@192.168.0.2 CSeq:36
| |(5060) ------------------> (5060) |
|0.027276 | INVITE SDP (g711A g7 |SIP INVITE From: <sip:203@192.168.0.2 To:<sip:423632@192.168.0.2 Call-ID:b12cc356-4970-4d00-803f-0002a4085f50@192.168.0.3 CSeq:37
| |(5060) ------------------> (5060) |
|0.030046 | 100 Trying| |SIP Status 100 Trying
| |(5060) <------------------ (5060) |
|2.952688 | 180 Ringing |SIP Status 180 Ringing
| |(5060) <------------------ (5060) |
|2.953305 | 183 Session Progress |SIP Status 183 Session Progress
| |(5060) <------------------ (5060) |
|2.994190 | RTP (g711U) |RTP, 3 packets. Duration: 4294964.302s SSRC: 0xC45446F7
| |(23130) ------------------> (10524) |
|3.038566 | RTP (g711A) |RTP, 1244 packets. Duration: 4294964.258s SSRC: 0x6DFD7AB7
| |(23130) <------------------ (10524) |
|3.113996 | RTP (g711A) |RTP, 211 packets. Duration: 4294964.183s SSRC: 0x483858BD
| |(23130) ------------------> (10524) |
|7.332651 | 200 OK SDP (g711U g7 |SIP Status 200 OK
| |(5060) <------------------ (5060) |
|7.352794 | ACK | |SIP Request INVITE ACK 200 CSeq:37
| |(5060) ------------------> (5060) |
|39.717799| BYE | |SIP Request BYE CSeq:12994
| |(5060) <------------------ (5060) |
|39.729928| 200 OK | |SIP Status 200 OK
| |(5060) ------------------> (5060) |
Код: Выделить всё
|Time | 192.168.0.3 |
| | | 192.168.0.2 |
|6.201035 | INVITE SDP (g711A g7 |SIP INVITE From: <sip:203@192.168.0.2 To:<sip:997@192.168.0.2 Call-ID:362cc356-2f79-79df-803c-0002a4085f50@192.168.0.3 CSeq:34
| |(5060) ------------------> (5060) |
|6.201795 | 401 Unauthorized |SIP Status 401 Unauthorized
| |(5060) <------------------ (5060) |
|6.213690 | ACK | |SIP ACK From: <sip:203@192.168.0.2 To:<sip:997@192.168.0.2 CSeq:34
| |(5060) ------------------> (5060) |
|6.228206 | INVITE SDP (g711A g7 |SIP INVITE From: <sip:203@192.168.0.2 To:<sip:997@192.168.0.2 Call-ID:362cc356-2f79-79df-803c-0002a4085f50@192.168.0.3 CSeq:35
| |(5060) ------------------> (5060) |
|6.231806 | 100 Trying| |SIP Status 100 Trying
| |(5060) <------------------ (5060) |
|6.616150 | 180 Ringing |SIP Status 180 Ringing
| |(5060) <------------------ (5060) |
|6.637435 | 180 Ringing |SIP Status 180 Ringing
| |(5060) <------------------ (5060) |
|6.963356 | 200 OK SDP (g711U g7 |SIP Status 200 OK
| |(5060) <------------------ (5060) |
|6.983180 | ACK | |SIP Request INVITE ACK 200 CSeq:35
| |(5060) ------------------> (5060) |
|76.233793| BYE | |SIP Request BYE CSeq:16297
| |(5060) <------------------ (5060) |
|76.246349| 200 OK | |SIP Status 200 OK
| |(5060) ------------------> (5060) |
Re: addpac ap700 + старый факс + asterisk
Добавлено: 17 фев 2016, 15:47
ded
Вот так:
Код: Выделить всё
GW------CUCM/GW
---200OK+SDP----->
v=0
o=CiscoSystemsSIP-GW-UserAgent
0 6060 IN IP4 209.165.201.2
s=SIP Call
c=IN IP4 209.165.201.2
t=0 0
m=audio 17924 RTP/AVP 0
c=IN IP4 209.165.201.2
a=rtpmap:0 PCMU/8000
a=ptime:20
<----ACK+SDP-----
v=0
o=CiscoSystemsCCM-SIP 2000 1 IN IP4 209.165.201.3
s=SIP Call
c=IN IP4 209.165.201.1
t=0 0
m=audio 16724 RTP/AVP 0
a=rtpmap:0 PCMU/8000
a=ptime:20
http://www.cisco.com/c/en/us/support/do ... ip-00.html
Re: addpac ap700 + старый факс + asterisk
Добавлено: 18 фев 2016, 08:15
virus_net
Многократно приводились:
или ещё предметнее:
Код: Выделить всё
tcpdump -s0 -vni IFACE_NAME port 5060 and host XXX.XXX.XXX.XXX
Или вообще в файл для последующего анализа:
Код: Выделить всё
tcpdump -p -i IFACE_NAME -w /tmp/dump_%s.pcap -G 300 port 5060
P.S. Надеюсь не надо пояснять что есть IFACE_NAME и XXX.XXX.XXX.XXX
Re: addpac ap700 + старый факс + asterisk
Добавлено: 18 фев 2016, 10:15
deny12rus
��#-�V�� UURT�}��_PEGf�@��������3INVITE sip:997@192.168.0.2 SIP/2.0
Via: SIP/2.0/UDP 192.168.0.3:5060;branch=z9hG4bK3656793ca434
From: <sip:203@192.168.0.2>;tag=3656793ca4
To: <sip:997@192.168.0.2>
Call-ID: 362cc356-2f79-79df-803c-0002a4085f50@192.168.0.3
CSeq: 34 INVITE
Supported: replaces, timer, 100rel, early-session
Min-SE: 1800
Date: Tue, 16 Feb 2016 14:03:34 GMT
Session-Expires: 1800
User-Agent: AddPac AP700_G2 8.41.091
Contact: <sip:203@192.168.0.3>
Accept: application/sdp
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, UPDATE, PRACK, REFER, NOTIFY, INFO
Content-Type: application/sdp
Content-Length: 196
Max-Forwards: 70
v=0
o=203 1455631414 1455631414 IN IP4 192.168.0.3
s=AddPac Gateway SDP
c=IN IP4 192.168.0.3
t=1455631414 0
m=audio 23126 RTP/AVP 8 0
a=ptime:20
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
#-�V� bbRT�}��_PETf�@��������@INVITE sip:997@192.168.0.2 SIP/2.0
Via: SIP/2.0/UDP 192.168.0.3:5060;branch=z9hG4bK3656793ca435
From: <sip:203@192.168.0.2>;tag=3656793ca4
To: <sip:997@192.168.0.2>
Call-ID: 362cc356-2f79-79df-803c-0002a4085f50@192.168.0.3
CSeq: 35 INVITE
Supported: replaces, timer, 100rel, early-session
Min-SE: 1800
Date: Tue, 16 Feb 2016 14:03:34 GMT
Session-Expires: 1800
User-Agent: AddPac AP700_G2 8.41.091
Authorization: Digest username="203", realm="asterisk", nonce="1455631651/3942ef29a40d5d1f317c29a5816b2256", opaque="16c4fdf12453337f", uri="sip:997@192.168.0.2", qop=auth, nc=00000001, cnonce="63957d8a", response="2f6aa54c95e34ab25cbfcb4f36b154b6", algorithm=MD5
Contact: <sip:203@192.168.0.3>
Accept: application/sdp
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, UPDATE, PRACK, REFER, NOTIFY, INFO
Content-Type: application/sdp
Content-Length: 200
Max-Forwards: 70
v=0
o=203 1455631414 1455631414 IN IP4 192.168.0.3
s=AddPac Gateway SDP
c=IN IP4 192.168.0.3
t=1455631414 0
m=audio 23126 RTP/AVP 8 0
a=ptime:20
a=rtpmap:8 PCMA/8000/1
a=rtpmap:0 PCMU/8000/1
$-�Vt�ff�_PRT�}�EX@@�?������DDSIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.0.3:5060;rport=5060;received=192.168.0.3;branch=z9hG4bK3656793ca435
Call-ID: 362cc356-2f79-79df-803c-0002a4085f50@192.168.0.3
From: <sip:203@192.168.0.2>;tag=3656793ca4
To: <sip:997@192.168.0.2>;tag=zPIe76F2oCC-QwijlnzEsLR9l7.E-kNK
CSeq: 35 INVITE
Server: FPBX-13.0.62(13.7.0)
Allow: OPTIONS, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, MESSAGE, REFER, REGISTER
Contact: <sip:192.168.0.2:5060>
Supported: 100rel, timer, replaces, norefersub
Session-Expires: 1800;refresher=uac
Require: timer
Content-Type: application/sdp
Content-Length: 203
v=0
o=- 1455631414 1455631416 IN IP4 192.168.0.2
s=Asterisk
c=IN IP4 192.168.0.2
t=0 0
m=audio 10682 RTP/AVP 0 8
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=ptime:20
a=maxptime:150
a=sendrecv
���-�VT[[RT�}��_PEMt�@��������9INVITE sip:423632@192.168.0.2 SIP/2.0
Via: SIP/2.0/UDP 192.168.0.3:5060;branch=z9hG4bKb1564d3fa436
From: <sip:203@192.168.0.2>;tag=b1564d3fa4
To: <sip:423632@192.168.0.2>
Call-ID: b12cc356-4970-4d00-803f-0002a4085f50@192.168.0.3
CSeq: 36 INVITE
Supported: replaces, timer, 100rel, early-session
Min-SE: 1800
Date: Tue, 16 Feb 2016 14:05:37 GMT
Session-Expires: 1800
User-Agent: AddPac AP700_G2 8.41.091
Contact: <sip:203@192.168.0.3>
Accept: application/sdp
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, UPDATE, PRACK, REFER, NOTIFY, INFO
Content-Type: application/sdp
Content-Length: 196
Max-Forwards: 70
v=0
o=203 1455631537 1455631537 IN IP4 192.168.0.3
s=AddPac Gateway SDP
c=IN IP4 192.168.0.3
t=1455631537 0
m=audio 23130 RTP/AVP 8 0
a=ptime:20
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
�-�V��kkRT�}��_PE]t�@�|������IINVITE sip:423632@192.168.0.2 SIP/2.0
Via: SIP/2.0/UDP 192.168.0.3:5060;branch=z9hG4bKb1564d3fa437
From: <sip:203@192.168.0.2>;tag=b1564d3fa4
To: <sip:423632@192.168.0.2>
Call-ID: b12cc356-4970-4d00-803f-0002a4085f50@192.168.0.3
CSeq: 37 INVITE
Supported: replaces, timer, 100rel, early-session
Min-SE: 1800
Date: Tue, 16 Feb 2016 14:05:37 GMT
Session-Expires: 1800
User-Agent: AddPac AP700_G2 8.41.091
Authorization: Digest username="203", realm="asterisk", nonce="1455631774/ed6ec02c868196d47d5cd3d06ed21eba", opaque="6dad10c6791d2374", uri="sip:423632@192.168.0.2", qop=auth, nc=00000001, cnonce="28e922af", response="41206fc344ed1ca57e94fbab336cc21b", algorithm=MD5
Contact: <sip:203@192.168.0.3>
Accept: application/sdp
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, UPDATE, PRACK, REFER, NOTIFY, INFO
Content-Type: application/sdp
Content-Length: 200
Max-Forwards: 70
v=0
o=203 1455631537 1455631537 IN IP4 192.168.0.3
s=AddPac Gateway SDP
c=IN IP4 192.168.0.3
t=1455631537 0
m=audio 23130 RTP/AVP 8 0
a=ptime:20
a=rtpmap:8 PCMA/8000/1
a=rtpmap:0 PCMU/8000/1
�-�V���_PRT�}�E@@���������%�SIP/2.0 183 Session Progress
Via: SIP/2.0/UDP 192.168.0.3:5060;rport=5060;received=192.168.0.3;branch=z9hG4bKb1564d3fa437
Call-ID: b12cc356-4970-4d00-803f-0002a4085f50@192.168.0.3
From: <sip:203@192.168.0.2>;tag=b1564d3fa4
To: <sip:423632@192.168.0.2>;tag=ty7VTGYJ-6kvpj0XVOsN468VYKibV9YE
CSeq: 37 INVITE
Server: FPBX-13.0.62(13.7.0)
Allow: OPTIONS, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, MESSAGE, REFER, REGISTER
Contact: <sip:192.168.0.2:5060>
Content-Type: application/sdp
Content-Length: 203
v=0
o=- 1455631537 1455631539 IN IP4 192.168.0.2
s=Asterisk
c=IN IP4 192.168.0.2
t=0 0
m=audio 10524 RTP/AVP 0 8
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=ptime:20
a=maxptime:150
a=sendrecv
�-�V�gii�_PRT�}�E[@@�<������GI�SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.0.3:5060;rport=5060;received=192.168.0.3;branch=z9hG4bKb1564d3fa437
Call-ID: b12cc356-4970-4d00-803f-0002a4085f50@192.168.0.3
From: <sip:203@192.168.0.2>;tag=b1564d3fa4
To: <sip:423632@192.168.0.2>;tag=ty7VTGYJ-6kvpj0XVOsN468VYKibV9YE
CSeq: 37 INVITE
Server: FPBX-13.0.62(13.7.0)
Allow: OPTIONS, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, MESSAGE, REFER, REGISTER
Contact: <sip:192.168.0.2:5060>
Supported: 100rel, timer, replaces, norefersub
Session-Expires: 1800;refresher=uac
Require: timer
Content-Type: application/sdp
Content-Length: 203
v=0
o=- 1455631537 1455631539 IN IP4 192.168.0.2
s=Asterisk
c=IN IP4 192.168.0.2
t=0 0
m=audio 10524 RTP/AVP 0 8
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=ptime:20
a=maxptime:150
a=sendrecv
Re: addpac ap700 + старый факс + asterisk
Добавлено: 18 фев 2016, 12:11
ded
Здесь всё ОК, Вам надо в AddPac смотреть и его дебажить.
Прочитайте - как (FAQ):
http://www.voipinfo.ru/forum/viewforum.php?f=9