I am using Asterisk 1.07, TDM400P with 4 green PCBs.
To every one of this modules, we are connecting devices which support reverse polarity.
When I am making call, time from answering of PCB to hangup.
And real call is only small part of total time:
Total time:60 sec
Billing time:55 sec
Real conversation: 11 sec - this is according to my phone.
I made some changes in chan_zap.c
I put there additional raw to handle Reverce polarity signal:
ast_log(LOG_WARNING, "Yep! %d BlaBla",TTStoyan);
ast_log(LOG_WARNING, " Start ");
And StoyanTimerFunc is doing only 1 thing. If asked for first time - get current time, if asced second time, to return how many seconds are passed, than to clear everything. Very simple function, but it mesure time very precisely.
Than I have 60 sec total time, 55 sec billing time, 11 sec real time.
If neccessary, I will change that file, but I would like to know if there are better ways.
May be some settings in zapata.conf?