Configuration file names and module names - relationship?


#1

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

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

Thank you.


#2

From chan_sip.c:

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