Can anyone explain what is a difference between setting qualify_frequency in aor section or in contact section? In which case I should use one or another?
You should always use the AOR option. The contact one is for storing state information, and a contact section is not meant to be used directly.
Thank you for clarification.