Потестировал разные варианты.
Факс не проходит.
Код: Выделить всё
Reliably Transmitting (no NAT) to 195.94.224.217:5060:
OPTIONS sip:195.94.224.217 SIP/2.0
Via: SIP/2.0/UDP 195.94.238.62:5060;branch=z9hG4bK1ab5b935
Max-Forwards: 70
From: "asterisk" <sip:13490@195.94.238.62>;tag=as6ab46b46
To: <sip:195.94.224.217>
Contact: <sip:13490@195.94.238.62:5060>
Call-ID: 27df9c1248869b1008d9c6e578f02f0c@195.94.238.62:5060
CSeq: 102 OPTIONS
User-Agent: Asterisk PBX 1.8.23.1
Date: Wed, 23 Oct 2013 22:41:17 GMT
Session-Expires: 1800
Min-SE: 90
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Length: 0
---
<--- SIP read from UDP:195.94.224.217:5060 --->
SIP/2.0 404 Not Found
Via: SIP/2.0/UDP 195.94.238.62:5060;branch=z9hG4bK1ab5b935;received=195.94.238.62
From: "asterisk" <sip:13490@195.94.238.62>;tag=as6ab46b46
To: <sip:195.94.224.217>;tag=as127f7a67
Call-ID: 27df9c1248869b1008d9c6e578f02f0c@195.94.238.62:5060
CSeq: 102 OPTIONS
User-Agent: WC SoftSwitch 2.1
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO
Supported: replaces, timer
Accept: application/sdp
Content-Length: 0
<------------->
--- (11 headers 0 lines) ---
Really destroying SIP dialog '27df9c1248869b1008d9c6e578f02f0c@195.94.238.62:5060' Method: OPTIONS
-- Attempting call on SIP/083832233791@13490 for faxout@faxsend:1 (Retry 1)
Audio is at 15538
Adding codec 0x8 (alaw) to SDP
Adding codec 0x4 (ulaw) to SDP
Adding codec 0x2 (gsm) to SDP
Adding non-codec 0x1 (telephone-event) to SDP
Reliably Transmitting (no NAT) to 195.94.224.217:5060:
INVITE sip:083832233791@195.94.224.217 SIP/2.0
Via: SIP/2.0/UDP 195.94.238.62:5060;branch=z9hG4bK77edbd4d
Max-Forwards: 70
From: " Bank " <sip:13490@195.94.238.62>;tag=as4c9fe57f
To: <sip:083832233791@195.94.224.217>
Contact: <sip:13490@195.94.238.62:5060>
Call-ID: 750fb57e3a8a34f65358a525535cf6b5@195.94.238.62:5060
CSeq: 102 INVITE
User-Agent: Asterisk PBX 1.8.23.1
Date: Wed, 23 Oct 2013 22:42:01 GMT
Session-Expires: 1800
Min-SE: 90
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Remote-Party-ID: " Bank " <sip:74956404242@195.94.238.62>;party=calling;privacy=off;screen=no
Content-Type: application/sdp
Content-Length: 286
v=0
o=root 1916817991 1916817991 IN IP4 195.94.238.62
s=Asterisk PBX 1.8.23.1
c=IN IP4 195.94.238.62
t=0 0
m=audio 15538 RTP/AVP 8 0 3 101
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:3 GSM/8000
a=rtpmap:101 telephone-event/8000
<--- SIP read from UDP:195.94.224.217:5060 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 195.94.238.62:5060;branch=z9hG4bK77edbd4d;received=195.94.238.62
From: " Bank " <sip:13490@195.94.238.62>;tag=as4c9fe57f
To: <sip:083832233791@195.94.224.217>;tag=as5e3211ae
Call-ID: 750fb57e3a8a34f65358a525535cf6b5@195.94.238.62:5060
CSeq: 102 INVITE
User-Agent: WC SoftSwitch 2.1
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO
Supported: replaces, timer
WWW-Authenticate: Digest algorithm=MD5, realm="sip.westcall.ru", nonce="1e1ea006"
Content-Length: 0
<------------->
--- (11 headers 0 lines) ---
Transmitting (no NAT) to 195.94.224.217:5060:
ACK sip:083832233791@195.94.224.217 SIP/2.0
Via: SIP/2.0/UDP 195.94.238.62:5060;branch=z9hG4bK77edbd4d
Max-Forwards: 70
From: " Bank " <sip:13490@195.94.238.62>;tag=as4c9fe57f
To: <sip:083832233791@195.94.224.217>;tag=as5e3211ae
Contact: <sip:13490@195.94.238.62:5060>
Call-ID: 750fb57e3a8a34f65358a525535cf6b5@195.94.238.62:5060
CSeq: 102 ACK
User-Agent: Asterisk PBX 1.8.23.1
Content-Length: 0
---
Audio is at 15538
Adding codec 0x8 (alaw) to SDP
Adding codec 0x4 (ulaw) to SDP
Adding codec 0x2 (gsm) to SDP
Adding non-codec 0x1 (telephone-event) to SDP
Reliably Transmitting (no NAT) to 195.94.224.217:5060:
INVITE sip:083832233791@195.94.224.217 SIP/2.0
Via: SIP/2.0/UDP 195.94.238.62:5060;branch=z9hG4bK1a1d84f8
Max-Forwards: 70
From: " Bank " <sip:13490@195.94.238.62>;tag=as4c9fe57f
To: <sip:083832233791@195.94.224.217>
Contact: <sip:13490@195.94.238.62:5060>
Call-ID: 750fb57e3a8a34f65358a525535cf6b5@195.94.238.62:5060
CSeq: 103 INVITE
User-Agent: Asterisk PBX 1.8.23.1
Authorization: Digest username="13490", realm="sip.westcall.ru", algorithm=MD5, uri="sip:083832233791@195.94.224.217", nonce="1e1ea006", response="a0bab119de83634727f728152f07ce3a"
Date: Wed, 23 Oct 2013 22:42:01 GMT
Session-Expires: 1800
Min-SE: 90
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Remote-Party-ID: " Bank " <sip:74956404242@195.94.238.62>;party=calling;privacy=off;screen=no
Content-Type: application/sdp
Content-Length: 286
v=0
o=root 1916817991 1916817992 IN IP4 195.94.238.62
s=Ast
<--- SIP read from UDP:195.94.224.217:5060 --->
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 195.94.238.62:5060;branch=z9hG4bK1a1d84f8;received=195.94.238.62
From: " Bank " <sip:13490@195.94.238.62>;tag=as4c9fe57f
To: <sip:083832233791@195.94.224.217>
Call-ID: 750fb57e3a8a34f65358a525535cf6b5@195.94.238.62:5060
CSeq: 103 INVITE
User-Agent: WC SoftSwitch 2.1
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO
Supported: replaces, timer
Contact: <sip:083832233791@195.94.224.217>
Content-Length: 0
<------------->
--- (11 headers 0 lines) ---
<--- SIP read from UDP:195.94.224.217:5060 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 195.94.238.62:5060;branch=z9hG4bK1a1d84f8;received=195.94.238.62
From: " Bank " <sip:13490@195.94.238.62>;tag=as4c9fe57f
To: <sip:083832233791@195.94.224.217>;tag=as046d41ce
Call-ID: 750fb57e3a8a34f65358a525535cf6b5@195.94.238.62:5060
CSeq: 103 INVITE
User-Agent: WC SoftSwitch 2.1
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO
Supported: replaces, timer
Contact: <sip:083832233791@195.94.224.217>
Content-Type: application/sdp
Content-Length: 293
v=0
o=wc_ss_v21 1793563210 1793563210 IN IP4 195.94.224.217
s=WC SoftSwitch 2.1
c=IN IP4 195.94.224.217
t=0 0
m=audio 15258 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
<------------->
--- (12 headers 13 lines) ---
Found RTP audio format 8
Found RTP audio format 0
Found RTP audio format 101
Found audio description format PCMA for ID 8
Found audio description format PCMU for ID 0
Found audio description format telephone-event for ID 101
Capabilities: us - 0xe (gsm|ulaw|alaw), peer - audio=0xc (ulaw|alaw)/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 195.94.224.217:15258
list_route: hop: <sip:083832233791@195.94.224.217>
set_destination: Parsing <sip:083832233791@195.94.224.217> for address/port to send to
set_destination: set destination to 195.94.224.217:5060
Transmitting (no NAT) to 195.94.224.217:5060:
ACK sip:083832233791@195.94.224.217 SIP/2.0
Via: SIP/2.0/UDP 195.94.238.62:5060;branch=z9hG4bK2c2e5bc0
Max-Forwards: 70
From: " Bank " <sip:13490@195.94.238.62>;tag=as4c9fe57f
To: <sip:083832233791@195.94.224.217>;tag=as046d41ce
Contact: <sip:13490@195.94.238.62:5060>
Call-ID: 750fb57e3a8a34f65358a525535cf6b5@195.94.238.62:5060
CSeq: 103 ACK
User-Agent: Asterisk PBX 1.8.23.1
Content-Length: 0
---
> Channel SIP/13490-00004d5c was answered.
-- Executing [faxout@faxsend:1] NoOp("SIP/13490-00004d5c", "") in new stack
-- Executing [faxout@faxsend:2] Answer("SIP/13490-00004d5c", "") in new stack
-- Executing [faxout@faxsend:3] Wait("SIP/13490-00004d5c", "3") in new stack
Reliably Transmitting (NAT) to 195.94.224.217:5060:
OPTIONS sip:195.94.224.217 SIP/2.0
Via: SIP/2.0/UDP 195.94.238.62:5060;branch=z9hG4bK61e82f69;rport
Max-Forwards: 70
From: "asterisk" <sip:asterisk@195.94.238.62>;tag=as5743fcf7
To: <sip:195.94.224.217>
Contact: <sip:asterisk@195.94.238.62:5060>
Call-ID: 77eabf6b7195a1572874662f2cd1202d@195.94.238.62:5060
CSeq: 102 OPTIONS
User-Agent: Asterisk PBX 1.8.23.1
Date: Wed, 23 Oct 2013 22:42:15 GMT
Session-Expires: 1800
Min-SE: 90
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Length: 0
---
<--- SIP read from UDP:195.94.224.217:5060 --->
SIP/2.0 404 Not Found
Via: SIP/2.0/UDP 195.94.238.62:5060;branch=z9hG4bK61e82f69;received=195.94.238.62;rport=5060
From: "asterisk" <sip:asterisk@195.94.238.62>;tag=as5743fcf7
To: <sip:195.94.224.217>;tag=as43adb306
Call-ID: 77eabf6b7195a1572874662f2cd1202d@195.94.238.62:5060
CSeq: 102 OPTIONS
User-Agent: WC SoftSwitch 2.1
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO
Supported: replaces, timer
Accept: application/sdp
Content-Length: 0
<------------->
--- (11 headers 0 lines) ---
Really destroying SIP dialog '77eabf6b7195a1572874662f2cd1202d@195.94.238.62:5060' Method: OPTIONS
[Oct 24 02:42:15] NOTICE[97497]: chan_sip.c:15055 check_auth: Correct auth, but based on stale nonce received from '<sip:10107@10.77.7.1>;tag=2022009750'
-- Executing [faxout@faxsend:4] SendFAX("SIP/13490-00004d5c", "/var/spool/asterisk/fax-out/83832233791.tif,dfz") in new stack
-- Channel 'SIP/13490-00004d5c' sending FAX:
-- /var/spool/asterisk/fax-out/83832233791.tif
Reliably Transmitting (no NAT) to 195.94.224.217:5060:
OPTIONS sip:195.94.224.217 SIP/2.0
Via: SIP/2.0/UDP 195.94.238.62:5060;branch=z9hG4bK4e37feba
Max-Forwards: 70
From: "asterisk" <sip:13490@195.94.238.62>;tag=as32e3ad08
To: <sip:195.94.224.217>
Contact: <sip:13490@195.94.238.62:5060>
Call-ID: 1a53f3327f0f4acd2d1629de489af3b5@195.94.238.62:5060
CSeq: 102 OPTIONS
User-Agent: Asterisk PBX 1.8.23.1
Date: Wed, 23 Oct 2013 22:42:17 GMT
Session-Expires: 1800
Min-SE: 90
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Length: 0
---
<--- SIP read from UDP:195.94.224.217:5060 --->
SIP/2.0 404 Not Found
Via: SIP/2.0/UDP 195.94.238.62:5060;branch=z9hG4bK4e37feba;received=195.94.238.62
From: "asterisk" <sip:13490@195.94.238.62>;tag=as32e3ad08
To: <sip:195.94.224.217>;tag=as16a28cbe
Call-ID: 1a53f3327f0f4acd2d1629de489af3b5@195.94.238.62:5060
CSeq: 102 OPTIONS
User-Agent: WC SoftSwitch 2.1
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO
Supported: replaces, timer
Accept: application/sdp
Content-Length: 0
<------------->
--- (11 headers 0 lines) ---
Really destroying SIP dialog '1a53f3327f0f4acd2d1629de489af3b5@195.94.238.62:5060' Method: OPTIONS
<--- SIP read from UDP:195.94.224.217:5060 --->
BYE sip:13490@195.94.238.62:5060 SIP/2.0
Via: SIP/2.0/UDP 195.94.224.217:5060;branch=z9hG4bK7d84e801;rport
Max-Forwards: 70
From: <sip:083832233791@195.94.224.217>;tag=as046d41ce
To: " Bank " <sip:13490@195.94.238.62>;tag=as4c9fe57f
Call-ID: 750fb57e3a8a34f65358a525535cf6b5@195.94.238.62:5060
CSeq: 102 BYE
User-Agent: WC SoftSwitch 2.1
X-Asterisk-HangupCause: Normal Clearing
X-Asterisk-HangupCauseCode: 16
Content-Length: 0
<------------->
--- (11 headers 0 lines) ---
Sending to 195.94.224.217:5060 (no NAT)
Scheduling destruction of SIP dialog '750fb57e3a8a34f65358a525535cf6b5@195.94.238.62:5060' in 6400 ms (Method: BYE)
<--- Transmitting (no NAT) to 195.94.224.217:5060 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 195.94.224.217:5060;branch=z9hG4bK7d84e801;received=195.94.224.217;rport=5060
From: <sip:083832233791@195.94.224.217>;tag=as046d41ce
To: " Bank " <sip:13490@195.94.238.62>;tag=as4c9fe57f
Call-ID: 750fb57e3a8a34f65358a525535cf6b5@195.94.238.62:5060
CSeq: 102 BYE
Server: Asterisk PBX 1.8.23.1
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Length: 0
<------------>
[Oct 24 02:42:20] ERROR[97497]: res_fax.c:1857 sendfax_t38_init: error reading frame while generating CNG tone on SIP/13490-00004d5c
[Oct 24 02:42:20] ERROR[97497]: res_fax.c:2276 sendfax_exec: error initializing channel 'SIP/13490-00004d5c' in T.38 mode
== Spawn extension (faxsend, faxout, 4) exited non-zero on 'SIP/13490-00004d5c'
-- Executing [h@faxsend:1] NoOp("SIP/13490-00004d5c", "---------- FAX --- FAILED ------ FAX ---------------- ") in new stack
-- Executing [h@faxsend:2] System("SIP/13490-00004d5c", "'/usr/local/it/stat2mail -s FAILED -m nikitinkm@bank.ru -e 83832233791'") in new stack
[Oct 24 02:42:20] NOTICE[97497]: app_system.c:128 system_exec_helper: It is not necessary to quote the argument to the System application
Тут всё просто - Т38 не запустился со стороны провайдера. Так?