Hi, i would like to get some help with a problem, i want to change the default port of sip registration to a other diferent from default, i read some post and tutorials but something is wrong since i used the bindport and port in the extension sip config respectively but i cant get it to work im testing it first on a lan to aboid network problems, im using a freepbx with asterisk 1.6 and i made the changes in the file /etc/asterisk/sip_general_custom.conf
sip_general_custom.conf
bindport=5080
bindaddr=0.0.0.0
after that i modify the file sip_aditional.conf
sip_aditional.conf
; Do NOT edit this file as it is auto-generated by FreePBX. All modifications to ;
; this file must be done via the web gui. There are alternative files to make ;
; custom modifications, details at: http://freepbx.org/configuration_files ;
;--------------------------------------------------------------------------------;
;
[500]
deny=0.0.0.0/0.0.0.0
secret=tamarindo23
dtmfmode=rfc2833
canreinvite=no
context=from-internal
host=dynamic
type=friend
nat=yes
port=5080
qualify=yes
callgroup=
pickupgroup=
dial=SIP/500
then i do a sip reload and the cli says that is listening on the defined port
localhost*CLI> sip reload
Reloading SIP
== Parsing ‘/etc/asterisk/sip.conf’: == Found
== Parsing ‘/etc/asterisk/sip_general_additional.conf’: == Found
== Parsing ‘/etc/asterisk/sip_general_custom.conf’: == Found
== Parsing ‘/etc/asterisk/sip_nat.conf’: == Found
== Parsing ‘/etc/asterisk/sip_registrations_custom.conf’: == Found
== Parsing ‘/etc/asterisk/sip_registrations.conf’: == Found
== Parsing ‘/etc/asterisk/sip_custom.conf’: == Found
== Parsing ‘/etc/asterisk/sip_additional.conf’: == Found
== Parsing ‘/etc/asterisk/sip_custom_post.conf’: == Found
== SIP Listening on 0.0.0.0:5080
== Using SIP TOS bits 96
== Using SIP CoS mark 4
until that i think all the configuration are ok but when i make the changes in the sip phone it just dont register the phone is in the same lan, if i look at the cli in the server it dont show nothing, then i go out and check the udp connection with:
tcpdump udp | grep SIP
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth0, link-type EN10MB (Ethernet), capture size 96 bytes
11:22:40.850878 IP 192.168.1.156.5080 > 192.168.1.116.sip: SIP, length: 479
11:22:41.394609 IP 192.168.1.156.5080 > 192.168.1.116.sip: SIP, length: 479
11:22:42.355823 IP 192.168.1.156.5080 > 192.168.1.116.sip: SIP, length: 479
i can see that the phone is trying to connect on the server but the server is ingnoring it, if i change the port to default everything works ok, but i want to change the default port because i want to setup some remote stations, but when i setup it by default port in 1 day i got a bot trying to get in my server and slowing down the network.
So far at this point im out of ideas, can any one help me with this problem? Thanks in advance.