Unable to register extension

I am running Asterisk 1.4.2 (from source code) under Linux.

When I load my dialplan I get one of the following warnings for each line in two of my contexts, (from_pri and internal).

Unable to register extension ‘1001’, priority 1 in ‘internal’, already in use
Unable to register extension…(one line like this for each entry)

I cannot find out what is causing these warnings or how to resolve the issue. Thanks in advance!

My extensions.conf follows:


exten => 1001,1,Dial(Zap/32) ;dial 1001 connect to zap/32
exten => 1002,1,Dial(Zap/33)
exten => 1003,1,Dial(Zap/34)
exten => 1004,1,Dial(Zap/35)
exten => 1005,1,Dial(Zap/36)
exten => 1006,1,Dial(Zap/37)
exten => 1007,1,Dial(Zap/38)
exten => 1008,1,Dial(Zap/39)
exten => 1009,1,Dial(Zap/40)
exten => 1010,1,Dial(Zap/41)
exten => 1011,1,Dial(Zap/42)
exten => 1012,1,Dial(Zap/43)
exten => 2001,1,Dial(SIP/grandstream1)
exten => 2002,1,Dial(SIP/grandstream2)
exten => 2003,1,Dial(SIP/grandstream3)
exten => 2004,1,Dial(SIP/grandstream4)
exten => 2005,1,Dial(SIP/grandstream5)
exten => 2006,1,Dial(SIP/grandstream6)
exten => 2007,1,Dial(SIP/grandstream7)
exten => 2008,1,Dial(SIP/grandstream8)
exten => 2009,1,Dial(SIP/grandstream9)
exten => 2010,1,Dial(SIP/grandstream10)
exten => 2011,1,Dial(SIP/grandstream11)
exten => 2012,1,Dial(SIP/grandstream12)
exten => 2013,1,Dial(SIP/grandstream13)
exten => 2014,1,Dial(SIP/grandstream14)
exten => 2015,1,Dial(SIP/grandstream15)
exten => 2016,1,Dial(SIP/grandstream16)
exten => 2017,1,Dial(SIP/grandstream17)
exten => 2018,1,Dial(SIP/grandstream18)
exten => 2019,1,Dial(SIP/grandstream19)
exten => 2020,1,Dial(SIP/grandstream20)

exten => 9995559876,1,Dial(Zap/32) ;connect to zap/32


These warnings are because extension 1001 is already defined for another thing in extensions.conf…

Please check first that first…

It should solve your problem…


Thanks for your reply.

My post included my entire extensions.conf there is only 1 reference to extension 1001 so I don’t see the problem you mentioned.

I get that same error for every line in the ‘internal’ context and the ‘from-pri’ context.

I replaced my extensions.conf and the problem has gone away.