[asterisk-dev] trying to port t38 gateway patch to svn revision 222535

Niccolò Belli darkbasic4 at gmail.com
Tue Oct 13 17:52:18 CDT 2009


No one can help me? Is
t30fax->asterisk->callweaver(t30-to-t38)->asterisk(t38passtrough)->voipprovider
the only possible solution? :(

Darkbasic

Il 07 ottobre 2009 22.12, Niccolò Belli <darkbasic4 at gmail.com> ha scritto:
> Hi!
> I'm trying to port t38 gateway patch to asterisk 1.6.2, but I'm not a
> developer and so I'm not sure of what I'm doing.
> This is the original patch: http://darkbasic.homelinux.com/t38-gw-r205116.patch
> and this is the one modified by me:
> http://darkbasic.homelinux.com/t38-gw-r222535.patch
>
>
> Can nobody help me? There are only two things which I'm not sure about
> due to the upgrade to AST_CONTROL_T38_PARAMETERS (from the old
> AST_CONTROL_T38) and due to __ast_request_and_dial() which now wants
> one less parameter...
>
> The first one is:
> Code:
> +   enum ast_control_t38 t38control = AST_T38_REQUEST_NEGOTIATE;
> [...]
> + t38control = AST_T38_REQUEST_NEGOTIATE;
>
> which I changed to
> Code:
> +   struct ast_control_t38_parameters t38control = { .request_response
> = AST_T38_REQUEST_NEGOTIATE,
> +      .version = 0,
> +      .max_ifp = 800,
> +      .rate = AST_T38_RATE_9600,
> +      .rate_management = AST_T38_RATE_MANAGEMENT_TRANSFERRED_TCF,
> +      .fill_bit_removal = 1,
> +      .transcoding_mmr = 1,
> +      .transcoding_jbig = 1,
> +   };
> [...]
> + t38control.request_response = AST_T38_REQUEST_NEGOTIATE;
>
>
> The second one is:
> Code:
> +   if (!(s->peer = __ast_request_and_dial(tech, AST_FORMAT_SLINEAR,
> chan, numsubst, timeout, &state, chan->cid.cid_num,
> chan->cid.cid_name, &oh))) {
>
> which I changed to
> Code:
> +   if (!(s->peer = __ast_request_and_dial(tech, AST_FORMAT_SLINEAR,
> numsubst, timeout, &state, chan->cid.cid_num, chan->cid.cid_name,
> &oh))) {
>
>
> I don't know if it's correct and maybe there is something else to modify.
>
> Thank you,
> Darkbasic
>



More information about the asterisk-dev mailing list