Hello,
do you have IP routing path from the external_ip to the homer server? Like, it is possible to open connection to the homer server from both internal_ip and external_ip? If yes, even when the application tries to indicate the desired local ip:port when creating a tcp connection, it is the tcp stack/kernel that makes the final decision.
If you switch to udp for homer traffic, is the expected network interface used?
Cheers,
Daniel
Hello,
I have been using the siptrace module on a multihomed kamailio setup for some time now, with kamailio 5.5.7 and 5.6.6, without incident.
I am listening to my external interface using something like:
listen=tls:external_ip:5061listen=tcp:external_ip:5060Listen=tcp:internal_ip:5000 name "homer"
And for siptrace...
modparam("siptrace", "duplicate_uri", "sip:homer_ip:9060;transport=tcp")modparam("siptrace", "send_sock_name", "homer")
I have also used send_sock_addr and force_send...
This works as expected.
I recently deployed this same setup using kamailio 6.0.1 and discovered that the send_sock is not being respected, even though the logs say it has been selected. Instead, tcpdump and careful examination of all the file descriptors for the kamailio processes reveal it is sending with the source set to my external_ip instead of the internal_ip.
I have verified this on the same server, ruling out os level issues routing issues and have tried manually connecting using nc with the internal ip address for the source, which works.
I tried downgrading, and found that the same is true for kamailio 5.7.6, 5.8.6 and 6.0.1
This issue only appears to affect siptrace as other sockets appear to use the correct source ip to, for example, connect to a database.
I had a look at the change logs and documentation and cant see anything obvious that I need to change from a configuration perspective.
Could anybody help? I would prefer to be running 6.0+ in my new production environment but wont be able to if this cannot be solved quickly.
Many thanks for your help.
With every blessing,--Daniel Donoghue
__________________________________________________________ Kamailio - Users Mailing List - Non Commercial Discussions -- sr-users@lists.kamailio.org To unsubscribe send an email to sr-users-leave@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender!
-- Daniel-Constantin Mierla (@ asipto.com) twitter.com/miconda -- linkedin.com/in/miconda Kamailio Consultancy, Training and Development Services -- asipto.com Kamailio Scalability Training - Online, June 16-19, 2025 -- asipto.com