I've been trying to use sippy with radius support but I am facing an issue with MonoTime implementation.
It seems that if a route returned from radius which contains credit-time, expires and np_expires parameters those are being cast as ints and when passed to a MonoAbsTimeout object, b2bua throws an exception that mtime is not MonoTime. I am guessing similar issues might exist with max_credit_time and similar global variables.
|
raise TypeError('mtime is not MonoTime') |
I've thought of doing something simple like
if isinstance(mtime, float):
mtime = (MonoTime()) + mtime
but it didn't work. I'm trying to resolve this myself, but I haven't yet understood the source code with regards to Time objects and any help would be greatly appreciated.
@sobomax Thank you for the work you've done on Sippy!
I've been trying to use sippy with radius support but I am facing an issue with MonoTime implementation.
It seems that if a route returned from radius which contains
credit-time,expiresandnp_expiresparameters those are being cast asints and when passed to aMonoAbsTimeoutobject, b2bua throws an exception thatmtime is not MonoTime. I am guessing similar issues might exist withmax_credit_timeand similar global variables.b2bua/sippy/Time/Timeout.py
Line 45 in 8adb5f9
I've thought of doing something simple like
but it didn't work. I'm trying to resolve this myself, but I haven't yet understood the source code with regards to Time objects and any help would be greatly appreciated.
@sobomax Thank you for the work you've done on Sippy!