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
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 :).