AF
Asterisk Forum
обсуждения телефонии, VoIP и IP-PBX
12разделов
5 423тем
34 385сообщений
← К списку тем

FreePBX 2.10 факс по t.38

Asterisk GUI 1 сообщений -
#1

Здравствуйте, уважаемое Сообщество!

Столкнулся по не знанию предмета с дурацкой проблемой.

Итак, есть у нас значит примерно такая схема

Факс -> Dlink DVG-2102S -> FreePBX 2.10 -> SIP Provider (T38.Native) -> PSTN -> Аналоговый факс

Факсы прекрасно приходят и судя по Wireshark'у приходят они по t.38. А вот уходить - ну никак. Всю голову уже сломал.

Убито уже куча времени на гуглеж и "метод тыка". Посему прошу помощи сообщества. Имею в расположении такой дебаг:

Код:
[2012-10-03 21:39:42] DEBUG[4426] chan_sip.c: Header 0 [ 14]: SIP/2.0 200 OK
[2012-10-03 21:39:42] DEBUG[4426] chan_sip.c: Header 1 [ 64]: Via: SIP/2.0/UDP 94.51.211.170:5060;branch=z9hG4bK625ae4ec;rport
[2012-10-03 21:39:42] DEBUG[4426] chan_sip.c: Header 2 [ 37]: Contact:
[2012-10-03 21:39:42] DEBUG[4426] chan_sip.c: Header 3 [ 64]: From: "73422XXXXX" ;tag=as43c108fd
[2012-10-03 21:39:42] DEBUG[4426] chan_sip.c: Header 4 [ 63]: To: "PSS" ;tag=542962968-15010-8507
[2012-10-03 21:39:42] DEBUG[4426] chan_sip.c: Header 5 [ 55]: Call-ID: 447b44cc78b3177809bffc855cb2659d@195.69.XXX.XX
[2012-10-03 21:39:42] DEBUG[4426] chan_sip.c: Header 6 [ 16]: CSeq: 104 INVITE
[2012-10-03 21:39:42] DEBUG[4426] chan_sip.c: Header 7 [ 46]: Allow: INVITE, ACK, CANCEL, OPTIONS, INFO, BYE
[2012-10-03 21:39:42] DEBUG[4426] chan_sip.c: Header 8 [ 29]: Content-Type: application/sdp
[2012-10-03 21:39:42] DEBUG[4426] chan_sip.c: Header 9 [ 19]: Content-Length: 378
[2012-10-03 21:39:42] DEBUG[4426] chan_sip.c: Header 10 [ 0]:
[2012-10-03 21:39:42] DEBUG[4426] chan_sip.c: Body 0 [ 3]: v=0
[2012-10-03 21:39:42] DEBUG[4426] chan_sip.c: Body 1 [ 58]: o=195.69.XXX.XX 1349278905 1349278905 IN IP4 195.69.XXX.XX
[2012-10-03 21:39:42] DEBUG[4426] chan_sip.c: Body 2 [ 17]: s=AlterCallSwitch
[2012-10-03 21:39:42] DEBUG[4426] chan_sip.c: Body 3 [ 22]: c=IN IP4 195.69.XXX.XX
[2012-10-03 21:39:42] DEBUG[4426] chan_sip.c: Body 4 [ 5]: t=0 0
[2012-10-03 21:39:42] DEBUG[4426] chan_sip.c: Body 5 [ 23]: m=image 20898 udptl t38
[2012-10-03 21:39:42] DEBUG[4426] chan_sip.c: Body 6 [ 17]: a=T38FaxVersion:0
[2012-10-03 21:39:42] DEBUG[4426] chan_sip.c: Body 7 [ 20]: a=T38MaxBitRate:9600
[2012-10-03 21:39:42] DEBUG[4426] chan_sip.c: Body 8 [ 24]: a=T38FaxFillBitRemoval:0
[2012-10-03 21:39:42] DEBUG[4426] chan_sip.c: Body 9 [ 24]: a=T38FaxTranscodingMMR:0
[2012-10-03 21:39:42] DEBUG[4426] chan_sip.c: Body 10 [ 25]: a=T38FaxTranscodingJBIG:0
[2012-10-03 21:39:42] DEBUG[4426] chan_sip.c: Body 11 [ 37]: a=T38FaxRateManagement:transferredTCF
[2012-10-03 21:39:42] DEBUG[4426] chan_sip.c: Body 12 [ 21]: a=T38FaxMaxBuffer:200
[2012-10-03 21:39:42] DEBUG[4426] chan_sip.c: Body 13 [ 22]: a=T38FaxMaxDatagram:72
[2012-10-03 21:39:42] DEBUG[4426] chan_sip.c: Body 14 [ 30]: a=T38FaxUdpEC:t38UDPRedundancy
[2012-10-03 21:39:42] VERBOSE[4426] chan_sip.c: --- (10 headers 15 lines) ---
[2012-10-03 21:39:42] DEBUG[4426] chan_sip.c: Acked pending invite 104
[2012-10-03 21:39:42] DEBUG[4426] chan_sip.c: ** SIP TIMER: Cancelling retransmit of packet (reply received) Retransid #1907
[2012-10-03 21:39:42] DEBUG[4426] chan_sip.c: Stopping retransmission on '447b44cc78b3177809bffc855cb2659d@195.69.XXX.XX' of Request 104: Match Found
[2012-10-03 21:39:42] DEBUG[4426] chan_sip.c: SIP response 200 to RE-invite on outgoing call 447b44cc78b3177809bffc855cb2659d@195.69.XXX.XX
[2012-10-03 21:39:42] DEBUG[4426] chan_sip.c: Processing session-level SDP v=0... UNSUPPORTED.
[2012-10-03 21:39:42] DEBUG[4426] chan_sip.c: Processing session-level SDP o=195.69.XXX.XX 1349278905 1349278905 IN IP4 195.69.XXX.XX... UNSUPPORTED.
[2012-10-03 21:39:42] DEBUG[4426] chan_sip.c: Processing session-level SDP s=AlterCallSwitch... UNSUPPORTED.
[2012-10-03 21:39:42] DEBUG[4426] chan_sip.c: Processing session-level SDP c=IN IP4 195.69.XXX.XX... OK.
[2012-10-03 21:39:42] DEBUG[4426] chan_sip.c: Processing session-level SDP t=0 0... UNSUPPORTED.
[2012-10-03 21:39:42] VERBOSE[4426] chan_sip.c: Got T.38 offer in SDP in dialog 447b44cc78b3177809bffc855cb2659d@195.69.XXX.XX
[2012-10-03 21:39:42] DEBUG[4426] chan_sip.c: FaxVersion: 0
[2012-10-03 21:39:42] DEBUG[4426] chan_sip.c: Processing media-level (image) SDP a=T38FaxVersion:0... OK.
[2012-10-03 21:39:42] DEBUG[4426] chan_sip.c: T38MaxBitRate: 9600
[2012-10-03 21:39:42] DEBUG[4426] chan_sip.c: Processing media-level (image) SDP a=T38MaxBitRate:9600... OK.
[2012-10-03 21:39:42] DEBUG[4426] chan_sip.c: FillBitRemoval: 0
[2012-10-03 21:39:42] DEBUG[4426] chan_sip.c: Processing media-level (image) SDP a=T38FaxFillBitRemoval:0... OK.
[2012-10-03 21:39:42] DEBUG[4426] chan_sip.c: Transcoding MMR: 0
[2012-10-03 21:39:42] DEBUG[4426] chan_sip.c: Processing media-level (image) SDP a=T38FaxTranscodingMMR:0... OK.
[2012-10-03 21:39:42] DEBUG[4426] chan_sip.c: Transcoding JBIG: 0
[2012-10-03 21:39:42] DEBUG[4426] chan_sip.c: Processing media-level (image) SDP a=T38FaxTranscodingJBIG:0... OK.
[2012-10-03 21:39:42] DEBUG[4426] chan_sip.c: RateManagement: transferredTCF
[2012-10-03 21:39:42] DEBUG[4426] chan_sip.c: Processing media-level (image) SDP a=T38FaxRateManagement:transferredTCF... OK.
[2012-10-03 21:39:42] DEBUG[4426] chan_sip.c: MaxBufferSize:200
[2012-10-03 21:39:42] DEBUG[4426] chan_sip.c: Processing media-level (image) SDP a=T38FaxMaxBuffer:200... OK.
[2012-10-03 21:39:42] DEBUG[4426] chan_sip.c: Overriding T38FaxMaxDatagram '72' with '400'
[2012-10-03 21:39:42] DEBUG[4426] chan_sip.c: FaxMaxDatagram: 400
[2012-10-03 21:39:42] DEBUG[4426] chan_sip.c: Processing media-level (image) SDP a=T38FaxMaxDatagram:72... OK.
[2012-10-03 21:39:42] DEBUG[4426] chan_sip.c: UDP EC: t38UDPRedundancy
[2012-10-03 21:39:42] DEBUG[4426] chan_sip.c: Processing media-level (image) SDP a=T38FaxUdpEC:t38UDPRedundancy... OK.
[2012-10-03 21:39:42] VERBOSE[4426] chan_sip.c: Capabilities: us - 0x10c (ulaw|alaw|g729), peer - audio=0x0 (nothing)/video=0x0 (nothing)/text=0x0 (nothing), combined
[2012-10-03 21:39:42] VERBOSE[4426] chan_sip.c: Non-codec capabilities (dtmf): us - 0x1 (telephone-event|), peer - 0x0 (nothing), combined - 0x0 (nothing)
[2012-10-03 21:39:42] VERBOSE[4426] chan_sip.c: Got T.38 Re-invite without audio. Keeping RTP active during T.38 session.
[2012-10-03 21:39:42] DEBUG[4426] chan_sip.c: Peer T.38 UDPTL is at port 195.69.XXX.XX:20898
[2012-10-03 21:39:42] DEBUG[4426] chan_sip.c: T38 state changed to 3 on channel SIP/Bittelecom-0000000d
[2012-10-03 21:39:42] DEBUG[4426] chan_sip.c: Have T.38 but no audio, accepting offer anyway
[2012-10-03 21:39:42] DEBUG[4426] chan_sip.c: Updating call counter for outgoing call
[2012-10-03 21:39:42] DEBUG[4426] chan_sip.c: Strict routing enforced for session 447b44cc78b3177809bffc855cb2659d@195.69.XXX.XX
[2012-10-03 21:39:42] VERBOSE[4426] chan_sip.c: set_destination: Parsing for address/port to send to
[2012-10-03 21:39:42] VERBOSE[4426] chan_sip.c: set_destination: set destination to 195.69.XXX.XX:5060
[2012-10-03 21:39:42] VERBOSE[4426] chan_sip.c: Transmitting (NAT) to 195.69.XXX.XX:5060:
ACK sip:XXXXXXX@195.69.XXX.XX SIP/2.0
Via: SIP/2.0/UDP 94.51.211.170:5060;branch=z9hG4bK319c7f32;rport
Max-Forwards: 70
From: "73422XXXXX" ;tag=as43c108fd
To: "PSS" ;tag=542962968-15010-8507
Contact:
Call-ID: 447b44cc78b3177809bffc855cb2659d@195.69.XXX.XX
CSeq: 104 ACK
User-Agent: FPBX-2.10.1(1.8.11.0)
Content-Length: 0


