Hey, so my team, specifically my coworker @dtkerr, has put together a yarl-like like library for SIP URIs: ursine
I'd like to integrate it into aiosip as it will solve a lot of problems:
We've had bugs in the part with mutability (e.g. passing from_details into a function which adds a tag, and suddenly having tags propagate everywhere inappropriately)
Building to_uri/from_uri/contact_uri can be very tedious:
Not to mention this ignores transport - which can be mixed. I've just been assuming this whole time I'll be using UDP only because its easiest and I'll revisit other transports later. I do have a need to support sips:... eventually.
Its a small library with no other external dependencies, which we've done separately intentionally so we can use it in a few other projects that do SIP stuff but don't use aiosip, but I'm open to merging it as well.
Changing contact / uri handling was always on my mind as it was quite complicated. That looks like it will solve quite a few problems so I'm all for it
Hey, so my team, specifically my coworker @dtkerr, has put together a yarl-like like library for SIP URIs: ursine
I'd like to integrate it into aiosip as it will solve a lot of problems:
We've had bugs in the part with mutability (e.g. passing
from_details
into a function which adds a tag, and suddenly having tags propagate everywhere inappropriately)Building
to_uri
/from_uri
/contact_uri
can be very tedious:REGISTER
to then later route out calls:Not to mention this ignores transport - which can be mixed. I've just been assuming this whole time I'll be using UDP only because its easiest and I'll revisit other transports later. I do have a need to support
sips:...
eventually.What I'd really like to see:
This can also help with #63 and we can create the URI with
to_uri.with_user(None)
And I think we should support making connections with SIP uris directly:
Its a small library with no other external dependencies, which we've done separately intentionally so we can use it in a few other projects that do SIP stuff but don't use aiosip, but I'm open to merging it as well.