[asterisk-bugs] [Asterisk 0012931]: [patch] T38 gateway for asterisk 1.4
noreply at bugs.digium.com
noreply at bugs.digium.com
Thu Jul 17 10:42:29 CDT 2008
A NOTE has been added to this issue.
======================================================================
http://bugs.digium.com/view.php?id=12931
======================================================================
Reported By: dafe_von_cetin
Assigned To:
======================================================================
Project: Asterisk
Issue ID: 12931
Category: Addons/New Feature
Reproducibility: N/A
Severity: feature
Priority: normal
Status: new
Asterisk Version: 1.4.20.1
SVN Branch (only for SVN checkouts, not tarball releases): N/A
SVN Revision (number only!):
Disclaimer on File?: N/A
Request Review:
======================================================================
Date Submitted: 06-26-2008 10:06 CDT
Last Modified: 07-17-2008 10:42 CDT
======================================================================
Summary: [patch] T38 gateway for asterisk 1.4
Description:
Hi all,
I'm sending you patch containing backport of T38 terminate functionality
from asterisk 1.6 + backported app_fax.c (with T38) application + new
application app_faxgateway.c ("FaxGateway").
Feature is using spands library (I used spandsp-0.0.4pre18 and
spandsp-0.0.5pre4).
Tests:
Tested on SIP and SS7 channels.
Tested gateway modes T30<->T38.
Tested with Linksys SPA2102.
I don't think I've tested everything so changes are possible.
Best regards
Daniel.
======================================================================
----------------------------------------------------------------------
festr - 07-17-08 10:42
----------------------------------------------------------------------
can i use FaxGateway(Zap/g1/xxx) for voice call? I'm testing
sip -> Zap/g1/xxx without fax (only testing dial). It consume 100% CPU and
there are no voice (sniffed SIP traffic - it is OK). Log:
[Jul 17 17:45:04] DEBUG[5533]: channel.c:2808 set_format: Set channel
Zap/33-1 to write format ulaw
[Jul 17 17:45:04] DEBUG[5533]: channel.c:2808 set_format: Set channel
Zap/33-1 to read format ulaw
[Jul 17 17:45:04] DEBUG[5533]: channel.c:1804 ast_settimeout: Scheduling
timer at 160 sample intervals
[Jul 17 17:45:04] DEBUG[4769]: chan_zap.c:9074 pri_dchannel: Queuing frame
from PRI_EVENT_PROCEEDING on channel 0/2 span 1
[Jul 17 17:45:04] DEBUG[5532]: app_faxgateway.c:623 transmit: faxGw -
something happend on peer
[Jul 17 17:45:04] DEBUG[5532]: app_faxgateway.c:639 transmit: faxGw -
AST_FRAME_CONTROL
[Jul 17 17:45:04] DEBUG[5532]: app_faxgateway.c:598 transmit: faxGw -
waiting for activity on channels
[Jul 17 17:45:04] DEBUG[5532]: app_faxgateway.c:623 transmit: faxGw -
something happend on peer
[Jul 17 17:45:04] DEBUG[5532]: app_faxgateway.c:598 transmit: faxGw -
waiting for activity on channels
[Jul 17 17:45:04] DEBUG[4769]: chan_zap.c:1442 zt_enable_ec: Enabled echo
cancellation on channel 2
[Jul 17 17:45:04] DEBUG[4768]: chan_sip.c:2109 __sip_autodestruct: Auto
destroying SIP dialog '0343fbf87ed9df7e11ec99b8555a55ec at 212.71.155.130'
[Jul 17 17:45:04] DEBUG[5532]: app_faxgateway.c:623 transmit: faxGw -
something happend on peer
[Jul 17 17:45:04] DEBUG[5532]: app_faxgateway.c:639 transmit: faxGw -
AST_FRAME_CONTROL
[Jul 17 17:45:04] DEBUG[5532]: app_faxgateway.c:660 transmit: faxGw -
AST_CONTROL_ANSWER
[Jul 17 17:45:04] DEBUG[5532]: app_faxgateway.c:711 transmit: faxGw -
connections build - ready 1 and erady to talk - 1
[Jul 17 17:45:04] DEBUG[5532]: app_faxgateway.c:716 transmit: faxGw -
ready to do gatewaing
[Jul 17 17:45:04] DEBUG[5532]: chan_sip.c:3796 sip_answer: SIP answering
channel: SIP/222350122-0821f4f8
[Jul 17 17:45:04] DEBUG[5532]: chan_sip.c:6899 transmit_response_with_sdp:
Setting framing from config on incoming call
[Jul 17 17:45:04] NOTICE[5532]: app_faxgateway.c:729 transmit: faxGw -
original call answered
[Jul 17 17:45:04] NOTICE[5532]: app_faxgateway.c:761 transmit: Doing T.38
gateway [ 1,0]
[Jul 17 17:45:04] DEBUG[5532]: app_faxgateway.c:382 ast_t38_gateway: faxGw
- ast_t38_gateway entry
[Jul 17 17:45:04] DEBUG[5532]: app_faxgateway.c:399 ast_t38_gateway: chan
0x81fdb88 peer 0x81eb818 channels[0] 0x81eb818 channels[1] 0x81fdb88
[Jul 17 17:45:04] DEBUG[5532]: channel.c:2808 set_format: Set channel
SIP/222350122-0821f4f8 to read format slin
[Jul 17 17:45:04] DEBUG[5532]: channel.c:2808 set_format: Set channel
SIP/222350122-0821f4f8 to write format slin
[Jul 17 17:45:04] NOTICE[5532]: app_faxgateway.c:430 ast_t38_gateway: T.38
gateway started
[Jul 17 17:45:04] DEBUG[4768]: chan_sip.c:2208 __sip_ack: Stopping
retransmission on '2126975476-5060-32 at 172.24.92.239' of Response 311: Match
Found
[Jul 17 17:45:04] WARNING[5532]: utils.c:1070 tvfix: warning negative
timestamp 135410627.-1230240852
[Jul 17 17:45:04] WARNING[5532]: utils.c:1070 tvfix: warning negative
timestamp 135410627.-1230240852
[Jul 17 17:45:04] DEBUG[5532]: rtp.c:2771 ast_rtp_write: Ooh, format
changed from unknown to alaw
[Jul 17 17:45:04] DEBUG[5532]: rtp.c:2788 ast_rtp_write: Created smoother:
format: 8 ms: 20 len: 160
[Jul 17 17:45:04] WARNING[5532]: utils.c:1070 tvfix: warning negative
timestamp 135410627.-1230240852
[Jul 17 17:45:04] WARNING[5532]: utils.c:1070 tvfix: warning negative
timestamp 135410627.-1230240852
[Jul 17 17:45:04] WARNING[5532]: utils.c:1070 tvfix: warning negative
timestamp 135410627.-1230240852
[Jul 17 17:45:04] WARNING[5532]: utils.c:1070 tvfix: warning negative
timestamp 135410627.-1230240852
------
negative timestamps are logging until hangup.
Issue History
Date Modified Username Field Change
======================================================================
07-17-08 10:42 festr Note Added: 0090390
======================================================================
More information about the asterisk-bugs
mailing list