Should I Use Double Quotes With src_ip Checks Or Not?

Keywords: ser.cfg

Sometimes you will see the equality test for src_ip (source IP) in double-quotes and other times the double-quotes are omitted.

There is a very subtle difference here that can greatly impact the performance of your SIP router.

If you enclose the value being compared to src_ip in double-quotes then a reverse DNS lookup is performed on the IP address whereas omitting the double-quotes tells SER to not do a reverse DNS lookup.

So unless you have a very good reason for performing reverse DNS lookups you should not include the quotes.

 if (src_ip==10.3.0.221) {
 }

is much faster than

 if (src_ip=="ser.mycompany.com") {
 }
Home |  Recent changes |  Search |  Glossary |  Sitemap |  Login