Hi Folks,
I'm evaluating OpenPBX for a possible migration from asterisk.

I'm trying to get RXFax to work, but with no luck.
I've read all the t.38 and "Receive Fax" threads from last month's
archives but don't see  the scenario I'm facing.

My PBX is in a data center, and I have DIDs from DIDx and RNKtelecom
(a CLEC in Massachusetts)

I try faxing to these DIDs from a standard fax machine (Panasonic) and
from eFax.
The dialplan uses
BackgroundDetect() ---> RXFax()

In both cases, a SIP Reinvite is sent out with a T.38 SDP but it gets
rejected by the SIP peer.  Shouldn't RXFax try to recieve the fax over
ulaw in this case?
It looks like the sender is hanging up.

I've included a section of the logs.  If anyone has any insight they
can share it would be greatly appreciated.

-Joe

chan_sip.c: Allocating new SIP dialog for (No Call-ID) - OPTIONS (No RTP)
chan_sip.c: = Found Their Call ID:
[EMAIL PROTECTED] Their Tag  Our tag:
as7ce6f3c8
chan_sip.c: Stopping retransmission on
'[EMAIL PROTECTED]' of Request 102: Match Found
chan_sip.c: = No match Their Call ID:
[EMAIL PROTECTED] Their Tag
68d238da7d1832978b1a894dbad8a35e.d16e Our tag: as0eec1d02
chan_sip.c: Allocating new SIP dialog for
[EMAIL PROTECTED] - INVITE (With RTP)
chan_sip.c: **** Received INVITE (5) - Command in SIP INVITE
chan_sip.c: Setting NAT on RTP to 1
chan_sip.c: Setting NAT on UDPTL to 1
chan_sip.c: Activating RTP on response
[EMAIL PROTECTED] (1)
chan_sip.c: T38 state changed to 0 on channel <none>
chan_sip.c: Checking SIP call limits for device
chan_sip.c: Updating call counter for incoming call
chan_sip.c: build_route: Record-Route hop:
<sip:216.143.130.36;ftag=as33abec66;lr=on>
chan_sip.c: Checking device state for peer 216.143.130.102
devicestate.c: Changing state for SIP/216.143.130.102 - state 2 (In use)

pbx.c: Launching 'Answer'
logger.c:     -- Executing Answer("SIP/216.143.130.102-09a661c8", "")
in new stack
chan_sip.c: sip_answer(SIP/216.143.130.102-09a661c8)
pbx.c: Launching 'Wait'
logger.c:     -- Executing Wait("SIP/216.143.130.102-09a661c8", "1")
in new stack
pbx.c: Launching 'BackgroundDetect'
logger.c:     -- Executing
BackgroundDetect("SIP/216.143.130.102-09a661c8", "aa_1") in new stack
app_backgrounddetect.c: Preparing detect of 'aa_1', sil=1000,min=100,max=-1
channel.c: Set channel SIP/216.143.130.102-09a661c8 to read format slin
generator.c: Trying to deactivate generator in SIP/216.143.130.102-09a661c8
generator.c: Generator on SIP/216.143.130.102-09a661c8 stopped after 0
iterations
channel.c: Set channel SIP/216.143.130.102-09a661c8 to write format gsm
rtp.c: Ooh, format changed from unknown to ulaw
rtp.c: Had to change frame MS from 0 to 20
rtp.c: Able to create smoother :) ms: 20 len 160
logger.c:     -- Playing 'aa_1' (language 'en')
app_backgrounddetect.c: Start of voice token!
app_backgrounddetect.c: Found unqualified token of 0 ms
app_backgrounddetect.c: Start of voice token!
app_backgrounddetect.c: Fax detected on SIP/216.143.130.102-09a661c8
 app_backgrounddetect.c: Redirecting SIP/216.143.130.102-09a661c8 to
