Skip to content

Force usage of Quotes #109

@danielzt

Description

@danielzt

I had some difficult times with old routers due to not usage of Quotes <> on SIP Addresses (At least by default).

Routes that do some kind of SIP parsing sometimes route the Sip message, sometimes they silent discard it.

To fix this, I inserted a "forceQuotes" variable to allow me controlling it, but I'm clearly doing the wrong way.
What is a proper way to configure this parameter in a class wide manner?

        public Address build() throws SipParseException {
            ...
            final Boolean forceQuotes = true;*
            final boolean yesAngleQuoteIt = yesDisplayName || uriBuilder.hasParameters() || forceQuotes;
            ...
            }

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions