[sr-dev] git:master:0683df11: mem: TLSF bit ops cleanup / 64 bits improvement

2016-10-25 Thread Camille Oudot
Module: kamailio Branch: master Commit: 0683df11e319aa3db45cd9b18af3a3c3b02088a8 URL: https://github.com/kamailio/kamailio/commit/0683df11e319aa3db45cd9b18af3a3c3b02088a8 Author: Camille Oudot Committer: Camille Oudot Date: 2016-10-25T11:32:35+02:00 mem: TLSF bit ops cleanup / 64 bits improvem

[sr-dev] [kamailio/kamailio] dialog: adding dialog replication via DMQ (#831)

2016-10-25 Thread Soapnix
- updating code base to actual state. - adding repliation for DLG_STATE_EARLY to prevent hanging up unconfirmed dialogs and its infinite replication. - fixing dialog removal on peers to prevent die on timeout and possible infinite replication. - fixing dialog removal on peers when master node cle

[sr-dev] git:master:1460e478: sca: sca_call_info_update() fix [to|from]_aor values when using [to|from] header params

2016-10-25 Thread Victor Seva
Module: kamailio Branch: master Commit: 1460e478d173681076ec106bafa15b7a424f42d0 URL: https://github.com/kamailio/kamailio/commit/1460e478d173681076ec106bafa15b7a424f42d0 Author: Victor Seva Committer: Victor Seva Date: 2016-10-25T15:37:20+02:00 sca: sca_call_info_update() fix [to|from]_aor va

[sr-dev] git:master:0cfb2224: dmq_usrloc: Use ruid for saving/updating contacts

2016-10-25 Thread Carsten Bock
Module: kamailio Branch: master Commit: 0cfb2224cbca5cfcf125ad46593573f1e4b94e36 URL: https://github.com/kamailio/kamailio/commit/0cfb2224cbca5cfcf125ad46593573f1e4b94e36 Author: Carsten Bock Committer: Carsten Bock Date: 2016-10-25T17:37:36+02:00 dmq_usrloc: Use ruid for saving/updating conta

[sr-dev] [kamailio/kamailio] pv: Use memcpy to copy len bytes instead of strcpy (#832)

2016-10-25 Thread Holger Freyther
The sipcapture plugin stores bytes with VAR_VAL_STR and when copying the data it would end up being truncated. Use memcpy instead of strncpy and assume that the original string already has the NUL termination (or not as with the hep plugin). Config example: $var(payload) = hep(0x00f) You

Re: [sr-dev] [kamailio/kamailio] pv: Use memcpy to copy len bytes instead of strcpy (#832)

2016-10-25 Thread Holger Freyther
@adubovikov do you think this approach is good? -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/pull/832#issuecomment-256108200___ sr-dev mailin

Re: [sr-dev] [kamailio/kamailio] pv: Use memcpy to copy len bytes instead of strcpy (#832)

2016-10-25 Thread Phil Lavin
I'm thinking that you're going to lose the NUL byte here as presumably, if it exists, it is not included in the length of the string -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/pull/8

Re: [sr-dev] [kamailio/kamailio] pv: Use memcpy to copy len bytes instead of strcpy (#832)

2016-10-25 Thread Holger Freyther
Ah okay s.len == strlen(s.s). So yes, it fixes my issue and breaks other things. Is introducing VAR_VAL_BYTES and pv_* an option for it? -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/pu

Re: [sr-dev] [kamailio/kamailio] pv: Use memcpy to copy len bytes instead of strcpy (#832)

2016-10-25 Thread Phil Lavin
I'm not entirely clear what your issue is - can you explain further. As I see it, changing from `strncpy` to `memcpy` only has benefit if the thing you're copying has a \0 in the middle of it. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or v

Re: [sr-dev] [kamailio/kamailio] pv: Use memcpy to copy len bytes instead of strcpy (#832)

2016-10-25 Thread Holger Freyther
I am using the "sipcapture" module and the HEPv3 that is received by it can carry binary data inside its payload. I use hep(0x00f) to ask the sipcapture module to extract the payload of the non SIP HEP message but when trying to use it the binary data has turned into a string of 0x00 becuase the

Re: [sr-dev] [kamailio/kamailio] pv: Use memcpy to copy len bytes instead of strcpy (#832)

2016-10-25 Thread Holger Freyther
Anyway. len+1 is allocated so I can just not remove/re-add the NUL byte at the end. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/pull/832#issuecomment-256174790