Calling From “extern”

Home » Asterisk Users » Calling From “extern”
Asterisk Users No Comments

Hi list!

Finally I got my wife’s phone working in my Asterisk. Unfortunately I have some problems, too…

Current situation:

– AsteriskNOW with 4 Accounts (00493511111111, 00493512222222,
00493513333333, 5678). This is “for test” and it will be replaced by “the
real world”, when I got my Asterisk to work…
– A second Asterisk (Ubuntu-PBX) on another VM, logging in AsterikNOW **AND** Messagenet
– 2 VoIP phones, logged into Ubuntu-PBX (my phone, my wife’s phone)
– A Twinkle instance on my PC, logged into AsteriskNOW

On AsteriskNOW:
localhost*CLI> sip show peers Name/username Host Dyn Forcerport Comedia ACL Port Status Description
00493513333333/0049351333 172.16.34.133 D Yes Yes A 5060 OK (2 ms)
00493511111111/0049351111 172.16.34.133 D Yes Yes A 5060 OK (1 ms)
00493512222222/0049351222 172.16.34.133 D Yes Yes A 5060 OK (1 ms)
1111 (Unspecified) D Yes Yes A 0 UNKNOWN
1112 (Unspecified) D Yes Yes A 0 UNKNOWN
1234/1234 (Unspecified) D Yes Yes A 0 UNKNOWN
5678/5678 172.16.34.1 D Yes Yes A 5060 OK (1 ms)
7 sip peers [Monitored: 4 online, 3 offline Unmonitored: 0 online, 0 offline]

On Ubuntu-PBX:
ubuntu*CLI> sip show peers Name/username Host Dyn Nat ACL Port Status
00493513333333/0049351333 172.16.34.1 D 1067 OK (71 ms)
00493511111111/0049351111 192.168.200.10 D 5060 OK (17 ms)
00493512222222 (Unspecified) D 5060 UNKNOWN
1234 (Unspecified) D 5060 UNKNOWN
messagenet/4444444444 212.97.59.76 5061 Unmonitored pbxanika/00493513333333 172.16.34.132 5060 Unmonitored pbxfax/00493512222222 172.16.34.132 5060 Unmonitored pbxluca/00493511111111 172.16.34.132 5060 Unmonitored
8 sip peers [Monitored: 2 online, 2 offline Unmonitored: 4 online, 0 offline]

If I call from my phone (00493511111111) my wife’s phone (00493513333333), it works. If I call from my wife’s phone (00493513333333) my phone (00493511111111), it works. If I call from the real world (really real!) my phone on Messagenet (4444444444), it works. If I call from Twinkle (5678 on AsteriskNOW) my phone (00493511111111), it works. If I call from Twinkle (5678 on AsteriskNOW) my wife’s phone (00493513333333), it does NOT work and I see this error on AsteriskCLI:

== Using SIP RTP CoS mark 5
[May 29 19:42:13] NOTICE[2526]: chan_sip.c:20163 handle_request_invite: Call from ‘00493511111111’ to extension ‘00493513333333’ rejected because extension not found.

users.conf on Ubuntu-PBX:

[00493511111111]
fullname = 00493511111111
secret = MYSECRET
dahdichan = 1
hassip = yes hasiax = no hash323 = no hasmanager = no callwaiting = no context = default host = dynamic dtmfmode=rfc2833
canreinvite=no sendrpid=pai type=friend nat=force_rport,comedia qualify=yes qualifyfreq`
transport=Auto avpf=no force_avp=no icesupport=no encryption=no callgrouppickupgroupdial=SIP/00493511111111

[00493512222222]
fullname = 00493512222222
secret = MYSECRET
dahdichan = 1
hassip = yes hasiax = no hash323 = no hasmanager = no callwaiting = no context = default host = dynamic dtmfmode=rfc2833
canreinvite=no sendrpid=pai type=friend nat=force_rport,comedia qualify=yes qualifyfreq`
transport=Auto avpf=no force_avp=no icesupport=no encryption=no callgrouppickupgroupdial=SIP/00493512222222

[00493513333333]
fullname = 00493513333333
secret = MYSECRET
dahdichan = 1
hassip = yes hasiax = no hash323 = no hasmanager = no callwaiting = no context = default host = dynamic dtmfmode=rfc2833
canreinvite=no sendrpid=pai type=friend nat=force_rport,comedia qualify=yes qualifyfreq`
transport=Auto avpf=no force_avp=no icesupport=no encryption=no callgrouppickupgroupdial=SIP/00493513333333
====================================sip.conf on Ubuntu-PBX:

[general]
context