Max CtRiX wrote:

>wipe out all the libraries and headers.
>You have some mismatch there.... and it segfaults.
>Latest spandsp (0.0.4) and latest trunk work well.
>  
>
I have the latest opbx and spandsp code compiled successfully but can no 
longer send/receive a fax with this setup.  I can see the initial RTP 
and then see the call switch to T.38.  However, after just a few seconds 
the call drops with the other end sending a BYE and I get a PHASESTATUS 
of 61 (call dropped prematurely).  The debug logs don't tell me much - 
the call looks healthy enough until it gets dropped by the other end.

Looking at the udptl debug I don't see many packets coming from opbx 
before it drops - only a stream of packets coming in from the other side 
(which is a Cisco 5350/5400 gateway).  If I switch back to SpanDSP 
0.0.3pre28 and opbx 1.2RC3 everything works as expected and the T.38 
part of the call stays up and I can send/receive faxes (albeit with some 
corruptions on outbound fax content).

Debug (with IP/phone nums edited) attached below:


    -- Executing TxFAX("SIP/siptrunk-ada6", 
"/var/spool/faxoutbound/fax1.tif|caller|debug") in new stack
fep3*CLI>
<-- SIP read from 4.3.2.1:5060:
INVITE sip:[EMAIL PROTECTED] SIP/2.0
Max-Forwards: 4
Session-Expires: 3600;Refresher=uac
Supported: timer
To: "6493456789" <sip:[EMAIL PROTECTED]>;tag=as3ad33be2
From: <sip:[EMAIL PROTECTED]>;tag=3385229008-787453
Call-ID: [EMAIL PROTECTED]
CSeq: 2 INVITE
Via: SIP/2.0/UDP 4.3.2.1:5060;branch=b8f4ae8e17e26b981b2f63c37122c7b7
Contact: sip:[EMAIL PROTECTED]:5060
Content-Type: application/sdp
Content-Length: 352

v=0
o=mscak1 1234 849 IN IP4 1.2.3.4
s=sip call
c=IN IP4 1.2.3.4
t=0 0
m=image 38524 udptl t38
a=T38FaxVersion:0
a=T38MaxBitRate:14400
a=T38FaxFillBitRemoval:0
a=T38FaxTranscodingMMR:0
a=T38FaxTranscodingJBIG:0
a=T38FaxRateManagement:transferredTCF
a=T38FaxMaxBuffer:200
a=T38FaxMaxDatagram:72
a=T38FaxUdpEC:t38UDPRedundancy

--- (12 headers 15 lines) ---
Using INVITE request as basis request - [EMAIL PROTECTED]
Sending to 4.3.2.1 : 5060 (NAT)
Got T.38 offer in SDP
Peer T.38 UDPTL is at port 1.2.3.4:38524
Capabilities: us - 0x8 (alaw), peer - audio=0x8 (alaw)/video=0x0 (nothing), 
combined - 0x8 (alaw)
Non-codec capabilities: us - 0x1 (telephone-event), peer - 0x0 (nothing), 
combined - 0x0 (nothing)
T.38 UDPTL is at port 5.6.7.8:38936
Reliably Transmitting (NAT) to 4.3.2.1:5060:
SIP/2.0 200 OK
Via: SIP/2.0/UDP 
4.3.2.1:5060;branch=b8f4ae8e17e26b981b2f63c37122c7b7;received=4.3.2.1
From: <sip:[EMAIL PROTECTED]>;tag=3385229008-787453
To: "6493456789" <sip:[EMAIL PROTECTED]>;tag=as3ad33be2
Call-ID: [EMAIL PROTECTED]
CSeq: 2 INVITE
User-Agent: 2Talk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Max-Forwards: 70
Contact: <sip:[EMAIL PROTECTED]>
Content-Type: application/sdp
Content-Length: 353

v=0
o=root 16955 16956 IN IP4 5.6.7.8
s=session
c=IN IP4 5.6.7.8
t=0 0
m=image 38936 udptl t38
a=T38FaxVersion:0
a=T38MaxBitRate:14400
a=T38FaxFillBitRemoval:0
a=T38FaxTranscodingMMR:0
a=T38FaxTranscodingJBIG:0
a=T38FaxRateManagement:transferredTCF
a=T38FaxMaxBuffer:72
a=T38FaxMaxDatagram:72
a=T38FaxUdpEC:t38UDPRedundancy

---
Sent UDPTL packet to 1.2.3.4:38524 (seq 0, len 6)
Got UDPTL packet from 1.2.3.4:38524 (len 172)
fep3*CLI>
<-- SIP read from 4.3.2.1:5060:
ACK sip:[EMAIL PROTECTED] SIP/2.0
Max-Forwards: 4
To: "6493456789" <sip:[EMAIL PROTECTED]>;tag=as3ad33be2
From: <sip:[EMAIL PROTECTED]>;tag=3385229008-787453
Call-ID: [EMAIL PROTECTED]
CSeq: 2 ACK
Via: SIP/2.0/UDP 4.3.2.1:5060;branch=b8f4ae8e17e26b981b2f63c37122c7b7
Contact: sip:[EMAIL PROTECTED]:5060
Content-Length: 0


