[SIPForum-discussion] # converted to %2 in SIP invite

Joel Gerber Joel.Gerber at corp.eastlink.ca
Tue Aug 5 17:50:05 UTC 2014


Yes, this is correct/incorrect behaviour. If you look at RFC 3261, the ABNF (Augmented Backus-Naur Form) for SIP-URI on page 222 points to user/telephone-subscriber as valid. User doesn’t allow octo-thorpe (#) to be included un-escaped, but telephone-subscriber (which is defined separately in RFC 3966) does. Since the URI parameter user=phone is present, I think you should look at the telephone-subscriber definition which states it doesn’t need to be escaped.

That said, both RFCs allow for escaped characters. The SIP UA at the remote end, whichever format it is sent in, should convert it to its unescaped form before processing.

FYI: In case you don’t know, when I say escaped, I’m referring to ‘#’ being translated to its ASCII HEX code equivalent ‘%23’.

Joel Gerber
Network Administrator
Network Operations
Eastlink
E: Joel.Gerber at corp.eastlink.ca<mailto:Joel.Gerber at corp.eastlink.ca> T: 519.786.1241

From: discussion-bounces at sipforum.org [mailto:discussion-bounces at sipforum.org] On Behalf Of Ramachandra moorthy
Sent: July-17-14 8:30 AM
To: discussion at sipforum.org
Subject: [SIPForum-discussion] # converted to %2 in SIP invite

Dear All,

Kindly clarify my another query pls..

SIP subscriber dialing" #" sympol...but it is transfer like "%2" in SIP invite message..Kindly clarify whether this is right or wrong.

Below is the invite message

Sequence NO.:1
INVITE sip:2%232008 at 10.191.59.22:5060;user=phone SIP/2.0
Via: SIP/2.0/UDP 10.190.32.102:5060;branch=z9hG4bK7d9501b5.0
To: "2%232008"<sip:2%232008 at 10.190.32.102<mailto:sip%3A2%25232008 at 10.190.32.102>>
From: "4023325578"<sip:4023325578 at 10.190.32.102<mailto:sip%3A4023325578 at 10.190.32.102>>;tag=0abe2066-000011b200006f84
Call-ID: 0000052c000049e9-0047-0791 at 10.190.32.102<mailto:0000052c000049e9-0047-0791 at 10.190.32.102>
CSeq: 6673 INVITE
Contact: <sip:4023325578 at 10.190.32.102:5060<http://sip:4023325578@10.190.32.102:5060>>
Allow: INVITE,ACK,OPTIONS,BYE,CANCEL,INFO,REFER,NOTIFY,PRACK,UPDATE
P-Asserted-Identity: <sip:4023325578 at 10.190.32.102<mailto:sip%3A4023325578 at 10.190.32.102>>
Max-Forwards: 9
Record-Route: <sip:10.190.32.102:5060;lr>
Supported: 100rel
User-Agent: ZTE Softswitch/1.0.0
P-Charging-Vector: icid-value=Hyder-20140717125720-0001eb81
Content-Type: multipart/mixed;boundary=zte-unique-boundary-06
Content-Length: 515

--zte-unique-boundary-06
Content-Type: application/SDP

v=0
o=ZTE 4 27240 IN IP4 10.190.32.102
s=phone-call
c=IN IP4 10.190.32.22
t=0 0
m=audio 19658 RTP/AVP 8 18 97
a=rtpmap:97 telephone-event/8000
a=fmtp:97 0-11
a=ptime:20

--zte-unique-boundary-06
Content-Type: application/ISUP; base=nxv3; version=itu-t92+
Content-Disposition: signal; handling=optional


/*----------start isup message data----------
0000: 01 00 60 00 0a 03 02 07 05 01 90 c2 02 80 3d 01
0010: 1e 0a 07 03 13 04 32 23 55 87 c6 07 00 00 01 59
0020: 00 00 00 31 02 00 00 78 18 e2 82 c0 01 a1 12 02
0030: 01 00 02 01 01 30 0a 83 01 00 87 01 10 a9 02 84
0040: 00 78 21 81 80 c0 02 81 1c 1a 91 aa 06 80 01 00
0050: 82 01 00 8b 01 00 a1 0c 02 02 40 67 06 04 2b 0c
0060: 09 00 84 00 39 08 31 c0 c6 d0 3d c0 78 c4 00
IAM----Initial address message

Mandatory parameter:
Nature of connection indicators:
Satellite indicator:0 satellite circuits in the connection
Continuity check indicator:Continuity check not required
Echo control device indicator:Not Include

Forward call indicators:
International/national call indicator:national call
End-to-end method indicator: Not available
Interworking indicator: Interworking not encountered
End-to-end information indicator: Not available
ISDN user part indicator: ISDN user part used all the way
ISDN user part preference indicator: ISDN user part not required all the way
ISDN access indicator: Originating access non-ISDN
SCCP method indication: No indication
Collect Call:0

Calling party category:Ordinary subscriber
Transmission medium requirement:3.1 kHz audio

Called party number:
Nature of address: subscriber number
Internal network number indicator (INN):   *routing to internal network number not allowed
Numbering plan indicator: ISDN numbering plan
Address signal: 2#2008

Optional parameter:
Hop counter: 30
Calling party number:
Nature of address: National (significant) number
Calling party number incomplete indicator (NI):   *Complete
Numbering plan indicator: ISDN numbering plan
Address presentation restricted indicator: Presentation allowed
Screening indicators: Network provided
Address signal: 4023325578
Propagation delay counter:  0 ms
Parameter compatibility Information:
Parameter#1
Propagation delay counter:
Transit at intermediate exchange indicator:  Transit interpretation
Release call indicator:  Not release call
Send notification:  Not Send notification
Discard message indicator:  Not Discard message
Discard parameter indicator:do not discard parameter (pass on)
Pass on not possible indicator:discard parameter

*----------end isup message data----------*/

--zte-unique-boundary-06--


With Regards
M. Ramachandramoorthy
NGN-BSNL
+91- 9600070877
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sipforum.org/pipermail/discussion/attachments/20140805/15ad4bcb/attachment-0002.html>


More information about the discussion mailing list