A
A
Alexander2017-07-07 07:56:06
Asterisk
Alexander, 2017-07-07 07:56:06

How to deal with setting up Asterisk?

I'm learning asterisk, and a problem arose right away in hello world :) .
Installed asterisk locally on ubuntu from source.
I go to https://wiki.asterisk.org/wiki/display/AST/Hello+World , I got stuck on registering an account in zoiper.
When trying to register in the console, asterisk writes:

NOTICE[5948]: chan_sip.c:28678 handle_request_register: Registration from '<sip:[email protected];transport=UDP>' failed for '192.168.0.112:43385' - Wrong password
NOTICE[5948]: chan_sip.c:28678 handle_request_register: Registration from '<sip:[email protected];transport=UDP>' failed for '127.0.0.1:43385' - Wrong password

pjsip.conf file:
[transport-upd]
type=transport
protocol=upd
bind=0.0.0.0

[test]
type=endpoint
context=test
disallow=all
allow=ulaw
auth=test
aors=test

[test]
type=auth
auth_type=userpass
password=qwerty
username=test

[test]
type=aor
max_contacts=1

extension.conf file:
[test]
exten = 100,1,Answer()
same = n,Wait(1)
same = n,Playback(echo)
same = n,Hangup()

Logically, I'm doing everything right, but I can't figure out what's wrong.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
M
Michael, 2017-07-10
@Minifets

Disable chan_sip module in asterisk, leave only pjsip.
After editing the configs, do not forget to restart the modules or core in astere.

D
Dmitry Ponomarev, 2017-07-07
@dimker

If the password on the client is exactly correct, then check:
sip show usersshows this user?
If you try to register with another client, for example, X-Lite, does the error repeat?

S
silverjoe, 2017-07-09
@silverjoe

You described the settings in pjsip and connect to the sip port

D
Dmitry Rashevsky, 2017-07-10
@DRashevskiy

Good afternoon.
It all depends on which phone you are trying to register. Some phones only support short passwords of up to 8 characters.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question