[asterisk-users] Almost solved: using my Asterisk from Internet
Luca Bertoncello
lucabert at lucabert.de
Mon Jun 8 01:47:43 CDT 2015
Hi again, list!
I know, I'm really annoying the list... :)
Well, maybe I got my Asterisk at home ("wrt" on the previous E-Mails)
to accept my mobile phone from Internet.
It was a problem with the network and the firewall.
Now I can log my mobile phone in my Asterisk in and the phone is
REACHABLE. Wow! Got it!
If I call a phone at home using my cellphone it works and the quality
is perfect!
If a phone at home call my cellphone, however, the quality on my
cellphone is very poor, but on the other phone is perfect...
I think, it is something by the codecs, but I don't know what...
Here what I did (following this article:
http://www.linuxjournal.com/article/9399):
sip.conf:
localnet=192.168.200.0/255.255.255.0
localnet=192.168.20.0/255.255.255.0
externhost=mypc.noip.com
externrefresh=180
rtp.conf:
rtpstart=10000
rtpend=10100
users.conf:
[00491773333333]
fullname = 00491773333333
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=yes
qualify=yes
qualifyfreq=60
avpf=no
force_avp=no
icesupport=no
encryption=no
callgroup=
pickupgroup=
dial=SIP/00491773333333
And on my Firewall:
/sbin/iptables -t nat -A PREROUTING -i ppp0 -p udp -m udp --dport
10000:10100 -j DNAT --to-destination 192.168.20.120
/sbin/iptables -t nat -A PREROUTING -i ppp0 -p udp -m udp --dport 5060
-j DNAT --to-destination 192.168.20.120
Any idea, what can be wrong now?
Thanks
Luca Bertoncello
(lucabert at lucabert.de)
More information about the asterisk-users
mailing list