---
[2012-10-03 21:39:42] DEBUG[4426] chan_sip.c: Trying to put 'ACK sip:922' onto UDP socket destined for 195.69.XXX.XX:5060
[2012-10-03 21:39:42] DEBUG[4781] chan_sip.c: T38 state changed to 3 on channel SIP/50-0000000c
[2012-10-03 21:39:42] DEBUG[4781] chan_sip.c: T.38 UDPTL is at 192.168.1.2 port 4582
[2012-10-03 21:39:42] DEBUG[4781] chan_sip.c: Done building SDP. Settling with this capability: 0x0 (nothing)
[2012-10-03 21:39:42] VERBOSE[4781] chan_sip.c:

SIP/2.0 200 OK
Via: SIP/2.0/UDP 94.51.211.170:5060;branch=z9hG4bK821e3d3b63ea5101;received=192.168.1.4;rport=5060
From: "50" ;tag=e41b889b-685858
To: ;tag=as3942b8ef
Call-ID: 6F44-E4BB-4668585829B9336EC3B0-003@SipHost
CSeq: 11 INVITE
Server: FPBX-2.10.1(1.8.11.0)
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Contact:
Content-Type: application/sdp
Content-Length: 286
=0
o=root 95774620 95774622 IN IP4 192.168.1.2
s=Asterisk PBX 1.8.11.0
c=IN IP4 192.168.1.2
t=0 0
m=image 4582 udptl t38
a=T38FaxVersion:0
a=T38MaxBitRate:9600
a=T38FaxRateManagement:transferredTCF
a=T38FaxMaxDatagram:397
a=T38FaxUdpEC:t38UDPRedundancy
m=audio 0 RTP/AVP 8


