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

looking for a way to determine if the phone number i'm calling is a cell phone or not
Asterisk Media Bypass
Agent console in freepbx
How to configure asterisk instant messaging to work with linphone?
AsteriskNOW IP PBX behind NAT, clients cannot connect from outside Network
Send DTMF Digit with dialplan
Visual Dialplan : how to play a playback file
Multiple Incomming calls to free agent
Asterisk incoming message gives: 415 unsupported media type
Forwarding X Headers in Asterisk
Asrterisk 13.4.0 RTC issue
Pass DTMF Variable to Channel as Caller Name
How to log data of a call
How to stay in the queue?
Time between next invite in sipp
Asterisk - Dial between two local phones

Categories

HOME
sql-server-2014
oracle-sqldeveloper
mysqli
apache-storm
gaussian
okhttp3
singleton
sms
ebay
atlassian-fisheye
procmon
rmarkdown
dcos
ndepend
javascript-debugger
jinja2
background-image
ampscript
klipfolio
hololens
core-animation
my.cnf
rollupjs
pydub
javapns
recreate
opencsv
login-required
qt-designer
javafxports
mybatis-generator
armadillo
anonymous-function
react.rb
jcifs
gige-sdk
richtext
kendo-scheduler
huawei
sharing
ownership
foreground
nd4j
ideavim
ooad
imageicon
bioconductor
javapackager
lytro
pdcurses
euro
mergecursor
ultraedit
autopep8
mri
caption
cordova-3
frisby.js
triplestore
behance-api
opencobol
google-voice
maven-webstart-plugin
windows-scheduler
architectural-patterns
dnsbl
mail-gem
openafs
event-propagation
nserror
advanceddatagrid
facebook-winjs-sdk
capitalization
sessiontracking
marathontesting
database-agnostic
pitch-shifting
for-xml
code-golf
wtsapi32

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