You are on page 1of 2

192.168.1.

62

admin/acme

acme/abc123

asterisk -r

mysql -u root -p

mysql -uroot -p`cat /etc/elastix.conf |grep mysqlrootpwd|cut -d


"=" -f 2` -D asterisk -e '
update sip set data = "no" where keyword = "nat"'

show databases;

connect asterisk; /// connect to DB

select * from sip ;

update sip set data = "yes" where keyword = "nat" and id = "201" ;

select * from sip where keyword="nat" ;

update sip set data = "no" where keyword = "nat" and id = "201" ;

update sip set data = "yes" where keyword = "nat"

more full | grep " Registered SIP"

6901 default PIN of 24726

192.168.1.202

yum whatprovides *tshark*

tshark -f "port sip"

netstat -apnt | grep 5060

chkconfig iptables off

[root@elastix asterisk]# asterisk -r


Verbosity is at least 3
elastix*CLI>

elastix*CLI> sip unregister 201


**************************************

/etc/asterisk/sip_additional.conf
[199]
nat=yes shall not register
nat=no register
and in DB also nat=no

2829
dellsys786

You might also like