Dear all,
I’m new to Asterisk so please bear with me. Ultimately, I will run it on a remote server that is behind a firewall. To make things easier, I’m testing on my laptop connected to a router with a firewall. We can assume that the ports are not accessible unless I port forward on the router or set a DMZ to my computer. I have a hostname that points to the server and a hostname that points to the home router. I currently did not set any (do I need to for this setup?).
I’d like to set up gizmo5 and/or sipgate to receive calls (auto-attendant) on Asterisk, but I’ve been getting these errors:
[code][Oct 27 17:49:52] NOTICE[16186]: chan_sip.c:12215 sip_reg_timeout: – Registration for ‘USERINFO@sipgate.com’ timed out, trying again (Attempt #91)
[Oct 27 17:49:52] NOTICE[16186]: chan_sip.c:12215 sip_reg_timeout: – Registration for ‘1747MY7DIGIT@proxy01.sipphone.com’ timed out, trying again (Attempt #91)
sip show peers
Name/username Host Dyn Forcerport ACL Port Status
gizmo5/1747MY7DIGIT 198.65.166.131 N 5060 Unmonitored
sipgate/USERINFO 204.155.28.10 N 5060 UNREACHABLE
vinhsip (Unspecified) D N 0 Unmonitored
3 sip peers [Monitored: 0 online, 1 offline Unmonitored: 1 online, 1 offline][/code]
My config for gizmo5 are obtained from [here](forums.gizmo5.com/viewtopic.php? … d26574d70a). For sipgate, I got the config from here. Here they are:
[code]sip.conf:
[general]
nat=yes
careinvite=no
;;localnet=128.195.0.0/255.255.0.0 ;; change this to school
localnet=192.168.0.0/255.255.0.0
externhost=MYHOST
externrefresh=360
bindport=5060
register => 1747MY7DIGIT:pw@proxy01.sipphone.com
register => USERINFO:pw@sipgate.com/USERINFO
[gizmo5]
type=peer
context=tnttsp-incoming
disallow=all
allow=ulaw
allow=ilbc
allow=gsm
dtmfmode=rfc2833
host=proxy01.sipphone.com
insecure=very
;;insecure=invite,port
;;qualify=yes ;;new
;;fromuser=1747MY7DIGIT
;;authuser=1747MY7DIGIT
username=1747MY7DIGIT
secret=vinegar
canreinvite=no
[sipgate]
type=peer
secret=PW
insecure=invite
username=USERINFO
defaultuser=USERINFO
fromuser=USERINFO
context=sipgate_in
fromdomain=sipgate.com
host=sipgate.com
outboundproxy=proxy.live.sipgate.com
qualify=yes
disallow=all
allow=ulaw
dtmfmode=rfc2833
extensions.conf:
[general]
[globals]
[tnttsp-incoming]
exten => s,1,Answer()
exten => s,n,Background(tnttspWelcome)
exten => s,n,Background(CurrentAnnouncement)
exten => s,n,Goto(0,1)
[/code]
I know the setup is not working because 1) the displayed error and 2) I do not get the auto-attendant when I call the gizmo5. Can you help me figure out how to set this up? Thanks so much!