<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> </div>
<div>How can I increase AVP string variable length?</div>
<div> </div>
<div> </div>
<div>code example</div>
<div> </div>
<div>pv_value_t spec_value;</div>
<div>pch = strtok (NULL, "\r\n:");</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,&(mediagateway_avp_spec),0,&spec_value) != 0){<br/>
LM_ERR("Failed to set the output variable\n");<br/>
}</div>
<div> </div>
<div> </div>
<div> </div>
<div>Nikita</div>
</div>
<div> </div></div></body></html>