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

How to remove one extension by asterisk CLI
It's possible in asterisk call and let the callee hear a custom message?
I don't using canreinvite option in asterisk
What Internet Voice Services Can Asterisk be Connected To
Using Nginx with Asterisk ARI
How to disable auto update in FREEPBX
Custom solution to call telehones from within broswers (webRTC <-> telephony link) [closed]
A2billing Readout Balance
How to write VoiceMail dialplans in asterisk
Problems with string pattern matching
asterisk hangup call when hold
Cant place outgoing call en E1
Dial via SIP -> IAX2
asterisk send event to a web app when the phone ring
how to add one SIP Extension by command line in Asterisk
Is there a way to get the ${DEVICE_STATE(SIP/${EXTEN})} output on asterisk AMI before making originate call

Categories

HOME
intellij-idea
pyspark
customization
file-upload
okhttp3
arguments
app-store
thermal-printer
angularjs-directive
checkpoint
comments
vsixmanifest
annyang
segmentation-fault
ethereum
mongoimport
facebook-sharer
point-of-sale
jetbrains
popup
windows-phone
django-rest-auth
beaker-notebook
screen-scraping
onclicklistener
advertising
jira-zephyr
priority-queue
openoffice-impress
jmsserializerbundle
powerbi-embedded
geocomplete
pyenv
libconfig
jquery-inputmask
gem-fury
server-side-swift
glide-image-library
colorbox
weld
reqif
spring-ide
google-cloud-shell
jcifs
fluent-nhibernate-mapping
jtextarea
critical-section
nls
blitz3d
fileopendialog
directinput
gevent
joystick
vitamio
php-java-bridge
django-celery
archiva
jcalendar
methodology
apache2-module
bluetooth-lowenergy-4.2
php-gd
personality-insights
uinavigationitem
android-filterable
nmock
p4python
clearquest
tidesdk
wingdb
chrome-mobile
indices
crystal-reports-7
iphone-6
uiblureffect
jsonmodel
grunt-contrib-connect
xmlserializer
famous-engine
tigase
nspopupbutton
rails-migrations
debuggervisualizer
visual-studio-setup-proje
git-subtree
windows-phone-store
kendo-window
listpicker
wpa
antixsslibrary
libx264
idoc
freeimage
tasklist
linear-interpolation
winrt-async
zend-validate
overlays
service-layer
mass-emails
arraycollection
versions
web-search
pkcs#7
manuals
djangoappengine
managed-code
memory-consumption

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