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

Asterisk Bug Tracker noreply at bugs.digium.com
Tue May 17 00:08:46 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:                mnicholson
====================================================================== 
Project:                    Asterisk
Issue ID:                   13405
Category:                   Applications/app_fax
Reproducibility:            N/A
Severity:                   feature
Priority:                   normal
Status:                     assigned
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-05-17 00:08 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...
related to          0019251 [patch] Framehooks ast_indicate_data In...
====================================================================== 

---------------------------------------------------------------------- 
 (0135006) sles (reporter) - 2011-05-17 00:08
 https://issues.asterisk.org/view.php?id=13405#c135006 
---------------------------------------------------------------------- 
irroot, thank you!

I downloaded your branch, it works, if asterisk receives fax, but it
crashes when it sends it from dahdi to ooh323:

   -- Executing [4406 at dahdi:1] Set("DAHDI/i1/6401-26",
"FAXOPT(t38gateway)=yes") in new stack
    -- Executing [4406 at dahdi:2] Dial("DAHDI/i1/6401-26", "OOH323/5308") in
new stack
    -- Called OOH323/5308
    -- OOH323/5308-9 is ringing
    -- OOH323/5308-9 is making progress passing it to DAHDI/i1/6401-26
    -- OOH323/5308-9 answered DAHDI/i1/6401-26
    -- fixed jitterbuffer created on channel DAHDI/i1/6401-26
    -- Channel 28 detected a CED tone towards the network.
    -- Request on OOH323/5308-9 [4] Ignoring I: DAHDI/i1/6401-26 [0]
    -- T.38 Gateway starting for chan DAHDI/i1/6401-26 and peer
OOH323/5308-9
ast-ngdu2*CLI> 
Disconnected from Asterisk server
Executing last minute cleanups
Asterisk cleanly ending (0).


here is backtrace:
Core was generated by `/usr/sbin/asterisk -f -U asterisk -G asterisk -p
-vvvg -c'.
Program terminated with signal 11, Segmentation fault.
https://issues.asterisk.org/view.php?id=0  t38_gateway_rx (s=0x2aaaabfc5c08,
amp=0x0, len=160) at
t38_gateway.c:2226
2226	{
(gdb) bt
https://issues.asterisk.org/view.php?id=0  t38_gateway_rx (s=0x2aaaabfc5c08,
amp=0x0, len=160) at
t38_gateway.c:2226
https://issues.asterisk.org/view.php?id=1  0x00002aaac5da737f in
spandsp_fax_gateway_process (s=0x1e3bdfd8,
f=0x40acdd70) at res_fax_spandsp.c:725
https://issues.asterisk.org/view.php?id=2  0x00002aaac5da6c9c in
spandsp_fax_write (s=0x1e3bdfd8, f=0x40acdd70)
at res_fax_spandsp.c:579
https://issues.asterisk.org/view.php?id=3  0x00002aaaab127fab in
t38_gw_framehook (chan=0x1e3375a8, f=0x40acdd70,
event=AST_FRAMEHOOK_EVENT_WRITE, data=0x1e27c538)
    at res_fax.c:2709
https://issues.asterisk.org/view.php?id=4  0x00000000004d0788 in
framehook_list_push_event
(framehooks=0x1e327720, frame=0x40acdd70, 
    event=AST_FRAMEHOOK_EVENT_WRITE) at framehook.c:83
https://issues.asterisk.org/view.php?id=5  0x00000000004d0c80 in
ast_framehook_list_write_event
(framehooks=0x1e327720, frame=0x40acdd70) at framehook.c:178
https://issues.asterisk.org/view.php?id=6  0x000000000047562b in ast_write
(chan=0x1e3375a8, fr=0x40acdd70) at
channel.c:4723
https://issues.asterisk.org/view.php?id=7  0x0000000000422ddf in
jb_get_and_deliver (chan=0x1e3375a8) at
abstract_jb.c:424
https://issues.asterisk.org/view.php?id=8  0x0000000000422b34 in
ast_jb_get_and_deliver (c0=0x1e3375a8,
c1=0x1e347b88) at abstract_jb.c:377
https://issues.asterisk.org/view.php?id=9  0x000000000047e171 in
ast_generic_bridge (c0=0x1e3375a8,
c1=0x1e347b88, config=0x40acfd30, fo=0x40ace848, rc=0x40ace840)
    at channel.c:6844
https://issues.asterisk.org/view.php?id=10 0x000000000048077d in
ast_channel_bridge (c0=0x1e3375a8,
c1=0x1e347b88, config=0x40acfd30, fo=0x40ace848, rc=0x40ace840)
    at channel.c:7288
https://issues.asterisk.org/view.php?id=11 0x00000000004bc983 in ast_bridge_call
(chan=0x1e3375a8,
peer=0x1e347b88, config=0x40acfd30) at features.c:3612
https://issues.asterisk.org/view.php?id=12 0x00002aaac33390ba in dial_exec_full
(chan=0x1e3375a8, data=0x40ad26a0
"OOH323/5308", peerflags=0x40ad0450, 
    continue_exec=0x0) at app_dial.c:2795
https://issues.asterisk.org/view.php?id=13 0x00002aaac3339a0d in dial_exec
(chan=0x1e3375a8, data=0x40ad26a0
"OOH323/5308") at app_dial.c:2895
https://issues.asterisk.org/view.php?id=14 0x0000000000500c8f in pbx_exec
(c=0x1e3375a8, app=0x2aaad00609c0,
data=0x40ad26a0 "OOH323/5308") at pbx.c:1406
https://issues.asterisk.org/view.php?id=15 0x000000000050ac6a in
pbx_extension_helper (c=0x1e3375a8, con=0x0,
context=0x1e337b00 "dahdi", exten=0x1e337b50 "4406", 
    priority=2, label=0x0, callerid=0x1e327b10 "6401", action=E_SPAWN,
found=0x40ad4e80, combined_find_spawn=1)
    at pbx.c:4102
https://issues.asterisk.org/view.php?id=16 0x000000000050c5cb in
ast_spawn_extension (c=0x1e3375a8,
context=0x1e337b00 "dahdi", exten=0x1e337b50 "4406", 
    priority=2, callerid=0x1e327b10 "6401", found=0x40ad4e80,
combined_find_spawn=1) at pbx.c:4625
https://issues.asterisk.org/view.php?id=17 0x000000000050d062 in __ast_pbx_run
(c=0x1e3375a8, args=0x0) at
pbx.c:4723
https://issues.asterisk.org/view.php?id=18 0x000000000050ee11 in pbx_thread
(data=0x1e3375a8) at pbx.c:5058
https://issues.asterisk.org/view.php?id=19 0x0000000000563ef9 in dummy_start
(data=0x1e2f9290) at utils.c:973
https://issues.asterisk.org/view.php?id=20 0x0000003f93a0673d in start_thread ()
from /lib64/libpthread.so.0
https://issues.asterisk.org/view.php?id=21 0x0000003f92ed44bd in clone () from
/lib64/libc.so.6


Thank you very much for your work! 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-05-17 00:08 sles           Note Added: 0135006                          
======================================================================




More information about the asterisk-bugs mailing list