I have installed asterisk and I’m trying to test it using x-lite. I have added to users to sip.conf:
[nahum1]
type=friend
callerid=“Nahum1” <1000>
username=nahum1
host=dynamic
secret=nahum1
regcontext=nahum1-internal
regexten=1005
dtmfmode=rfc2833
insecure=very
canreinvite=yes
nat=yes
qualify=yes
context=merus-sipphone
pickupgroup=1
callgroup=1
mailbox=1000@default
both users are make successful register but when I dial from nahum1 to nahum2 it gives me an 404 NOT FOUND error and when I dial from nahum2 to nahum1 it gives me NOT ACCEPTABLE HERE. To invite I’m entering in nahum1’s x-lite nahum2@my_aterisk_ip.
Remove from sip.conf:
username=nahum1
regcontext=nahum1-internal
regexten=1005
insecure=very
pickupgroup=1
callgroup=1
edit:
[nahum1] to [1000]
dtmfmode=rfc2833 to auto
canreinvite=yes to no
same with nahum2, except for [nahum2] to [1002]
in extensions.conf:
[merus-sipphone]
exten => _Z.,1,Dial(SIP/${EXTEN},60)
exten => _Z.,2,Hangup
X-Lite:
Display name: whatever
User name: 1000 and 1002 for nahum2
Password: nahum1 and nahum2 for nahum2
Domain: your asterisk IP
Proxy: your asterisk IP
Did you reload asterisk? or sip reload, dialplan reload?
I really don’t understand what unacceptable response you get.
Check asterisk CLI for sip registered phones:
CLI> sip show peers or sip show peer 1000
You heve log file: /var/log/asterisk/messages