Errors in configuration asterisk 21

Hey guys, I’m new to the asterisk world and voip, sip in general started just a week ago and really want to have a number that can make calls and receive them. Below are the files I configured and I’m using ZoiPer. After giving all the info needed to create an account on ZoiPer(my ip and then my passw) it tries to connect but fails, I was wondering if there was smth wrong with the way I have configured my files. Maybe I need to configure some other files as well. I would really appreciate some help here as it’s becoming frustrating. Thank you!

Extensions.conf

[from-internal]

exten => 6001,1,Dial(PJSIP/6001,20)

[from-pstn]

exten => 6001,1,Answer()

exten => 6001,2,Voicemail(6001)

exten => 6001,3,Hangup()

Pjsip.conf

[transport-udp]

type=transport

protocol=udp

bind=(my ip)

[6001]

type=endpoint

transport=transport-udp

context=from-internal

disallow=all

allow=ulaw

outbound_auth=6001

aors=6001

[6001]

type=aor

max_contacts=1

[6001]

type=auth

auth_type=userpass

password=(passw)

username=6001

The file names are wrong, they should be extensions.conf and pjsip.conf. Linux is case sensitive.

The direction of your authentication is almost certainly wrong. I would expect the zoiper to be sending the authentication, not checking it.

Is there are reason for not binding to 0.0.0.0?

What would be a great example of the authentication being right, is there some documentation that you could direct me to. No real reason for not binding to 0.0.0.0, would me binding to 0.0.0.0 be better?

https://docs.asterisk.org/Configuration/Channel-Drivers/SIP/Configuring-res_pjsip/res_pjsip-Configuration-Examples/#an-endpoint-with-a-single-sip-phone-with-inbound-registration-to-asterisk

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.