<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>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 <span dir="auto">nevertheless I got very strange result in setting AVP variable via module. This variable with string is cutting after 7th symbol.</span></div>

<div>&nbsp;</div>

<div>How can I increase AVP string variable length?</div>

<div>&nbsp;</div>

<div>&nbsp;</div>

<div>code example</div>

<div>&nbsp;</div>

<div>pv_value_t spec_value;</div>

<div>pch = strtok (NULL, &quot;&#92;r&#92;n:&quot;);</div>

<div>
<div>str text = str_init(pch);<br/>
spec_value.rs = text;<br/>
spec_value.flags = PV_VAL_STR;</div>

<div>if (pv_set_value(msg,&amp;(mediagateway_avp_spec),0,&amp;spec_value) != 0){<br/>
&nbsp;&nbsp;&nbsp; LM_ERR(&quot;Failed to set the output variable&#92;n&quot;);<br/>
}</div>

<div>&nbsp;</div>

<div>&nbsp;</div>

<div>&nbsp;</div>

<div>Nikita</div>
</div>

<div>&nbsp;</div></div></body></html>