flantel created an issue (kamailio/kamailio#4218)
### Description
If I add a prefix of greater than 12 characters in to prefix_route it does not return the correct route but instead acts as if no record was found.
### Troubleshooting
#### Reproduction
Create a prefix_route prefix of more than 12 characters and the route will not be chosen.
#### Debugging Data
There is none.
#### Log Messages
prefix_route does not seem to produce DEBUG level messages.
### Additional Information
``` kamailio 5.8.6 (x86_64/linux) ```
miconda left a comment (kamailio/kamailio#4218)
At a quick look, it does not seem to be a limit in code for the length of the prefix. Is the column type varchar and longer enough to accommodate what you introduce? What you get when you route:
- https://www.kamailio.org/docs/modules/stable/modules/prefix_route.html#prefi...
Are the records looking ok?
flantel left a comment (kamailio/kamailio#4218)
At a quick look, it does not seem to be a limit in code for the length of the prefix. Is the column type varchar and longer enough to accommodate what you introduce? What you get when you route:
Are the records looking ok?
Hi Daniel,
Thanks for the reply
I originally had the prefix field as varchar 32. The number I am entering is NNNNNNNNNNNN (12 digits). When running prefix_route.dump it showed correctly all the numbers in the tree. However, the route would not be detected. If I delete the last digit, making it only 11 digits, it works fine.
As a workaround I truncate any prefix added to 11 digits. I couldn't see anywhere in the code limiting prefix length either.