I have a hard-phone, Cisco/Linksys IP SPA 942, registered with Anveo – works fine. I’ve also tested that CsipSimple on Android can register the first anveo account – registered fine and showed as registered on the Anveo website. I didn’t make calls from Android, but the hard phone works fine.
So, on Amazon AWS I setup an EC2 instance with an EIP (Elastic IP), which is similar to a static IP to my understanding. There’s some NAT, so I enabled with
[general]
nat=force_rport,comedia
in sip.conf
and have:
[friends_internal](!)
type=friend
host=dynamic
context=myphones
disallow=all
allow=ulaw
qualify=yes
so that Alice is just:
[demo_alice](friends_internal)
secret=bhdf632jgklf345456dfjk
callerid="alice"
The FQDN, foo.bar.com, is registered with www.no-ip.com for free with the IP address pointing to the Amazon EIP so that I can just ssh to the FQDN easily. When connecting to Asterisk either from Android or the hardphone, etc, can I just use:
demo_alice@foo.bar.com
Or, do I need to specify the IP address?
I’ve been trying variations, cannot establish a connection yet. From the console:
fqdn*CLI>
fqdn*CLI> sip show peers
Name/username Host Dyn Forcerport Comedia ACL Port Status Description
anveo/1234567890 72.9.149.69 Yes Yes 5010 OK (41 ms)
demo_alice (Unspecified) D Yes Yes 0 UNKNOWN
demo_bob (Unspecified) D Yes Yes 0 UNKNOWN
piter (Unspecified) D Yes Yes 0 UNKNOWN
thufir (Unspecified) D Yes Yes 0 UNKNOWN
5 sip peers [Monitored: 1 online, 4 offline Unmonitored: 0 online, 0 offline]
fqdn*CLI>
fqdn*CLI> sip show peer anveo
* Name : anveo
Description :
Secret : <Set>
MD5Secret : <Not set>
Remote Secret: <Not set>
Context : from-anveo
Record On feature : automon
Record Off feature : automon
Subscr.Cont. : <Not set>
Language :
Tonezone : <Not set>
AMA flags : Unknown
Transfer mode: open
CallingPres : Presentation Allowed, Not Screened
Callgroup :
Pickupgroup :
Named Callgr :
Nam. Pickupgr:
MOH Suggest :
Mailbox :
VM Extension : asterisk
LastMsgsSent : 0/0
Call limit : 0
Max forwards : 0
Dynamic : No
Callerid : "" <>
MaxCallBR : 384 kbps
Expire : -1
Insecure : port,invite
Force rport : Yes
Symmetric RTP: Yes
ACL : No
DirectMedACL : No
T.38 support : No
T.38 EC mode : Unknown
T.38 MaxDtgrm: 4294967295
DirectMedia : Yes
PromiscRedir : No
User=Phone : No
Video Support: No
Text Support : No
Ign SDP ver : No
Trust RPID : No
Send RPID : No
Path support : No
Path : N/A
TrustIDOutbnd: Legacy
Subscriptions: Yes
Overlap dial : Yes
DTMFmode : rfc2833
Timer T1 : 500
Timer B : 32000
ToHost : sip.anveo.com
Addr->IP : 72.9.149.69:5010
Defaddr->IP : (null)
Prim.Transp. : UDP
Allowed.Trsp : UDP
Def. Username: 1234567890
SIP Options : (none)
Codecs : (ulaw)
Auto-Framing : No
Status : OK (40 ms)
Useragent :
Reg. Contact :
Qualify Freq : 60000 ms
Keepalive : 0 ms
Sess-Timers : Accept
Sess-Refresh : uas
Sess-Expires : 1800 secs
Min-Sess : 90 secs
RTP Engine : asterisk
Parkinglot :
Use Reason : No
Encryption : No
fqdn*CLI>
fqdn*CLI> sip show peer demo_alice
* Name : demo_alice
Description :
Secret : <Set>
MD5Secret : <Not set>
Remote Secret: <Not set>
Context : myphones
Record On feature : automon
Record Off feature : automon
Subscr.Cont. : <Not set>
Language :
Tonezone : <Not set>
AMA flags : Unknown
Transfer mode: open
CallingPres : Presentation Allowed, Not Screened
Callgroup :
Pickupgroup :
Named Callgr :
Nam. Pickupgr:
MOH Suggest :
Mailbox :
VM Extension : asterisk
LastMsgsSent : 0/0
Call limit : 0
Max forwards : 0
Dynamic : Yes
Callerid : "alice" <>
MaxCallBR : 384 kbps
Expire : -1
Insecure : no
Force rport : Yes
Symmetric RTP: Yes
ACL : No
DirectMedACL : No
T.38 support : No
T.38 EC mode : Unknown
T.38 MaxDtgrm: 4294967295
DirectMedia : Yes
PromiscRedir : No
User=Phone : No
Video Support: No
Text Support : No
Ign SDP ver : No
Trust RPID : No
Send RPID : No
Path support : No
Path : N/A
TrustIDOutbnd: Legacy
Subscriptions: Yes
Overlap dial : Yes
DTMFmode : rfc2833
Timer T1 : 500
Timer B : 32000
ToHost :
Addr->IP : (null)
Defaddr->IP : (null)
Prim.Transp. : UDP
Allowed.Trsp : UDP
Def. Username:
SIP Options : (none)
Codecs : (ulaw)
Auto-Framing : No
Status : UNKNOWN
Useragent :
Reg. Contact :
Qualify Freq : 60000 ms
Keepalive : 0 ms
Sess-Timers : Accept
Sess-Refresh : uas
Sess-Expires : 1800 secs
Min-Sess : 90 secs
RTP Engine : asterisk
Parkinglot :
Use Reason : No
Encryption : No
fqdn*CLI>
fqdn*CLI> sip show registry
Host dnsmgr Username Refresh State Reg.Time
sip.anveo.com:5010 N 1234567890 165 Registered Wed, 11 Jan 2017 13:42:19
1 SIP registrations.
fqdn*CLI>
fqdn*CLI> sip show objects
-= Peer objects: 5 static, 0 realtime, 1 autocreate =-
name: demo_bob
type: peer
objflags: 0
refcount: 1
name: piter
type: peer
objflags: 0
refcount: 1
name: anveo
type: peer
objflags: 0
refcount: 3
name: thufir
type: peer
objflags: 0
refcount: 1
name: demo_alice
type: peer
objflags: 0
refcount: 1
-= Peer objects by IP =-
name: anveo
type: peer
objflags: 0
refcount: 3
-= Registry objects: 1 =-
name: 1234567890:passw0rd@sip.anveo.com:5010
-= Dialog objects:
name: cb004ab7-3ffa4501-499ce23@67.212.84.21
type: dialog
objflags: 0
refcount: 2
fqdn*CLI>