asterisk


Asterisk not registering to SIP provider


I have clean Debian VPS that I have installed Asterisk on.
I have a SIP account and number with a VoIP provider. I'm trying to make my asterisk register to that SIP account. However, it always times out. I'm fairly new to asterisk but I think the sip.conf is correct.
I turned on debugging and this is what I get every time
---
Retransmitting #7 (no NAT) to 80.244.65.70:5060:
REGISTER sip:sip-gw6.t3.se SIP/2.0
Via: SIP/2.0/UDP 11.MY.VPS.IP:5060;branch=z9hG4bK72be2ee7
Max-Forwards: 70
From: <sip:USERNAME#sip-gw6.t3.se>;tag=as5ace2218
To: <sip:USERNAME#sip-gw6.t3.se>
Call-ID: 4d010f6f689d1a1420696c025f07cb18#127.0.1.1
CSeq: 103 REGISTER
User-Agent: Asterisk PBX 11.13.1~dfsg-2+b1
Expires: 120
Contact: <sip:provider#11.MY.VPS.IP:5060>
Content-Length: 0
---
REGISTER 10 headers, 0 lines
Reliably Transmitting (no NAT) to 80.244.65.70:5060:
REGISTER sip:sip-gw6.t3.se SIP/2.0
Via: SIP/2.0/UDP 11.MY.VPS.IP:5060;branch=z9hG4bK71b213aa
Max-Forwards: 70
From: <sip:USERNAME#sip-gw6.t3.se>;tag=as5ace2218
To: <sip:USERNAME#sip-gw6.t3.se>
Call-ID: 4d010f6f689d1a1420696c025f07cb18#127.0.1.1
CSeq: 104 REGISTER
User-Agent: Asterisk PBX 11.13.1~dfsg-2+b1
Expires: 120
Contact: <sip:provider#11.MY.VPS.IP:5060>
Content-Length: 0
---
[Jul 27 05:51:32] NOTICE[588]: chan_sip.c:15071 sip_reg_timeout: -- Registration for 'USERNAME#sip-gw6.t3.se' timed out, trying again (Attempt #3)
Really destroying SIP dialog '4d010f6f689d1a1420696c025f07cb18#127.0.1.1' Method: REGISTER
Retransmitting #1 (no NAT) to 80.244.65.70:5060:
REGISTER sip:sip-gw6.t3.se SIP/2.0
Via: SIP/2.0/UDP 11.MY.VPS.IP:5060;branch=z9hG4bK71b213aa
Max-Forwards: 70
From: <sip:USERNAME#sip-gw6.t3.se>;tag=as5ace2218
To: <sip:USERNAME#sip-gw6.t3.se>
Call-ID: 4d010f6f689d1a1420696c025f07cb18#127.0.1.1
CSeq: 104 REGISTER
User-Agent: Asterisk PBX 11.13.1~dfsg-2+b1
Expires: 120
Contact: <sip:provider#11.MY.VPS.IP:5060>
Content-Length: 0
This is my sip.conf
[general]
port=5060
bindaddr=0.0.0.0
qualify=no
disable=all
allow=alaw
allow=ulaw
dtmfmode=rfc2833
srvlookup=yes
register => USERNAME:PASSWORD#sip-gw6.t3.se/provider
[provider]
type=peer
insecure=port,invite
nat=no
canreinvite=no
authuser=USERNAME
defaultuser=USERNAME
fromuser=USERNAME
fromdomain=sip-gw6.t3.se
secret=PASSWORD
host=sip-gw6.t3.se
dtmfmodf=rfc2833
context=provider-in ;extensions.conf context for inbound calls
disallow=all
allow=ulaw
allow=alaw
I can register fine using Softphone on my PC. Any help would be greatly appreciated. I've followed x amount of guides but asterisk never succeeds to register and I'm not sure what could be going wrong. It's timing out but maybe something in the sip.conf isn't configured correctly.
Turns out my ITSP was blocking certain IP ranges.
Moved my VPS to a different datacenter, got a different IP range and it started working...

Related Links

Asterisk Event to listen to for Transferred call
can not hear playback sounds ( asterisk )
get the caller number after call is answered
Asterisk automatic incoming call answering
Error Asterisk 12.8 bad magic number
Can not configure adhearsion with asterisk
Asterisk WAN Issues
Unable to establish two way Asterisk call
Asterisk GotoIf comparison variable exists in Array
Call Limit (call-limit) in Asterisk 13 with PJSIP
Asterisk call recording not showing any logs and file
Asterisk 13.7 GROUP_COUNT always returns 1
How to write asterisk application
how to write application to freepbx
Asterisk: format of the lines logged
asterisk PAMI Originate Call issue

Categories

HOME
primefaces
cluster-analysis
display
aix
ibm
liquibase
mifare
django-middleware
itext7
docker-compose
pdf-generation
install
rethinkdb
wavefront
kairosdb
guidewire
web-testing
airbnb
django-rest-auth
glibc
bug-reporting
dev-c++
v4l2
policy
scrapy-spider
chartist.js
deployment-descriptor
inspec
pydub
pushpad
ipython-parallel
multilanguage
jql
directions
webspeech-api
matlab-compiler
intersection
android-geofence
ragel
javafxports
azure-storage-files
lfe
observer-pattern
julia-jump
aspnetboilerplate
datagridviewcombobox
amazon-fire-tv
denodo
django-tables2
ear
opticalflow
spring-social-twitter
turbolinks
firebase-polymer
strtol
symantec
hotkeys
nsoperationqueue
jmap
android-progressbar
code-translation
imageicon
producer-consumer
libgcrypt
play-json
jain-sip
xml-simple
glog
log-analysis
mergecursor
strcpy
pymol
nexusdb
cl.exe
nsq
famous-engine
powerpoint-2010
time-frequency
rpt
satisfiability
power-management
facebook-likebox
myrrix
raddatepicker
biztalk-deployment
setcookie
ncml
teamsystem
shapado
sup
virtual-printer
isgl3d
xpolog
hs-err
marathontesting
mass-emails
viewdata
qprocess
calendarextender
retrospectiva
disk-based
asp.net-1.1
paperless

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App