you can check the ticket https://github.com/kamailio/kamailio/issues/2092
On Thu, Jan 20, 2022 at 3:21 PM Daniel-Constantin Mierla <[email protected]> wrote: > Hello, > > the source port of tcp connections is typically an ephemeral port, that's > due to tcp design and os layer implementation. Newer kernels have the > option for reuse port for tcp, but even then it cannot be guaranteed always > -- there should be an option for recent kamailios as well. > > Maybe it can be enforced inside the c code of siptrace modue, when the hep > header is built. I expect port 0 is set when it is not known for whatsoever > reason. > > Cheers, > Daniel > On 18.01.22 13:13, Karsten Horsmann wrote: > > Hello List, > > I observe an interesting behavior. We use siptrace as an active capture > agent for QXIP HOMER/HEPIC installations. > The destination port and the source port in the HEPv3 Header are not > correct if you use transport tcp for example. > > My Question: is that intended or a bug and i should fill up an issue? > > On udp, it's filled with 5060 or whatever your listening directive says. > > I tested that with kamailio 5.5 and kamailio master. > > I attached an HEPv3 capture from two kamailios (master) speaking with each > other. > You need the https://github.com/sipcapture/hep-wireshark lua dissector to > read the capture. > > 10.0.2.15 (kamailio with uacreg and sipcapture/HEPv3 mode) > 192.168.50.4 (kamailio as registrar) > > Frame 1 shows an tcp transport register Request from 10.0.2.15 to > 192.168.50.4 in HEPv3. > The Source Port in the HEP3 Protocol is not correct (its an highport / > 45419). > > Frame 4 shows the 401 answer and the Destination port is 0. > Frame 7 also had this behavior. > > > ----- params (nearly at the end): > modparam("siptrace", "duplicate_uri", "MY_HOMER_CAPTURE") > modparam("siptrace", "hep_mode_on", 1) > modparam("siptrace", "hep_version", 3) > modparam("siptrace", "hep_capture_id", MY_HOMER_CAPTURE_ID) # capture > agent id Limitation: 32-bit for HEPv3. > modparam("siptrace", "trace_to_database", 0) > modparam("siptrace", "trace_on", 1) > modparam("siptrace", "trace_mode", 1) # default 0, if 1 then you dont need > call siptrace flag or sip_trace() > > > > -- > Mit freundlichen Grüßen / Kind Regards > *Karsten Horsmann* > > __________________________________________________________ > Kamailio - Users Mailing List - Non Commercial Discussions > * [email protected] > Important: keep the mailing list in the recipients, do not reply only to the > sender! > Edit mailing list options or unsubscribe: > * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users > > -- > Daniel-Constantin Mierla -- www.asipto.comwww.twitter.com/miconda -- > www.linkedin.com/in/miconda > Kamailio Advanced Training - Online > Feb 21-24, 2022 (America Timezone) > * https://www.asipto.com/sw/kamailio-advanced-training-online/ > > __________________________________________________________ > Kamailio - Users Mailing List - Non Commercial Discussions > * [email protected] > Important: keep the mailing list in the recipients, do not reply only to > the sender! > Edit mailing list options or unsubscribe: > * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users >
__________________________________________________________ Kamailio - Users Mailing List - Non Commercial Discussions * [email protected] Important: keep the mailing list in the recipients, do not reply only to the sender! Edit mailing list options or unsubscribe: * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
