pjsip changes SIP URI of from and to header when response to INVITE

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

   pjsip strip ports of SIP URI of From and To headers when response to
imcoming INVITE.And if pjsip make outgoing call, it also will strip ports
when create INVITE request with from, to params with port.

  But RFC 3261 says:

8.2.6.2 Headers and Tags

   The From field of the response MUST equal the From header field of
   the request.

reagrds,
Gang


-- INVITE sent by SIPP ----

INVITE sip:12310000 at 192.168.0.125:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.0.233:5061;branch=z9hG4bK-6481-1-0
From: sipp <sip:sipp@192.168.0.233 <sip%3Asipp at 192.168.0.233>:5061>;tag=1
To: sut <sip:12310000 at 192.168.0.125 <sip%3A12310000 at 192.168.0.125>:5060>
Call-ID: 1-6481 at 192.168.0.233
CSeq: 1 INVITE
Contact: sip:sipp at 192.168.0.233:5061
Max-Forwards: 70
Allow: INVITE, ACK, OPTIONS, CANCEL, BYE, SUBSCRIBE, PRACK, NOTIFY, MESSAGE,
INFO, REFER, UPDATE
Content-Type: application/sdp
Content-Length:   200
v=0
o=user1 53655765 2353687637 IN IP4 192.168.0.233
s=-
c=IN IP4 192.168.0.233
t=0 0
m=audio 6001 RTP/AVP 18 0 101
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=rtpmap:18 G729/8000

--- PJSIP response -----
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 192.168.0.233:5061;received=192.168.0.233
;branch=z9hG4bK-6481-1-0
Call-ID: 1-6481 at 192.168.0.233
From: "sipp" <sip:sipp@192.168.0.233 <sip%3Asipp at 192.168.0.233>>;tag=1
To: "sut" <sip:12310000 at 192.168.0.125 <sip%3A12310000 at 192.168.0.125>>
CSeq: 1 INVITE
Content-Length:  0
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20080828/da09dd0b/attachment.html 


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux