Answer the question
In order to leave comments, you need to log in
How to write Asterisk's cdr-log correctly?
Situation: there is an asterisk server, calls from a landline number come to it. The voice menu prompts you to press one of the keys (1. 2. etc.) to select a department. So in the cdr-log, the number of the pressed key is entered in the dst field, but I would like it to have a city number that the subscriber dialed. I tried to change the ${CDR(dst)} variable, but it is at the time of the ridonly call.
Answer the question
In order to leave comments, you need to log in
1. Use the UserField field. This is the only field with write access. Well, then, respectively, in the statistics system, select it as a source of information about Dst.
1.1. As an option (a working scheme, but a little more complicated), drop the CDR table into another, and take the Dst field from the UserField there.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question