[OpenSIPS-Devel] AVP variable string lenght

2014-12-05 Thread Nikita Tarasov
We are creating module for opensips working similar to call_control. This module exchanges with our software via unix socket. I developed mostly the all functionality that we want nevertheless I got very strange result in setting AVP variable via module. This variable with string is cutting after 7th symbol.



How can I increase AVP string variable length?





code example



pv_value_t spec_value;

pch = strtok (NULL, rn:);


str text = str_init(pch);
spec_value.rs = text;
spec_value.flags = PV_VAL_STR;

if (pv_set_value(msg,(mediagateway_avp_spec),0,spec_value) != 0){
 LM_ERR(Failed to set the output variablen);
}







Nikita




___
Devel mailing list
Devel@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel


[OpenSIPS-Devel] [OpenSIPS/opensips] 853789: fixed compilation warning on convert_mime2string_C...

2014-12-05 Thread ionutrazvanionita
  Branch: refs/heads/master
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 8537890571ff4c28df8ad2a9d59cafa12735628d
  
https://github.com/OpenSIPS/opensips/commit/8537890571ff4c28df8ad2a9d59cafa12735628d
  Author: ionutrazvanionita ionution...@opensips.org
  Date:   2014-12-05 (Fri, 05 Dec 2014)

  Changed paths:
M parser/parse_content.c

  Log Message:
  ---
  fixed compilation warning on convert_mime2string_CT


___
Devel mailing list
Devel@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel


[OpenSIPS-Devel] [OpenSIPS/opensips] 99d7e7: Makefile: fix missing space in tls overwite test

2014-12-05 Thread Razvan Crainea
  Branch: refs/heads/master
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 99d7e7fde9743468a6d99a2cc4a0388d40dcf3a7
  
https://github.com/OpenSIPS/opensips/commit/99d7e7fde9743468a6d99a2cc4a0388d40dcf3a7
  Author: Razvan Crainea raz...@opensips.org
  Date:   2014-12-05 (Fri, 05 Dec 2014)

  Changed paths:
M Makefile

  Log Message:
  ---
  Makefile: fix missing space in tls overwite test


___
Devel mailing list
Devel@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel


Re: [OpenSIPS-Devel] AVP variable string lenght

2014-12-05 Thread Bogdan-Andrei Iancu

Hi Nikita,

You use the str_init() macro in a wrong way - it is intended to take as 
param a static string (ie. str_init(test string) ) and not a pointer, 
as you do.
str_init() macro does a sizeof, and for you it will be 8 (size of a 
pointer on 64bit) - with one null termination - 7 left :).


Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 05.12.2014 10:40, Nikita Tarasov wrote:
We are creating module for opensips working similar to call_control. 
This module exchanges with our software via unix socket. I developed 
mostly the all functionality that we want nevertheless I got very 
strange result in setting AVP variable via module. This variable with 
string is cutting after 7th symbol.

How can I increase AVP string variable length?
code example
pv_value_t spec_value;
pch = strtok (NULL, \r\n:);
str text = str_init(pch);
spec_value.rs = text;
spec_value.flags = PV_VAL_STR;
if (pv_set_value(msg,(mediagateway_avp_spec),0,spec_value) != 0){
LM_ERR(Failed to set the output variable\n);
}
Nikita


___
Devel mailing list
Devel@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel


___
Devel mailing list
Devel@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel


[OpenSIPS-Devel] [OpenSIPS/opensips] cf8253: fixed: mc_compress works with no argument

2014-12-05 Thread ionutrazvanionita
  Branch: refs/heads/master
  Home:   https://github.com/OpenSIPS/opensips
  Commit: cf8253e8c61d2c22fb280dc087ddb1a9799c91d0
  
https://github.com/OpenSIPS/opensips/commit/cf8253e8c61d2c22fb280dc087ddb1a9799c91d0
  Author: ionutrazvanionita ionution...@opensips.org
  Date:   2014-12-05 (Fri, 05 Dec 2014)

  Changed paths:
M modules/compression/compression.c
M modules/compression/compression_helpers.c

  Log Message:
  ---
  fixed: mc_compress works with no argument


___
Devel mailing list
Devel@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel