23 dec 2012 kl. 08:38 skrev "Olle E. Johansson" <[email protected]>:

> Hi!
> 
> 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 kamcmd). 
> 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 that,
> like checking contactp->len then the length is a few million characters... I 
> can read the
> 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 protected] length 
1769366629 
 3(75826) DEBUG: permissions [mi.c:278]: Contact sip:192.168.40.19 length 
775435825 size 7
 
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. 

/O
_______________________________________________
sr-dev mailing list
[email protected]
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to