[Solved] call rejected becaz extension not found in context

Hi

I want to connect two soft phones via Asterisk. I am using LinPhone on both sides.
When I am trying to call other peer, I am getting the below error. Could you please tell me where I am wrong.

<------------>
[Jun 10 08:39:24] NOTICE[20483][C-00000007]: chan_sip.c:25288 handle_request_invite: Call from ‘naresh’ (XX.XX.XX.XX:5060) to extension ‘praveena’ rejected because extension not found in context ‘test’.
Scheduling destruction of SIP dialog ‘21179’ in 32000 ms (Method: INVITE)

sip.conf

[code][praveena]
type=peer
secret=praveena123
host=dynamic
port=5060
context=test

[naresh]
type=peer
secret=naresh
host=dynamic
context=test
[/code]

extensions.conf

[test] exten => 6001,1,Dial(SIP/praveena,20) exten => 6003,1,Dial(SIP/naresh,20)

Howdy,

The only extensions you defined in that dialplan context were 6001 and 6003.

Asterisk thinks you dialed:

Jun 10 08:39:24] NOTICE[20483][C-00000007]: chan_sip.c:25288 handle_request_invite: Call from 'naresh' (XX.XX.XX.XX:5060) to extension 'praveena' rejected because extension not found in context 'test'.
Scheduling destruction of SIP dialog '21179' in 32000 ms (Method: INVITE)

“praveena”

which isn’t defined.

Cheers

Thanks Malcolm. I corrected this and it worked.