Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[asterisk-users] PJSIP and the pound (#) as %23


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
venefax at gmail.com
Guest





PostPosted: Wed Jul 20, 2016 6:48 am    Post subject: [asterisk-users] PJSIP and the pound (#) as %23 Reply with quote

Is there any way to make PJSIP send the "#" as "#" and not as %23 in the INVITE?

I cannot figure this out.
Back to top
mjordan at digium.com
Guest





PostPosted: Wed Jul 20, 2016 9:09 am    Post subject: [asterisk-users] PJSIP and the pound (#) as %23 Reply with quote

On Wed, Jul 20, 2016 at 6:47 AM, Saint Michael <venefax@gmail.com> wrote:
Quote:

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]:

Quote:
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

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services