Hi
I am able to successfully regsiter a phone when I try from the same system where Asterisk is installed but when the request is coming from external system(It doesn’t have static IP, it is dynamic), it fails giving the following error.
<------------>
[Jun 10 06:08:14] NOTICE[19259]: chan_sip.c:27829 handle_request_register: Registration from '"praveena"<sip:6001@XX.XX.XX.XX:5060>' failed for 'YY.YY.YY.YY:12345' - Wrong password
Scheduling destruction of SIP dialog 'MTZkNzhmNjA4MWY3MDM4ZDhjY2ZiM2Q4NjMyYzRlMjU' in 32000 ms (Method: REGISTER)
Really destroying SIP dialog 'MTZkNzhmNjA4MWY3MDM4ZDhjY2ZiM2Q4NjMyYzRlMjU' Method: REGISTER
sip.conf
[praveena]
type=peer
secret=praveena
host=dynamic
port=5060
context=test
extenstions.conf
[test]
exten => 6001,1,Dial(SIP/praveena,20)
Could anyone tell me if I have to do configuration changes?
I searched in this forum, I didn’t see solution in any post.
Thanks
Praveena
The user field in the request (6001) doesn’t match that in sip.conf (praveena), change one, preferably the one configured in the phone, but ideally both, to soemthing less guessable.
Thanks David. It worked by correcting the username in XLite.
Now I am not able to talk to anotehr SIP user. I am getting error. Phone registration is successful.
<------------>
[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
[praveena]
type=peer
secret=praveena123
host=dynamic
port=5060
context=test
[dinesh]
type=peer
secret=dinesh
host=dynamic
port=5060
context=test
[naresh]
type=peer
secret=naresh
host=dynamic
context=test
extensions.conf
[test]
exten => 6001,1,Dial(SIP/praveena,20)
exten => 6002,1,Dial(SIP/dinesh,20)
exten => 6003,1,Dial(SIP/naresh,20)
Could you please where I am wrong?
Wait…I just answered this same question.
Please don’t ask the same thing twice in two different places; it wastes resources.