Size field lastdata in cdr table

Hi guys.
I have a question, a case where table cdr in field lastdata store only part data an not all data.
Example:
Data stored in lastdata:
PJSIP/1207/sip:1207@x.x.x.x:5003;rinstance=10E7FFF;x-ast-orig-host=10.65

Data complete:
PJSIP/1207/sip:1207@x.x.x.x:53003;rinstance=10E7DAB6;x-ast-orig-host=10.65.x.x:53003&PJSIP/1207/sip:1207@x.x.x.x:7468;rinstance=4A1E96C3&PJSIP/1207/sip:1207@x.x.x.x:5060,30…

But lastda is bigger than it.

Same alter table collumn lastdata to varchar(255) the data is same.
Does anyone havy any suggestions.

There are internal fixed limits on fields[1][2]. Extending the size of a column won’t change that. You could try modifying the CDR code, but there may be other limitations elsewhere in Asterisk.

[1] asterisk/cdr.h at 20 · asterisk/asterisk · GitHub
[2] asterisk/channel.h at 20 · asterisk/asterisk · GitHub

1 Like

Thanks very much!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.