Asterisk CDR: issues with random digit added with endpoint

Hi,

We found in Asterisk CDR an random number is added with source and destination. For example if the destination is through IAX in cdr, it will store something like

IAX/DESTINAION_NAME-12345

In our server for all user the length of this number is fixed (5 digits) but for only one user it is the length of is varying (sometimes 4 sometimes 3 etc). What can be the reason for this. We want this length to be fixed. How to force asterisk to maintain a fixed length ?

The number defines the instance of a channel to that end point. The whole field should be treated as opaque, or used at your own risk. You need to use other information.

What is the reason that you are trying to extract information from this field?