23 dec 2012 kl. 08:38 skrev "Olle E. Johansson" <oej(a)edvina.net>et>:
In my RPC adventures, I came upon a problem that I fail to fix.
Like many other functions, rpc->scan is used to get a str from the command line (using
If I understand right, kamcmd use binrpc in the ctl module.
The original function in MI checks the length of the string given as an argument. If I do
like checking contactp->len then the length is a few million characters... I can read
actual string, so that part of the data seems right.
Anyone that experienced the same?
This is what I get:
3(75826) DEBUG: permissions [mi.c:268]: Basename permissions length 7564911
3(75826) DEBUG: permissions [mi.c:273]: URI sip:email@example.com length 1769366629
3(75826) DEBUG: permissions [mi.c:278]: Contact sip:192.168.40.19 length 775435825 size
length is str->len size is sizeof(str->s)
I have bin digging through librpc and binrpc in the ctl module and fail to get it.