[2012-10-03 21:39:42] DEBUG[4781] chan_sip.c: *** SIP TIMER: Initializing retransmit timer on packet: Id #1908
[2012-10-03 21:39:42] DEBUG[4781] chan_sip.c: Trying to put 'SIP/2.0 200' onto UDP socket destined for 192.168.1.4:5060
[2012-10-03 21:39:42] DEBUG[4781] res_rtp_asterisk.c: Setting RTCP address on RTP instance '0x125abe8'
[2012-10-03 21:39:42] DEBUG[4781] res_rtp_asterisk.c: RTP NAT: Got audio from other end. Now sending to address 192.168.1.4:9000
[2012-10-03 21:39:42] DEBUG[4781] chan_sip.c: Bogus frame of format 'ulaw' received from 'SIP/50-0000000c'!
[2012-10-03 21:39:42] DEBUG[4781] chan_sip.c: Bogus frame of format 'ulaw' received from 'SIP/50-0000000c'!
[2012-10-03 21:39:42] DEBUG[4781] chan_sip.c: Bogus frame of format 'ulaw' received from 'SIP/50-0000000c'!
[2012-10-03 21:39:42] DEBUG[4781] chan_sip.c: Bogus frame of format 'ulaw' received from 'SIP/50-0000000c'!
[2012-10-03 21:39:42] DEBUG[4781] chan_sip.c: Bogus frame of format 'ulaw' received from 'SIP/50-0000000c'!
[2012-10-03 21:39:42] DEBUG[4781] chan_sip.c: Bogus frame of format 'ulaw' received from 'SIP/50-0000000c'!
[2012-10-03 21:39:42] DEBUG[4426] chan_sip.c: SIP TIMER: Rescheduling retransmission #1908 (1) SIP/2.0 - 1
[2012-10-03 21:39:42] DEBUG[4426] chan_sip.c: ** SIP timers: Rescheduling retransmission 2 to 200 ms (t1 100 ms (Retrans id #1908))
[2012-10-03 21:39:42] VERBOSE[4426] chan_sip.c: Retransmitting #1 (NAT) to 192.168.1.4:5060:
SIP/2.0 200 OK


И... ничего не отправляется. Помогите пожалуйста.