On Wed, Jul 20, 2016 at 6:47 AM, Saint Michael <venefax at gmail.com>
wrote:>
> Is there any way to make PJSIP send the "#" as "#" and
not as %23 in the INVITE?
> I cannot figure this out.
>
The '#' character is a delimiter in URIs, and must be escaped if not
being used as such. Quoting RFC 2396, 2.4.3 [1]:
> The angle-bracket "<" and ">" and double-quote
(") characters are
> excluded because they are often used as the delimiters around URI in
> text documents and protocol fields. The character "#" is
excluded
> because it is used to delimit a URI from a fragment identifier in URI
> references (Section 4). The percent character "%" is excluded
because
> it is used for the encoding of escaped characters.
>
> delims = "<" | ">" | "#" |
"%" | <">
PJSIP is doing the "right thing" by escape encoding the reserved
character.
[1] https://www.ietf.org/rfc/rfc2396.txt
--
Matthew Jordan
Digium, Inc. | CTO
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
Check us out at: http://digium.com & http://asterisk.org