-
Notifications
You must be signed in to change notification settings - Fork 74
Open
Description
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.
Line 45 in 8adb5f9
| 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!
Metadata
Metadata
Assignees
Labels
No labels