[asterisk-dev] [Code Review] SIP user fields are crazy. Repeat extension searches if they all fail and semicolons are obfuscating the extension in the uri.

Jonathan Rose jrose at digium.com
Thu May 12 16:08:09 CDT 2011


Alright then, I'll put the old patch up in a fresh review with some additional documentation and repost it to the reviewboard in the morning.

----- Original Message -----
From: "Leif Madsen" <leif.madsen at asteriskdocs.org>
To: asterisk-dev at lists.digium.com
Sent: Thursday, 12 May, 2011 3:37:13 PM
Subject: Re: [asterisk-dev] [Code Review] SIP user fields are crazy. Repeat extension searches if they all fail and semicolons are obfuscating the extension in the uri.

On 11-05-12 04:31 PM, David Vossel wrote:
> Nope, just make the option strip off and discard everything after the ';' in the userfield.  It doesn't need to be any more complicated than that for now.  This is just an interoperability patch that allows people with devices that generate URI's that look like this to use them and pattern match the way they expect them to.  If people don't want to use this option, they don't have to.  If people want it to do more in the future, then we'll tackle that when the actual situation occurs.   This is not a standardized thing, there's no pattern to follow here.  This fix is very much dictated by what gets people's real world devices working with Asterisk, and right now that is a sip.conf option that strips off everything after the ';' of a user field.

Agreed. If we start going down the more complicated road, my suggest would be to
throw it all away and let the dialplan deal with it. If you just want to add
this simple option that deals with the semicolon issue specifically, the sure,
that is fine, as we have a precedent around buggymwi={yes,no} for
interoperability situations.

Leif.

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-dev mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-dev



More information about the asterisk-dev mailing list