Unable to make outgoing calls with Internode
Tags: externip, firewall gateway, internode, localnet, rtpmap, sip, sip rfc, tag
Surely there must be someone here who can help me with this problem.
I have spent weeks trying to get this damned service to work with no
luck. I have incoming calls working, but no outgoing. If get outgoing
working then incoming don’t work.
I have sent this problem to this list a couple of times with little or
no response, and I _really_ need some help to sort it out.
I have an asterisk 1.8 server running on FreeBSD 8.1, and another
FreeBSD 8.1 running as a firewall/gateway with PF.
I have a nodephone service with Internode (who have been absolutely
useless in helping me- they point blank refuse, or they say to open
everything right up to their server; which didn’t wok anyway btw).
I have been running endless tests on settings changes, tcpdumps on both
the firewall and asterisk, and hours poring over SIP rfc’s. I’ve only
managed to get a headache…
I have tried following best practices, worst practices, and still
nothing works.
My sip.conf looks like this:
[general]
context = default
bindport = 5060
bindaddr = 0.0.0.0
srvlookup = yes
allow = all
;allow = t140red
textsupport = yes
videosupport = yes
;allow = h263
maxcallbitrate = 384
register => sip-in?
localnet =
canreinvite = no
hasvoicemail = no
qualify = yes
nat = no
;rtptimeout = 120
rtpkeepalive = 5
;ignoresdpversion = yes
;directmediapermit =
[sip-in]
type = peer
host = sip.internode.on.net
context = internode-incoming
;externip =
;domain = internode.on.net,internode-incoming
;fromdomain = sip.internode.on.net
;fromuser =
;auth =
;insecure = invite,port
;register =>
;nat = never
qualify = yes
canreinvite = no
;expire = 240
[sip-out]
type = peer
host = sip.internode.on.net
context = internode-outgoing
externip =
;username =
;secret =
;qualify = yes
canreinvite = no
;auth =
;nat = never
;pedantic = yes
;insecure = invite,port
;ignoresdpversion = yes
;compactheaders = yes
As you can see I’ve tried lots of settings. It registers and peers with
the provider, but no outgoing. The provider can call me though.
In extensions.conf:
[internode-outgoing]
exten => _X.,1,Dial(SIP/${EXTEN}@sip-out)
exten => _X.,n,Answer(2)
exten => _X.,n,Playback(ss-noservice)
With debugging enabled, verbose 9, debug 9:
SIP Debugging enabled
<--- SIP read from UDP:
INVITE sip:0871271201@
Via: SIP/2.0/UDP
From:
To:
Call-ID: e2895c9d-55b90b64@
CSeq: 101 INVITE
Max-Forwards: 70
Contact:
Expires: 240
User-Agent: Linksys/PAP2T-3.1.15(LS)
Content-Length: 446
Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER
Supported: x-sipura
Content-Type: application/sdp
v=0
o=- 5330142 5330142 IN IP4
s=-
c=IN IP4
t=0 0
m=audio 16436 RTP/AVP 0 2 4 8 18 96 97 98 100 101
a=rtpmap:0 PCMU/8000
a=rtpmap:2 G726-32/8000
a=rtpmap:4 G723/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:18 G729a/8000
a=rtpmap:96 G726-40/8000
a=rtpmap:97 G726-24/8000
a=rtpmap:98 G726-16/8000
a=rtpmap:100 NSE/8000
a=fmtp:100 192-193
a=rtpmap:101 telephone-event/— (14 headers 20 lines) —
Sending to
Using INVITE request as basis request – e2895c9d-55b90b64@
Found peer ‘
<--- Reliably Transmitting (no NAT) to
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP
From: Skinner’s Home
To:
Call-ID: e2895c9d-55b90b64@192.168.0.196
CSeq: 101 INVITE
Server: Asterisk PBX 1.8.1.1
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY,
INFO, PUBLISH
Supported: replaces, timer
WWW-Authenticate: Digest algorithm=MD5, realm=”asterisk”, nonce=”12eb6973″
Content-Length: 0
<------------>
Scheduling destruction of SIP dialog ‘e2895c9d-55b90b64@
6400 ms (Method: INVITE)
<--- SIP read from UDP:
ACK sip:0871271201@
Via: SIP/2.0/UDP
From:
To:
Call-ID: e2895c9d-55b90b64@
CSeq: 101 ACK
Max-Forwards: 70
Contact:
User-Agent: Linksys/PAP2T-3.1.15(LS)
Content-Length: 0
<------------->