--- (9 headers 0 lines) ---
Sent UDPTL packet to 1.2.3.4:38524 (seq 1, len 8)
Got UDPTL packet from 1.2.3.4:38524 (len 6)
Got UDPTL packet from 1.2.3.4:38524 (len 8)
Got UDPTL packet from 1.2.3.4:38524 (len 8)
Got UDPTL packet from 1.2.3.4:38524 (len 6)
Got UDPTL packet from 1.2.3.4:38524 (len 6)
Got UDPTL packet from 1.2.3.4:38524 (len 11)
Got UDPTL packet from 1.2.3.4:38524 (len 11)
Got UDPTL packet from 1.2.3.4:38524 (len 11)
Got UDPTL packet from 1.2.3.4:38524 (len 11)
Got UDPTL packet from 1.2.3.4:38524 (len 11)
Got UDPTL packet from 1.2.3.4:38524 (len 11)
Got UDPTL packet from 1.2.3.4:38524 (len 11)
Got UDPTL packet from 1.2.3.4:38524 (len 11)
Got UDPTL packet from 1.2.3.4:38524 (len 11)
Got UDPTL packet from 1.2.3.4:38524 (len 11)
Got UDPTL packet from 1.2.3.4:38524 (len 11)
Got UDPTL packet from 1.2.3.4:38524 (len 11)
Got UDPTL packet from 1.2.3.4:38524 (len 11)
Got UDPTL packet from 1.2.3.4:38524 (len 11)
Got UDPTL packet from 1.2.3.4:38524 (len 8)
Got UDPTL packet from 1.2.3.4:38524 (len 11)
Got UDPTL packet from 1.2.3.4:38524 (len 11)
Got UDPTL packet from 1.2.3.4:38524 (len 11)
Got UDPTL packet from 1.2.3.4:38524 (len 11)
Got UDPTL packet from 1.2.3.4:38524 (len 11)
Got UDPTL packet from 1.2.3.4:38524 (len 11)
Got UDPTL packet from 1.2.3.4:38524 (len 11)
Got UDPTL packet from 1.2.3.4:38524 (len 11)
Got UDPTL packet from 1.2.3.4:38524 (len 11)
Got UDPTL packet from 1.2.3.4:38524 (len 11)
Got UDPTL packet from 1.2.3.4:38524 (len 11)
Got UDPTL packet from 1.2.3.4:38524 (len 11)
Got UDPTL packet from 1.2.3.4:38524 (len 11)
Got UDPTL packet from 1.2.3.4:38524 (len 11)
Got UDPTL packet from 1.2.3.4:38524 (len 11)
Got UDPTL packet from 1.2.3.4:38524 (len 11)
Got UDPTL packet from 1.2.3.4:38524 (len 11)
Got UDPTL packet from 1.2.3.4:38524 (len 11)
Got UDPTL packet from 1.2.3.4:38524 (len 11)
Got UDPTL packet from 1.2.3.4:38524 (len 11)
Got UDPTL packet from 1.2.3.4:38524 (len 11)
Got UDPTL packet from 1.2.3.4:38524 (len 11)
Got UDPTL packet from 1.2.3.4:38524 (len 11)
Got UDPTL packet from 1.2.3.4:38524 (len 8)
Got UDPTL packet from 1.2.3.4:38524 (len 11)
Got UDPTL packet from 1.2.3.4:38524 (len 11)
Got UDPTL packet from 1.2.3.4:38524 (len 11)
Got UDPTL packet from 1.2.3.4:38524 (len 11)
Got UDPTL packet from 1.2.3.4:38524 (len 11)
Got UDPTL packet from 1.2.3.4:38524 (len 11)
Got UDPTL packet from 1.2.3.4:38524 (len 11)
Got UDPTL packet from 1.2.3.4:38524 (len 11)
Got UDPTL packet from 1.2.3.4:38524 (len 11)
Got UDPTL packet from 1.2.3.4:38524 (len 11)
Got UDPTL packet from 1.2.3.4:38524 (len 8)
Got UDPTL packet from 1.2.3.4:38524 (len 8)
Sent UDPTL packet to 1.2.3.4:38524 (seq 2, len 10)
Got UDPTL packet from 1.2.3.4:38524 (len 6)
Sent UDPTL packet to 1.2.3.4:38524 (seq 3, len 17)
Sent UDPTL packet to 1.2.3.4:38524 (seq 4, len 22)
Sent UDPTL packet to 1.2.3.4:38524 (seq 5, len 27)
Sent UDPTL packet to 1.2.3.4:38524 (seq 6, len 29)
Sent UDPTL packet to 1.2.3.4:38524 (seq 7, len 24)
fep3*CLI>
<-- SIP read from 4.3.2.1:5060:
INVITE sip:[EMAIL PROTECTED] SIP/2.0
Max-Forwards: 4
Session-Expires: 3600;Refresher=uac
Supported: timer
To: "6493456789" <sip:[EMAIL PROTECTED]>;tag=as3ad33be2
From: <sip:[EMAIL PROTECTED]>;tag=3385229008-787453
Call-ID: [EMAIL PROTECTED]
CSeq: 3 INVITE
Via: SIP/2.0/UDP 4.3.2.1:5060;branch=d76d711ef8bfbafcb28d6b3a6213e83e
Contact: sip:[EMAIL PROTECTED]:5060
Content-Type: application/sdp
Content-Length: 135

