diff --git a/ursine/uri.py b/ursine/uri.py
index e7feacc..57be602 100644
--- a/ursine/uri.py
+++ b/ursine/uri.py
@@ -200,6 +200,16 @@ class URI:
         else:
             return uri
 
+    def short_uri(self):
+        if self.user and self.password:
+            user = f'{self.user}:{self.password}@'
+        elif self.user:
+            user = f'{self.user}@'
+        else:
+            user = ''
+
+        return f'{self.scheme}:{user}{self.host}:{self.port}'
+
     def __repr__(self):
         return f'{self.__class__.__name__}({self})'
 

Missing `short_uri`
aiosip needs this method to generate URI addresses.
diff --git a/tests/test_uri.py b/tests/test_uri.py
index d74630d..36a8806 100644
--- a/tests/test_uri.py
+++ b/tests/test_uri.py
@@ -29,6 +29,19 @@ def test_to_str(uri, expect):
     assert str(URI(uri)) == expect
 
 
+@pytest.mark.parametrize('uri,expect', [
+    ('sip:localhost', 'sip:localhost:5060'),
+    ('sips:localhost', 'sips:localhost:5061'),
+    ('<sip:localhost>', 'sip:localhost:5060'),
+    (
+        'John Doe <sip:localhost:5080?x=y&a=b>',
+        'sip:localhost:5080',
+    )
+])
+def test_to_short_uri(uri, expect):
+    assert URI(uri).short_uri() == expect
+
+
 @pytest.mark.parametrize('uri,expect', [
     ('sip:localhost', 'URI(sip:localhost:5060;transport=udp)'),
     ('sips:localhost', 'URI(sips:localhost:5061;transport=tcp)'),

pip install -e .[dev]
parse_log_pytest
pytest
pytest
apt-get update apt-get install -y gcc
3.6
Pipfile
pytest --no-header -rA --tb=line --color=no -p no:cacheprovider -W ignore::DeprecationWarning
attrs @ file:///opt/conda/conda-bld/attrs_1642510447205/work
certifi==2021.5.30
importlib-metadata @ file:///tmp/build/80754af9/importlib-metadata_1631916693255/work
iniconfig @ file:///home/linux1/recipes/ci/iniconfig_1610983019677/work
more-itertools @ file:///tmp/build/80754af9/more-itertools_1637733554872/work
multidict==5.2.0
packaging @ file:///tmp/build/80754af9/packaging_1637314298585/work
pluggy @ file:///tmp/build/80754af9/pluggy_1615976315926/work
py @ file:///opt/conda/conda-bld/py_1644396412707/work
pyparsing @ file:///tmp/build/80754af9/pyparsing_1635766073266/work
pytest==6.2.4
toml @ file:///tmp/build/80754af9/toml_1616166611790/work
typing_extensions @ file:///opt/conda/conda-bld/typing_extensions_1647553014482/work
-e git+https://github.com/sangoma/ursine.git@b9523c22a724b42e84e2e3093cb02b801e03fa70#egg=ursine
zipp @ file:///tmp/build/80754af9/zipp_1633618647012/work

name: ursine
channels:
  - defaults
  - https://repo.anaconda.com/pkgs/main
  - https://repo.anaconda.com/pkgs/r
  - conda-forge
dependencies:
  - _libgcc_mutex=0.1=main
  - _openmp_mutex=5.1=1_gnu
  - attrs=21.4.0=pyhd3eb1b0_0
  - ca-certificates=2025.2.25=h06a4308_0
  - certifi=2021.5.30=py36h06a4308_0
  - importlib-metadata=4.8.1=py36h06a4308_0
  - importlib_metadata=4.8.1=hd3eb1b0_0
  - iniconfig=1.1.1=pyhd3eb1b0_0
  - ld_impl_linux-64=2.40=h12ee557_0
  - libffi=3.3=he6710b0_2
  - libgcc-ng=11.2.0=h1234567_1
  - libgomp=11.2.0=h1234567_1
  - libstdcxx-ng=11.2.0=h1234567_1
  - more-itertools=8.12.0=pyhd3eb1b0_0
  - ncurses=6.4=h6a678d5_0
  - openssl=1.1.1w=h7f8727e_0
  - packaging=21.3=pyhd3eb1b0_0
  - pip=21.2.2=py36h06a4308_0
  - pluggy=0.13.1=py36h06a4308_0
  - py=1.11.0=pyhd3eb1b0_0
  - pyparsing=3.0.4=pyhd3eb1b0_0
  - pytest=6.2.4=py36h06a4308_2
  - python=3.6.13=h12debd9_1
  - readline=8.2=h5eee18b_0
  - setuptools=58.0.4=py36h06a4308_0
  - sqlite=3.45.3=h5eee18b_0
  - tk=8.6.14=h39e8969_0
  - toml=0.10.2=pyhd3eb1b0_0
  - typing_extensions=4.1.1=pyh06a4308_0
  - wheel=0.37.1=pyhd3eb1b0_0
  - xz=5.6.4=h5eee18b_1
  - zipp=3.6.0=pyhd3eb1b0_0
  - zlib=1.2.13=h5eee18b_1
  - pip:
      - multidict==5.2.0
prefix: /opt/conda/envs/ursine

tests/test_uri.py::test_to_short_uri[sip:localhost-sip:localhost:5060] tests/test_uri.py::test_to_short_uri[sips:localhost-sips:localhost:5061] tests/test_uri.py::test_to_short_uri[<sip:localhost>-sip:localhost:5060] tests/test_uri.py::test_to_short_uri[John
tests/test_uri.py::test_invalid[sip:localhost:port] tests/test_uri.py::test_invalid[sip:localhost:0] tests/test_uri.py::test_invalid[sip:localhost:70000] tests/test_uri.py::test_invalid[sip:localhost?] tests/test_uri.py::test_invalid[sip:localhost;] tests/test_uri.py::test_invalid[sip:localhost&] tests/test_uri.py::test_to_str[sip:localhost-sip:localhost:5060;transport=udp] tests/test_uri.py::test_to_str[sips:localhost-sips:localhost:5061;transport=tcp] tests/test_uri.py::test_to_str[<sip:localhost>-sip:localhost:5060;transport=udp] tests/test_uri.py::test_to_str[John tests/test_uri.py::test_repr[sip:localhost-URI(sip:localhost:5060;transport=udp)] tests/test_uri.py::test_repr[sips:localhost-URI(sips:localhost:5061;transport=tcp)] tests/test_uri.py::test_equality[sip:localhost-sip:localhost] tests/test_uri.py::test_equality[sip:localhost-sip:localhost;transport=udp] tests/test_uri.py::test_equality[<sip:localhost>-sip:localhost] tests/test_uri.py::test_equality[Alice tests/test_uri.py::test_equality[SIP:localhost-sip:localhost] tests/test_uri.py::test_equality[<sip:localhost>;tag=foo-sip:localhost;tag=foo] tests/test_uri.py::test_equality[<sip:localhost> tests/test_uri.py::test_inequality[sip:localhost-sips:localhost] tests/test_uri.py::test_inequality[Bob tests/test_uri.py::test_inequality[Alice tests/test_uri.py::test_inequality[sip:remotehost-sip:localhost] tests/test_uri.py::test_build[kwargs0-sip:localhost] tests/test_uri.py::test_build[kwargs1-sip:localhost;transport=tcp] tests/test_uri.py::test_build[kwargs2-sips:[::1]:5080;maddr=[::dead:beef]?x=y&a=] tests/test_uri.py::test_modified_uri_creation[sip:localhost-user-jdoe-sip:jdoe@localhost] tests/test_uri.py::test_modified_uri_creation[sip:localhost;transport=tcp-scheme-sips-sips:localhost:5060] tests/test_uri.py::test_modified_uri_creation[sip:localhost-port-5080-sip:localhost:5080] tests/test_uri.py::test_modified_uri_creation[sip:jdoe@localhost-user-None-sip:localhost] tests/test_uri.py::test_modified_uri_creation["Mark" tests/test_uri.py::test_modified_uri_creation[sip:user:pass@localhost-user-None-sip:localhost] tests/test_uri.py::test_modified_uri_creation[sip:localhost-user-user:pass-sip:user:pass@localhost] tests/test_uri.py::test_modified_uri_creation[sip:alice@localhost-password-pass-sip:alice:pass@localhost] tests/test_uri.py::test_modified_uri_creation[sip:localhost-transport-tcp-sip:localhost;transport=tcp] tests/test_uri.py::test_modified_uri_creation[sip:localhost-tag-bler-sip:localhost;transport=udp;tag=bler] tests/test_uri.py::test_modified_uri_creation[sip:localhost-parameters-new10-sip:localhost;maddr=[::1];foo=bar;x=] tests/test_uri.py::test_modified_uri_creation[sip:localhost-headers-new11-sip:localhost?ahhhh=&foo=bar] tests/test_uri.py::test_modified_uri_creation[sip:localhost-parameters-new12-sip:localhost;maddr=[::1];foo=bar;x=] tests/test_uri.py::test_modified_uri_creation[sip:localhost-headers-new13-sip:localhost?ahhhh=&foo=bar] tests/test_uri.py::test_tag_generation[sip:localhost-None-None] tests/test_uri.py::test_tag_generation[sip:localhost-5654-5654] tests/test_uri.py::test_tag_generation[sip:localhost;tag=2000-5654-5654] tests/test_uri.py::test_tag_generation[sip:localhost;tag=2ace-None-2ace]
ursine/uri.py
ursine/uri.py