fax extension [DTMF]
channel.c: Set channel SIP/216.143.130.102-09a661c8 to write format ulaw
channel.c: Set channel SIP/216.143.130.102-09a661c8 to read format ulaw
pbx.c: Launching 'Goto'
logger.c:     -- Executing Goto("SIP/216.143.130.102-09a661c8",
"ext-fax|in_fax|1") in new stack
logger.c:     -- Goto (ext-fax,in_fax,1)
pbx.c: Launching 'StopPlayTones'
logger.c:     -- Executing
StopPlayTones("SIP/216.143.130.102-09a661c8", "") in new stack
generator.c: Trying to deactivate generator in SIP/216.143.130.102-09a661c8
generator.c: Generator on SIP/216.143.130.102-09a661c8 stopped after 0
iterations

pbx.c: Launching 'Set'
logger.c:     -- Executing Set("SIP/216.143.130.102-09a661c8",
"FAXFILE=/tmp/1179689170.28.tif") in new stack
pbx.c: Launching 'Set'
logger.c:     -- Executing Set("SIP/216.143.130.102-09a661c8",
"EMAILADDR=jprosser at foo.com") in new stack
pbx.c: Launching 'NoOp'
logger.c:     -- Executing NoOp("SIP/216.143.130.102-09a661c8", "in
macro-faxreceive with email = jprosser at foo.com") in new stack
pbx.c: Launching 'Set'
logger.c:     -- Executing Set("SIP/216.143.130.102-09a661c8",
"LOCALSTATIONID= FAX") in new stack
pbx.c: Launching 'Set'
logger.c:     -- Executing Set("SIP/216.143.130.102-09a661c8",
"LOCALHEADERINFO=a solution provider for business") in new stack
pbx.c: Launching 'RxFAX'
logger.c:     -- Executing RxFAX("SIP/216.143.130.102-09a661c8",
"/tmp/1179689170.28.tif||debug|") in new stack
channel.c: Set channel SIP/216.143.130.102-09a661c8 to read format slin
channel.c: Set channel SIP/216.143.130.102-09a661c8 to write format slin
 channel.c: Dropping incompatible voice frame on
SIP/216.143.130.102-09a661c8 of format slin since our native format
has changed to ulaw
app_rxfax.c: FLOW T.30 HDLC carrier up in state 16
app_rxfax.c: FLOW T.30 HDLC carrier down in state 16
app_rxfax.c: Fax detected in RxFax !!!
chan_sip.c: Forcing reinvite on SIP (SIP/216.143.130.102-09a661c8) for
T.38 negotiation.
chan_sip.c: T38MaxFaxRate 14400 found
chan_sip.c: T38 state changed to 2 on channel SIP/216.143.130.102-09a661c8
 channel.c: Dropping incompatible voice frame on
SIP/216.143.130.102-09a661c8 of format slin since our native format
has changed to ulaw
chan_sip.c: = Found Their Call ID:
[EMAIL PROTECTED] Their Tag as33abec66
Our tag: as0ca99e2c
chan_sip.c: (Provisional) Stopping retransmission (but retaining
packet) on '[EMAIL PROTECTED]' Request
102: Found
chan_sip.c: SIP response 100 to RE-invite on outgoing call
[EMAIL PROTECTED]
chan_sip.c: = Found Their Call ID:
[EMAIL PROTECTED] Their Tag as33abec66
Our tag: as0ca99e2c
chan_sip.c: Acked pending invite 102
chan_sip.c: Stopping retransmission on
'[EMAIL PROTECTED]' of Request 102:
Match Found
logger.c:     -- Got SIP response 488 "Not acceptable here" back from
216.143.130.36
rtp.c: RTP NAT: Got audio from other end. Now sending to address
216.143.130.102:29352
app_rxfax.c: FLOW T.30 HDLC carrier up in state 16
app_rxfax.c: FLOW T.30 HDLC carrier down in state 16
app_rxfax.c: Fax detected in RxFax !!!
 channel.c: Dropping incompatible voice frame on
SIP/216.143.130.102-09a661c8 of format slin since our native format
has changed to ulaw
chan_sip.c: Auto destroying call '[EMAIL PROTECTED]'
app_rxfax.c: FLOW T.30 HDLC carrier up in state 16
app_rxfax.c: FLOW T.30 HDLC carrier down in state 16
app_rxfax.c: Fax detected in RxFax !!!
 channel.c: Dropping incompatible voice frame on
SIP/216.143.130.102-09a661c8 of format slin since our native format
has changed to ulaw
app_rxfax.c: FLOW T.30 HDLC carrier up in state 16
app_rxfax.c: FLOW T.30 HDLC carrier down in state 16
app_rxfax.c: Fax detected in RxFax !!!
 channel.c: Dropping incompatible voice frame on
SIP/216.143.130.102-09a661c8 of format slin since our native format
has changed to ulaw
chan_sip.c: = No match Their Call ID:
[EMAIL PROTECTED] Their Tag as33abec66
Our tag: as0ca99e2c
stun.c: Runt STUN packet (only 2, wanting at least 20)
chan_sip.c: = Found Their Call ID:
[EMAIL PROTECTED] Their Tag as33abec66
Our tag: as0ca99e2c
chan_sip.c: **** Received BYE (8) - Command in SIP BYE
generator.c: Trying to deactivate generator in SIP/216.143.130.102-09a661c8
generator.c: Generator on SIP/216.143.130.102-09a661c8 stopped after 0
iterations
app_rxfax.c: 
==============================================================================
app_rxfax.c: Fax receive not successful - result (61) The call dropped
prematurely.
app_rxfax.c: 
==============================================================================
app_rxfax.c: FLOW T.30 Changing from state 16 to 30
app_rxfax.c: FLOW T.30 Changing from phase T30_PHASE_A_CNG to
T30_PHASE_CALL_FINISHED
app_rxfax.c: FLOW FAX Set rx type 13
app_rxfax.c: FLOW FAX FAX exchange complete
app_rxfax.c: FLOW FAX Set tx type 13
app_rxfax.c: FLOW FAX FAX exchange complete
channel.c: Set channel SIP/216.143.130.102-09a661c8 to read format ulaw
channel.c: Set channel SIP/216.143.130.102-09a661c8 to write format ulaw
app_macro.c: Extension s, priority 6 returned normally even though
call was hung up
pbx.c: Extension in_fax, priority 3 returned normally even though call
was hung up
pbx.c: Launching 'Hangup'
logger.c:     -- Executing Hangup("SIP/216.143.130.102-09a661c8", "")
in new stack
pbx.c: Spawn extension (ext-fax,h,1) exited non-zero on
'SIP/216.143.130.102-09a661c8'
pbx.c: Function result is '"UNKNOWN" <UNKNOWN>'
pbx.c: Function result is 'UNKNOWN'
pbx.c: Function result is 'in_fax'
pbx.c: Function result is 'ext-fax'
pbx.c: Function result is 'SIP/216.143.130.102-09a661c8'
pbx.c: Function result is '(null)'
pbx.c: Function result is 'Hangup'
pbx.c: Function result is '(null)'
pbx.c: Function result is '2007-05-20 15:26:10'
pbx.c: Function result is '2007-05-20 15:26:10'
pbx.c: Function result is '2007-05-20 15:26:51'
pbx.c: Function result is '41'
pbx.c: Function result is '41'
pbx.c: Function result is 'ANSWERED'
pbx.c: Function result is 'DOCUMENTATION'
pbx.c: Function result is '1179689170.28'
pbx.c: Function result is '(null)'

channel.c: Hanging up channel 'SIP/216.143.130.102-09a661c8'
chan_sip.c: Hangup call SIP/216.143.130.102-09a661c8, SIP callid
[EMAIL PROTECTED])
chan_sip.c: update_call_counter() - decrement call limit counter
chan_sip.c: Updating call counter for outgoing call
channel.c: Generator : deactivate after channel unlock (hangup function)
generator.c: Trying to deactivate generator in SIP/216.143.130.102-09a661c8
generator.c: Generator on SIP/216.143.130.102-09a661c8 stopped after 0
iterations
_______________________________________________
Openpbx-users mailing list
[email protected]
http://lists.openpbx.org/mailman/listinfo/openpbx-users

Reply via email to