v=0
o=mscak1 1234 850 IN IP4 1.2.3.4
s=sip call
c=IN IP4 1.2.3.4
t=0 0
m=audio 38524 RTP/AVP 8
a=rtpmap:8 PCMA/8000

--- (12 headers 7 lines) ---
Using INVITE request as basis request - [EMAIL PROTECTED]
Sending to 4.3.2.1 : 5060 (NAT)
Found RTP audio format 8
Peer audio RTP is at port 1.2.3.4:38524
Found description format PCMA
Capabilities: us - 0x8 (alaw), peer - audio=0x8 (alaw)/video=0x0 (nothing), 
combined - 0x8 (alaw)
Non-codec capabilities: us - 0x1 (telephone-event), peer - 0x0 (nothing), 
combined - 0x0 (nothing)
We're at 5.6.7.8 port 38936
Adding codec 0x8 (alaw) to SDP
Reliably Transmitting (NAT) to 4.3.2.1:5060:
SIP/2.0 200 OK
Via: SIP/2.0/UDP 
4.3.2.1:5060;branch=d76d711ef8bfbafcb28d6b3a6213e83e;received=4.3.2.1
From: <sip:[EMAIL PROTECTED]>;tag=3385229008-787453
To: "6493456789" <sip:[EMAIL PROTECTED]>;tag=as3ad33be2
Call-ID: [EMAIL PROTECTED]
CSeq: 3 INVITE
User-Agent: 2Talk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Max-Forwards: 70
Contact: <sip:[EMAIL PROTECTED]>
Content-Type: application/sdp
Content-Length: 164

v=0
o=root 16955 16957 IN IP4 5.6.7.8
s=session
c=IN IP4 5.6.7.8
t=0 0
m=audio 38936 RTP/AVP 8
a=rtpmap:8 PCMA/8000
a=silenceSupp:off - - - -

---
fep3*CLI>
<-- SIP read from 4.3.2.1:5060:
ACK sip:[EMAIL PROTECTED] SIP/2.0
Max-Forwards: 4
To: "6493456789" <sip:[EMAIL PROTECTED]>;tag=as3ad33be2
From: <sip:[EMAIL PROTECTED]>;tag=3385229008-787453
Call-ID: [EMAIL PROTECTED]
CSeq: 3 ACK
Via: SIP/2.0/UDP 4.3.2.1:5060;branch=d76d711ef8bfbafcb28d6b3a6213e83e
Contact: sip:[EMAIL PROTECTED]:5060
Content-Length: 0


--- (9 headers 0 lines) ---
fep3*CLI>
<-- SIP read from 4.3.2.1:5060:
BYE sip:[EMAIL PROTECTED] SIP/2.0
Max-Forwards: 4
To: "6493456789" <sip:[EMAIL PROTECTED]>;tag=as3ad33be2
From: <sip:[EMAIL PROTECTED]>;tag=3385229008-787453
Call-ID: [EMAIL PROTECTED]
CSeq: 4 BYE
Via: SIP/2.0/UDP 4.3.2.1:5060;branch=648bce1728bafc9265875cb8e61cede9
Contact: sip:[EMAIL PROTECTED]:5060
Content-Length: 0


--- (9 headers 0 lines) ---
Sending to 4.3.2.1 : 5060 (NAT)
Transmitting (NAT) to 4.3.2.1:5060:
SIP/2.0 200 OK
Via: SIP/2.0/UDP 
4.3.2.1:5060;branch=648bce1728bafc9265875cb8e61cede9;received=4.3.2.1
From: <sip:[EMAIL PROTECTED]>;tag=3385229008-787453
To: "6493456789" <sip:[EMAIL PROTECTED]>;tag=as3ad33be2
Call-ID: [EMAIL PROTECTED]
CSeq: 4 BYE
User-Agent: 2Talk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Max-Forwards: 70
Contact: <sip:[EMAIL PROTECTED]>
Content-Length: 0
X-OpenPBX-HangupCause: Normal Clearing                                          
                                            



_______________________________________________
Openpbx-users mailing list
[email protected]
http://lists.openpbx.org/mailman/listinfo/openpbx-users

Reply via email to