Saint Michael
2016-Nov-12 02:24 UTC
[asterisk-users] CHANNEL(accountcode) only stores 19 chars
?I cannot store more than 19 chars in CHANNEL(accountcode). I can certainly store more in the code, but my CDR table, which has an ?accountcode field varchar(256) only shows 19. There is a disconnect somewhere. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20161111/6735bc75/attachment.html>
John Kiniston
2016-Nov-14 16:07 UTC
[asterisk-users] CHANNEL(accountcode) only stores 19 chars
Line 161 of include/asterisk/channel.h:#define AST_MAX_ACCOUNT_CODE 20 /*!< Max length of an account code */ That's where your limit is coming from, I see some other places where the code doesn't use that definition ( chan_ooh323, cdr_sqlite, cdr_tds , res_config_sqlite) So as long as you are not using those functions you should be able to change AST_MAX_ACCOUNT_CODE and recompile to increase the length of your account code field. On Fri, Nov 11, 2016 at 7:24 PM, Saint Michael <venefax at gmail.com> wrote:> ?I cannot store more than 19 chars in CHANNEL(accountcode). I can > certainly store more in the code, but my CDR table, which has an > ?accountcode field varchar(256) only shows 19. There is a disconnect > somewhere. > > > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > > Check out the new Asterisk community forum at: https://community.asterisk. > org/ > > New to Asterisk? Start here: > https://wiki.asterisk.org/wiki/display/AST/Getting+Started > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >-- A human being should be able to change a diaper, plan an invasion, butcher a hog, conn a ship, design a building, write a sonnet, balance accounts, build a wall, set a bone, comfort the dying, take orders, give orders, cooperate, act alone, solve equations, analyze a new problem, pitch manure, program a computer, cook a tasty meal, fight efficiently, die gallantly. Specialization is for insects. ---Heinlein -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20161114/e8ee922a/attachment.html>