[asterisk-app-dev] Standardization of Case for ARI URIs
Paul Belanger
paul.belanger at polybeacon.com
Tue Jan 21 14:50:59 CST 2014
On Tue, Jan 21, 2014 at 3:47 PM, Scott Griepentrog
<sgriepentrog at digium.com> wrote:
>
> Would you extend TECH being lower case to replacing all cases where PJSIP is output in response to an ARI request (and thus could get copied into a URL)? For example, instead of:
>
> {
> "technology": "IAX2",
> "resource": "demo",
> "state": "unknown",
> "channel_ids": []
> },
> {
> "technology": "PJSIP",
> "resource": "200",
> "state": "offline",
> "channel_ids": []
> },
>
> You would want:
>
> {
> "technology": "iax2",
> "resource": "demo",
> "state": "unknown",
> "channel_ids": []
> },
> {
> "technology": "pjsip",
> "resource": "200",
> "state": "offline",
> "channel_ids": []
> },
>
> Or would it be sufficient to say that lowercase is preferred, but due to case insensitivity it's not necessary to change all existing cases where it is output?
>
Right, I would expect only lower case TECH to work after the change.
URL are case sensitive, but we are forcing lower case for TECH.
So:
/iax2/demo works!
and
/IAX2/demo 404
--
Paul Belanger | PolyBeacon, Inc.
Jabber: paul.belanger at polybeacon.com | IRC: pabelanger (Freenode)
Github: https://github.com/pabelanger | Twitter: https://twitter.com/pabelanger
More information about the asterisk-app-dev
mailing list