[asterisk-dev] trying to port t38 gateway patch to svn revision 222535
Niccolò Belli
darkbasic4 at gmail.com
Sat Oct 10 05:55:25 CDT 2009
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