[asterisk-bugs] [Asterisk 0013405]: [patch] T38 gateway

Asterisk Bug Tracker noreply at bugs.digium.com
Fri Apr 8 01:40:36 CDT 2011


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=13405 
====================================================================== 
Reported By:                dafe_von_cetin
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   13405
Category:                   Applications/app_fax
Reproducibility:            N/A
Severity:                   feature
Priority:                   normal
Status:                     confirmed
Asterisk Version:           SVN 
JIRA:                       SWP-115 
Regression:                 No 
Reviewboard Link:           https://reviewboard.asterisk.org/r/459/ 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 140548 
Request Review:              
====================================================================== 
Date Submitted:             2008-08-30 16:44 CDT
Last Modified:              2011-04-08 01:40 CDT
====================================================================== 
Summary:                    [patch] T38 gateway
Description: 
Hi all,

I'm sending you patch containing new application app_faxgateway.c
("FaxGateway") which is able to mediate T30 to T38 and vice versa.
Feature is using spands library (I used spandsp-0.0.4pre18 and
spandsp-0.0.5pre4).

Best regards
Daniel.

======================================================================
Relationships       ID      Summary
----------------------------------------------------------------------
related to          0018889 [patch] T.38 state should be unavailabl...
====================================================================== 

---------------------------------------------------------------------- 
 (0133529) thomcr (reporter) - 2011-04-08 01:40
 https://issues.asterisk.org/view.php?id=13405#c133529 
---------------------------------------------------------------------- 
I got it to install with the latest 0.6 spandps but I have trouble with the
faxdetect app.

With the 1.8.4 patch and spandsp 0.6 latest

I'm having trouble testing the new 1.8.4 patch

  == Using SIP RTP CoS mark 5
    -- Executing [50624309954 at termination-test:1]
Set("SIP/robert-00000007", "GROUP(customers)=ibasis") in new stack
    -- Executing [50624309954 at termination-test:2]
Set("SIP/robert-00000007", "GROUP(termination)=ss7") in new stack
    -- Executing [50624309954 at termination-test:3]
Set("SIP/robert-00000007", "FAXOPT(t38gateway)=yes") in new stack
    -- Executing [50624309954 at termination-test:4]
Dial("SIP/robert-00000007", "DAHDI/g0/50624309954") in new stack
    -- Called g0/50624309954
    -- DAHDI/1-1 is proceeding passing it to SIP/robert-00000007
[Apr  8 00:26:35] NOTICE[31251]: chan_sip.c:8615 process_sdp: T.38
re-INVITE detected but no fax extension
    -- Running Gateway activestate=4 (SIP/robert-00000007) and
inactivestate=0 (DAHDI/1-1)
[Apr  8 00:26:35] ERROR[10783]: res_fax.c:822 fax_session_reserve: Could
not locate a FAX technology module with capabilities (T38_GATEWAY)
[Apr  8 00:26:35] ERROR[10783]: res_fax.c:2527
__ast_t38_gateway_handle_parameters: Unable to reserve FAX session.
    -- Running Gateway activestate=0 (DAHDI/1-1) and inactivestate=4
(SIP/robert-00000007)
[Apr  8 00:26:35] ERROR[10783]: res_fax.c:822 fax_session_reserve: Could
not locate a FAX technology module with capabilities (T38_GATEWAY)
[Apr  8 00:26:35] ERROR[10783]: res_fax.c:2527
__ast_t38_gateway_handle_parameters: Unable to reserve FAX session.

 T38 negotiation sip level is sucessfull. The call gets established but
the fax on the other side, receive nothing and disconect. In this example I
see 

Running Gateway activestate=4 (SIP/robert-00000007) and inactivestate=0

  '_5062XXXXXXX' => 1. Set(FAXOPT(t38gateway)=yes)               
[pbx_config]
                    2. Dial(DAHDI/g0/${EXTEN})                   
[pbx_config]
                    3. Hangup()                                  
[pbx_config]

I added the faxdetect app you created. Can you explain us what it actually
does? As well the number parameter you pass on to it?

  '_5062XXXXXXX' => 1. Set(FAXOPT(t38gateway)=yes)               
[pbx_config]
                    2. FaxDetect(5)                              
[pbx_config]
                    3. Dial(DAHDI/g0/${EXTEN})                   
[pbx_config]
                    4. Hangup()                                  
[pbx_config]

With this setup I dont see the "running gateway"

  == Using SIP RTP CoS mark 5
    -- Executing [50624309954 at termination-test:1]
Set("SIP/robert-00000005", "GROUP(customers)=ibasis") in new stack
    -- Executing [50624309954 at termination-test:2]
Set("SIP/robert-00000005", "GROUP(termination)=ss7") in new stack
    -- Executing [50624309954 at termination-test:3]
Set("SIP/robert-00000005", "FAXOPT(t38gateway)=yes") in new stack
    -- Executing [50624309954 at termination-test:4]
FaxDetect("SIP/robert-00000005", "5") in new stack
    -- Executing [50624309954 at termination-test:5]
Dial("SIP/robert-00000005", "DAHDI/g0/50624309954") in new stack
    -- Called g0/50624309954
    -- DAHDI/1-1 is proceeding passing it to SIP/robert-00000005
    -- DAHDI/1-1 answered SIP/robert-00000005

Asterisk drop after 5 seconds with an 488 not acceptable here.

https://issues.asterisk.org/view.php?id=16327

Not sure if your patch, https://issues.asterisk.org/view.php?id=18889 has
something to do with it, but with the 1.8.4 patch I couldn't apply the sip
patch. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-04-08 01:40 thomcr         Note Added: 0133529                          
======================================================================




More information about the asterisk-bugs mailing list