switch the default communication port from 5060 to 5070.

59 views
Skip to first unread message

Gabriel Pereira

unread,
Feb 4, 2025, 1:03:49 PMFeb 4
to dSIPRouter

Hey Mack, I tried following these steps, but it's still using port 5060. I even tried changing it directly in /etc/kamailio, but that didn't work either.

I followed these steps:

Yes, you can:

  1. vi /opt/dsiprouter/kamailio/configs/kamailio.cfg
  2. Find SIP_PORT and change it from 5060 to 5070
  3. Execute "dsiprouter configurekam"
  4. Restart Kamailio using "systemctl restart kamailio"

Mack Hendricks

unread,
Feb 4, 2025, 1:14:23 PMFeb 4
to Gabriel Pereira, dSIPRouter
Okay...let me try it on a test system and let you know.  

--
You received this message because you are subscribed to the Google Groups "dSIPRouter" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dSIPRouter+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/dSIPRouter/aa70896f-8efc-49b3-9852-59d59ce09ac1n%40googlegroups.com.

Mudasar

unread,
Feb 4, 2025, 1:54:18 PMFeb 4
to dSIPRouter
Hi Gabriel,

edit the file nano /etc/dsiprouter/kamailio/kamailio.cfg and make the below changes.

Search for

# configure interface/port/proto kamailio will bind on
listen = udp:127.0.0.1:SIP_PORT
listen = tcp:127.0.0.1:SIP_PORT

listen = udp:INTERNAL_IP_ADDR:SIP_PORT
listen = tcp:INTERNAL_IP_ADDR:SIP_PORT

Change to 

# configure interface/port/proto kamailio will bind on
listen = udp:127.0.0.1:5070
listen = tcp:127.0.0.1:570

listen = udp:INTERNAL_IP_ADDR:5070
listen = tcp:INTERNAL_IP_ADDR:5070


Now restart kamailio

sudo systemctl restart kamailio

Now check with below command if kamailio is listening on port 5070

sudo netstat -tulnp | grep kamailio

Please let me know if that works.

Gabriel Pereira

unread,
Feb 5, 2025, 12:52:27 PMFeb 5
to dSIPRouter

I created this method using the command sudo netstat -tulnp | grep kamailio until it showed it listening on port 5070. However, it doesn't receive any registrations, and in sngrep, it doesn't respond to anything.

Mudasar

unread,
Feb 5, 2025, 1:14:24 PMFeb 5
to dSIPRouter
What are the settings of your SIP Phone/Deskphone?

Gabriel Pereira

unread,
Feb 5, 2025, 1:19:56 PMFeb 5
to dSIPRouter

Screenshot at Feb 05 15-19-17.png

Mudasar

unread,
Feb 5, 2025, 1:44:55 PMFeb 5
to dSIPRouter
Can you connect me via Skype so we can go back and forth on this. My Skype ID is mudasar321
Reply all
Reply to author
Forward
0 new messages