[OpenSIPS-Users] bug in SST module ?
Samuel Muller
sml at l33.fr
Mon Nov 5 15:00:54 CET 2012
Hello,
I would like to submit this problem I found :
I recently set up the SST module (OpenSips v.1.8.1) with these params :
"
loadmodule "sst.so"
modparam("sst","enable_stats",1)
modparam("sst","min_se",600)
modparam("sst","sst_interval",0)
modparam("sst","timeout_avp","$avp(stimeout)")
modparam("sst","reject_to_small",1)
modparam("sst","sst_flag",5)
"
all the params are correct, and the avp is the same as the dialog module.
So I put the flag in the routing logic :
"
if (is_method("INVITE")) {
setflag(5); # flag sst for dialog timers
create_dialog("B");
}
"
Then, everything concerning statistics using XMLRPC and accounting
(Radius in my way) was not working anymore.
For instance, when i get stats using xmlrpc with python :
>>> import xmlrpclib
>>> q = xmlrpclib.ServerProxy('http://myproxy.com:8060')
>>> d = q.dlg_list_ctx()
Traceback (most recent call last):
File "<console>", line 1, in <module>
File "/usr/lib/python2.6/xmlrpclib.py", line 1199, in __call__
return self.__send(self.__name, args)
File "/usr/lib/python2.6/xmlrpclib.py", line 1489, in __request
verbose=self.__verbose
File "/usr/lib/python2.6/xmlrpclib.py", line 1253, in request
return self._parse_response(h.getfile(), sock)
File "/usr/lib/python2.6/xmlrpclib.py", line 1387, in _parse_response
p.feed(response)
File "/usr/lib/python2.6/xmlrpclib.py", line 868, in end
return f(self, join(self._data, ""))
File "/usr/lib/python2.6/xmlrpclib.py", line 916, in end_string
data = _decode(data, self._encoding)
File "/usr/lib/python2.6/xmlrpclib.py", line 164, in _decode
data = unicode(data, encoding)
File "/usr/lib/python2.6/encodings/utf_8.py", line 16, in decode
return codecs.utf_8_decode(input, errors, True)
UnicodeDecodeError: 'utf8' codec can't decode byte 0xb8 in position
542: invalid start byte
I found this strangely similar:
http://www.mail-archive.com/users@lists.opensips.org/msg18444.html
And yes, this is this var : accX_... who is responsible of the problem
- OpenSips does not crash.
Hope you can find something there ...
Samuel MULLER
More information about the Users
mailing list