When trace_mode = 1, the source socket of an outgoing message can be retrieved from the payload passed in the callback of SREV_NET_DATA_SEND. Otherwise, if the socket has been manually forced (setting $fs, calling force_send_socket..), the information will be overwritten and the actual source socket of the outgoing message lost. You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/1810
-- Commit Summary --
* siptrace: siptrace: don't calculate message source socket if already set
-- File Changes --
M src/modules/siptrace/siptrace.c (5)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/1810.patch https://github.com/kamailio/kamailio/pull/1810.diff