Eyepea / aiosip

SIP support for AsyncIO (DEPRECATED)
Apache License 2.0
82 stars 41 forks source link

REGISTER is sent to the wrong URI #63

Open jlaine opened 6 years ago

jlaine commented 6 years ago

Currently, if you use create_dialog(..).register() the URI for the REGISTER method is wrong. Unlike the To and From fields, the URI should not contain a username.

See: https://tools.ietf.org/html/rfc3261#section-10.2

      Request-URI: The Request-URI names the domain of the location
           service for which the registration is meant (for example,
           "sip:chicago.com").  The "userinfo" and "@" components of the
           SIP URI MUST NOT be present.
vodik commented 6 years ago

I think this actually might have some overlap with the work I'm doing with #59 where we don't really have, I think, the right API for setting up dialogs atm.

vodik commented 6 years ago

Sorry, pressed the wrong button.