How to write cdr-log Asterisk'a?

Situation: have a server asterisk, it calls come from a landline. A voice menu prompts you to press one of the buttons (1. 2. etc.) to select the Department. So in cdr-log in field dst records the number of pressed keys, and I wish there was a landline number that is dialed by the subscriber. Tried to change variable ${CDR(dst)}, but in the time of the call readonly.
July 9th 19 at 13:53
1 answer
July 9th 19 at 13:55
Solution
1. Use the field UserField, This is the only field with write. Well, then, respectively, in the system statistics, choose it as a source of information about Dst.
1.1. As an option (running the scheme, but a little more difficult) to throw off the CDR table to another, and there is a field Dst to take from UserField.

Find more questions by tags AsteriskMySQL