Configuration file names and module names - relationship?

How Asterisk knows that the configuration file for module is sip.conf file?

Let us imagine that I have two modules: (my custom “Super Interesting Project” Asterisk application module) (SIP channel module)
How asterisk knows what configs to read?

Thank you.

From chan_sip.c:

static const char config[] = "sip.conf";