I made a Dial plan test as below but when i try to call from 6001 to 6003 I couldn’t an error message appears:
([Oct 19 08:38:11] NOTICE[2597][C-000000c0]: chan_sip.c:26407 handle_request_invite: Call from ‘6001’ (10.16.38.154:53589) to extension ‘6003’ rejected because extension not found in context ‘users’)
[test]
exten => 6001,1,Dial(SIP/6003)
same => n,hangup
exten => 6002,1,Dial(SIP/6001)
same => n,hangup
exten => 6003,1,Dial(SIP/6001)
same => n,hangup
exten =>6001,n,Dial(SIP/6003)
same => n,hangup
I have add it with nano /etc/asterisk/extensions.conf right now it’s work fine
[users]
exten => 6001,1,Dial(SIP/6001)
exten => 6002,1,Dial(SIP/6002)
exten => 6002,1,Dial(SIP/6003)
i have question if i create many extensions 60XX should i make same thing ?
exp:
exten => 60xx,1,Dial(SIP/60xx)