For those who are monitoring progress on homer, there is a significant amount of commits for the past couple of days that corrected most of the pending issues including the issue I have raised below.

On 07/26/2012 03:21 PM, Joegen Baclor wrote:
Attached is data coming from my latest testing of sipXhomer. I added log entries in the DAO driver to display packet source and destination information. In the first portion, of the attached log, the port information is what I expect them to be. The second portion of data is the result of the SQL select. All instance of the SOURCE_PORT has garbage values for the port number. all DEST_PORT are correct. Looking at the code, I don't see anything obvious that could cause this.

  // source_ip
  bind(SOURCE_IP, (void *) ip4SrcAddress.c_str(), ip4SrcAddress.length());
  // source_port
  unsigned short sourcePort = (unsigned short)srcPort;
  bind(SOURCE_PORT, (void*)&sourcePort, sizeof(unsigned short));
  // destination_ip
  bind(DEST_IP, (void *) ip4DestAddress.c_str(), ip4DestAddress.length());
  // destination_port
  unsigned short destinationPort = (unsigned short)destPort;
  bind(DEST_PORT, (void*)&destinationPort, sizeof(unsigned short));

Still trying to nail the root cause but if anyone is familiar with ODBC please review https://github.com/dhubler/sipXhomer/blob/master/src/HEPDao.cpp. Comments appreciated.



_______________________________________________
sipx-dev mailing list
[email protected]
List Archive: http://list.sipfoundry.org/archive/sipx-dev/

Reply via email to