Menu

#4 Auhorization username can differ from userpart

open
nobody
None
5
2012-12-06
2010-09-21
uiltje
No

On authorizing a SIP REGISTER request, the authentication-username used can be different from the sip userpart.

This is missing from the code.

Attached, a patch that allows for the configuration of a separate authentication-username that defaults to the userpart.

Please review and apply.

Hope this helps,
Tom.

Discussion

  • uiltje

    uiltje - 2010-09-21
     
  • yohannmartineau

    yohannmartineau - 2010-09-22

    I know it's a detail, but could you replace tabs by spaces in your patch?

    In peers.xml, could you use:
    <!-- <authorizationUsername></authorizationUsername> -->
    instead of
    <!-- authorization-username></authorization-username -->
    and authorizationUsername in peers.xsd

    and in Config.java, could you use the same variable name as in peers.xml, i.e. authorizationUsername instead of authId?

    Thanks

     
  • uiltje

    uiltje - 2010-09-23

    2nd version

     
  • uiltje

    uiltje - 2010-09-23

    Done.

    Strange. I have the editor on "replace tabs with spaces" but still they creep in. Go figure.
    Amazing btw. how inconsistent one can be :)

    Hope this helps,
    Tom.

     
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.