Config.c:1942 process_text_line: parse error: No category context for line 1 of /etc/asterisk/sip.conf

Hi,

I am getting the following error.

config.c:1942 process_text_line: parse error: No category context for line 1 of /etc/asterisk/sip.conf

Anybody a clue what I did wrong?
This has kept me busy for quite some time now.

[general]
videosupport = yes

[COUNT-COMMON](!)
type=peer
context=phones
nat=yes
secret=123456
canreinvite=no
host=dynamic
dtmfmode=auto
callgroup=1
pickupgroup=1
videosupport=yes
disallow=all
allow=ulaw
allow=g729
allow=h263       ; for pc
allow=h263p      ; for pc
allow=h264       ; for mobile
allow=gsm
allow=alaw
maxcallbitrate=1024

[1000][COUNT-COMMON]
[1001][COUNT-COMMON]
[1002][COUNT-COMMON]
[1003][COUNT-COMMON]
[1004][COUNT-COMMON]
[1005][COUNT-COMMON]
[1006][COUNT-COMMON]
[1007][COUNT-COMMON]
[1008][COUNT-COMMON]

Thank you :slight_smile:

I do not receive the message you experience, I receive:

[May 15 11:45:21] WARNING[14373]: chan_sip.c:33486 reload_config: Section '1000' lacks type
[May 15 11:45:21] WARNING[14373]: chan_sip.c:33486 reload_config: Section '1001' lacks type
[May 15 11:45:21] WARNING[14373]: chan_sip.c:33486 reload_config: Section '1002' lacks type
[May 15 11:45:21] WARNING[14373]: chan_sip.c:33486 reload_config: Section '1003' lacks type
[May 15 11:45:21] WARNING[14373]: chan_sip.c:33486 reload_config: Section '1004' lacks type
[May 15 11:45:21] WARNING[14373]: chan_sip.c:33486 reload_config: Section '1005' lacks type
[May 15 11:45:21] WARNING[14373]: chan_sip.c:33486 reload_config: Section '1006' lacks type
[May 15 11:45:21] WARNING[14373]: chan_sip.c:33486 reload_config: Section '1007' lacks type
[May 15 11:45:21] WARNING[14373]: chan_sip.c:33486 reload_config: Section '1008' lacks type

And this is because you are not correctly using the template. It should be:

[1000](COUNT-COMMON)

Note the usage of ( and ) around COUNT-COMMON.

Ofcourse, you are completely right.
I can’t believe I didn’t see that one.

I also just fixed the previous error
I needed to add the following in the general box;

context=public
allowoverlap=no

This made it work and start.