A
A
Alghazanth2016-05-16 17:05:50
MySQL
Alghazanth, 2016-05-16 17:05:50

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 answer(s)
I
Ilya Brazhnikov, 2016-05-16
@Alghazanth

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 question

Ask a Question

731 491 924 answers to any question