I have having some issues while registering a virtual extension used for PSTN gateway. I am using Cisco 2800 Series Router including 4 Port FX0 Card. I shall be using a PSTN Line for testing purpose. IP address being used for 3cx is 10.200.3.14 while Cisco Router that will be acting as a PSTN Gateway will be on another Subnet i.e 10.200.6.0 / 24. IP address for Router is 10.200.6.20 / 24. I tried to register Sip server but it failed and recieved an error for Authentication failed which is mentioned below. I've checked and verified the password twice and thrice but still the issue persists.
22:10:58.658 [CM102001]: Authentication failed for SipReq: REGISTER 10.200.3.14:5060 tid=22582 cseq=REGISTER contact=.10000@10.200.6.20:5060 / 149 from(wire); Reason: Credentials don't match, check that authorization-ID and password match the ones in extension settings
CONFIGURATION AT ROUTER :-voice class codec 1
codec preference 1 g711ulaw
codec preference 2 g729r8 bytes 40
codec preference 3 g723r63 bytes 96
codec preference 4 g726r16 bytes 80
voice-port 1/0/0
no battery-reversal
timing hookflash-out 50
connection plar opx 999
dial-peer voice 20000 voip
preference 1
destination-pattern 99.
voice-class codec 1
session protocol sipv2
session target ipv4:10.200.3.14
dtmf-relay rtp-nte
no vad
dial-peer voice 10000 pots
destination-pattern .T
port 1/0/0
sip-ua
authentication username 10000 password 091D1E594955
retry invite 3
retry response 3
retry bye 3
retry cancel 3
timers expires 300000
registrar ipv4:10.200.3.14 expires 300
sip-server ipv4:10.200.3.14:5060

