[asterisk-dev] [Code Review] Fax Gateway Implementation T30<->T38

Russell Bryant reviewboard at asterisk.org
Fri Mar 4 09:51:54 CST 2011


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/1116/#review3227
-----------------------------------------------------------


It's very nice to see some additional work on this functionality.  I like the direction this patch is going right now.  Specifically, I like that it no longer requires a specific endpoint application to run anymore.  That was one of the key things that I wanted to see different.

There are still some things that I would like to see a bit different from how it works right now.  Even though it doesn't require running a T38Gateway() application directly, it still completely hijacks the core channel bridging loop and runs its own bridging loop.  I would like to see this implemented in such a way that it still uses the core channel bridging loop.  We started making some notes about this on this wiki page a while back:

https://wiki.asterisk.org/wiki/display/AST/T.38+Gateway 

In general, what I would like to see is a way to enable this functionality from the dialplan on any channel type.

; not necessarily exactly this, but you get the idea ...
exten => foo,1,Set(T38_GATEWAY()=on)

The dialplan function should create a T.38 gateway object and store it on a channel datastore.  This gateway object should take advantage of the frame hook API to intercept all audio, udptl, and control frames (see include/asterisk/framehook.h).  ast_queue_frame() and ast_write() can be used to write back out what comes out of the gateway.

This code is a great start toward getting to where we need to go with this. 

- Russell


On 2011-03-03 07:13:45, irroot wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviewboard.asterisk.org/r/1116/
> -----------------------------------------------------------
> 
> (Updated 2011-03-03 07:13:45)
> 
> 
> Review request for Asterisk Developers, Russell Bryant, dimas, Leif Madsen, and dafe_von_cetin.
> 
> 
> Summary
> -------
> 
> Hi there the patch that was going around circa 2008 to implement this in 1.4/1.6 app_fax has been moved to trunk [1.10]
> ive made some cleanups and moved it into res_fax res_fax_spandsp this is the framework and not production code
> unfortunately i have no means of testing it at the moment and require help.
> 
> i have cleaned the code up substantially it is related to R459
> 
> hope this is found useful and aids in the goal to get it in 1.10.
> 
> Adds application FaxGateway / FaxDetect
> Adds alternate bridge to Dial with new option.
> 
> 
> This addresses bug 13405.
>     https://issues.asterisk.org/view.php?id=13405
> 
> 
> Diffs
> -----
> 
>   /trunk/channels/chan_sip.c 309340 
>   /trunk/channels/sip/include/sip.h 309340 
>   /trunk/configs/sip.conf.sample 309340 
>   /trunk/include/asterisk/channel.h 309340 
>   /trunk/include/asterisk/res_fax.h 309340 
>   /trunk/main/channel.c 309340 
>   /trunk/res/res_fax.c 309340 
>   /trunk/res/res_fax_spandsp.c 309340 
> 
> Diff: https://reviewboard.asterisk.org/r/1116/diff
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> irroot
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20110304/f1cd629b/attachment-0001.htm>


More information about the asterisk-dev mailing list