[SIPForum-discussion] should the INVITE be accepted or rejected?

Aizon, Stephen, VF-NZ Stephen.Aizon at vodafone.com
Thu Oct 13 21:30:40 UTC 2011


Invite will not even reach the UA as this will be rejected by Redirect Server straight away because of different domain name received…

From: discussion-bounces at sipforum.org [mailto:discussion-bounces at sipforum.org] On Behalf Of Keith Lin
Sent: 11 October 2011 9:07 p.m.
To: discussion at sipforum.org
Subject: [SIPForum-discussion] should the INVITE be accepted or rejected?

Hello everyone,

Suppose there is an UA, who has registered successfully (as seen in M1 and M2 below).
Now if there comes an INVITE request (as seen in M3 below) to the UA, what should it reply? 200 OK? or?

My opinion is the UA should reject the INVITE, because the UA was registered with the URI draytec at test.winitu.com<mailto:draytec at test.winitu.com>
The INVITE has a "to-header" of 31172759442 at 213.239.5.69<mailto:31172759442 at 213.239.5.69>
As you can see, both username part and domain/host part of the URI are different
That's why I reckon the UA should reject the INVITE......  what do you guys think?

Thank you in advance


M1 - trying to register
--------------------------------------
REGISTER sip:test.winitu.com<http://test.winitu.com> SIP/2.0
Via: SIP/2.0/UDP 10.14.0.12:5060;branch=z9hG4bK-baZ-2090457395;rport
From: 31172759442 <sip:draytec at test.winitu.com<mailto:sip%3Adraytec at test.winitu.com>>;tag=qPb-1821832709
To: <sip:draytec at test.winitu.com<mailto:sip%3Adraytec at test.winitu.com>>
Call-ID: WFZ-1501346479 at 10.14.0.12<mailto:WFZ-1501346479 at 10.14.0.12>
CSeq: 554 REGISTER
Contact: <sip:draytec at 10.14.0.12<mailto:sip%3Adraytec at 10.14.0.12>>
Authorization: Digest username="draytec", realm="test.winitu.com<http://test.winitu.com>", nonce="4e8ec82292bcbf9f47f4a24db8a35d3815f84dcc", uri="sip:test.winitu.com<http://test.winitu.com>", response="edfb37427d91f45c1a10b2776f81196b", algorithm=MD5
Max-Forwards: 15
Expires: 3600
User-Agent: DrayTek UA-1.2.3 Vigor2130
Content-Length: 0


M2 - registered successfully
--------------------------------------
SIP/2.0 200 OK
Via: SIP/2.0/UDP 10.14.0.12:5060;branch=z9hG4bK-baZ-2090457395;rport=5060;received=80.89.226.24
From: 31172759442 <sip:draytec at test.winitu.com<mailto:sip%3Adraytec at test.winitu.com>>;tag=qPb-1821832709
To: <sip:draytec at test.winitu.com<mailto:sip%3Adraytec at test.winitu.com>>;tag=2b942734826ad2dca07eef0e7632aeb1.715c
Call-ID: WFZ-1501346479 at 10.14.0.12<mailto:WFZ-1501346479 at 10.14.0.12>
CSeq: 554 REGISTER
Contact: <sip:draytec at 10.14.0.12<mailto:sip%3Adraytec at 10.14.0.12>>;expires=3600;received="sip:80.89.226.24:5060<http://80.89.226.24:5060>"
Content-Length: 0


M3 - incoming INVITE message
--------------------------------------
INVITE sip:draytec at 10.14.0.12<mailto:sip%3Adraytec at 10.14.0.12> SIP/2.0
Record-Route: <sip:213.239.5.69;lr=on;ftag=20B9158-2341;nat=yes>
Via: SIP/2.0/UDP 213.239.5.69;branch=z9hG4bKb598.4282f896.0
Via: SIP/2.0/UDP  212.4.211.245<tel:212.4.211.245>:5060;rport=65139;x-route-tag="cid:DMS-TRUNK at 212.4.211.245<mailto:cid%3ADMS-TRUNK at 212.4.211.245>";branch=z9hG4bK881C2564
From: "anonymous" <sip:anonymous at anonymous.invalid>;tag=20B9158-2341
To: <sip:31172759442 at 213.239.5.69<mailto:sip%3A31172759442 at 213.239.5.69>>
Call-ID: 257F727-EFFE11E0-8B2CF4AB-C7084FB4 at 212.4.211.245<mailto:257F727-EFFE11E0-8B2CF4AB-C7084FB4 at 212.4.211.245>
Supported: 100rel,timer,replaces
Min-SE:  1800
Allow: INVITE, OPTIONS, BYE, CANCEL, ACK, PRACK, COMET, REFER, SUBSCRIBE, NOTIFY, INFO, UPDATE, REGISTER
CSeq: 101 INVITE
Max-Forwards: 69
Contact: <sip:0654331151 at 212.4.211.245:5060<http://sip:0654331151@212.4.211.245:5060>>
Expires: 180
Allow-Events: telephone-event
Content-Type: application/sdp
Content-Length: 306
Remote-Party-ID: "anonymous" <sip:anonymous at anonymous.invalid>;party=calling;screen=yes;privacy=full
To-Hint: sip:draytec at test.winitu.com<mailto:sip%3Adraytec at test.winitu.com>
To-Number-Hint: 31172759442
From-Hint: sip:31654331151 at test.winitu.com<mailto:sip%3A31654331151 at test.winitu.com>
From-Number-Hint: sip:31654331151 at test.winitu.com<mailto:sip%3A31654331151 at test.winitu.com>

v=0
o=CiscoSystemsSIP-GW-UserAgent 3678 740 IN IP4 212.4.211.245<tel:212.4.211.245>
s=SIP Call
c=IN IP4 212.4.211.245<tel:212.4.211.245>
t=0 0
m=audio 16462 RTP/AVP 8 18 101
c=IN IP4 212.4.211.245<tel:212.4.211.245>
a=rtpmap:8 PCMA/8000
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=yes
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=direction:passive


regards,
Keith

-----------------------------------------------------------------------------------------------
Have you seen our website?.... http://www.vodafone.co.nz

Manage Your Account, check your Vodafone Mail and send web2TXT online: http://www.vodafone.co.nz/myvodafone

CAUTION: This correspondence is confidential and intended for the named recipient(s) only.
If you are not the named recipient and receive this correspondence in error, you must not copy,
distribute or take any action in reliance on it and you should delete it from your system and
notify the sender immediately.  Thank you.

Unless otherwise stated, any views or opinions expressed are solely those of the author and do
not represent those of Vodafone New Zealand Limited.

Vodafone New Zealand Limited
20 Viaduct Harbour Avenue, Private Bag 92161, Auckland 1142
Telephone + 64 9 355 2000
Facsimile + 64 9 355 2001
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sipforum.org/pipermail/discussion/attachments/20111014/7d81a60b/attachment-0002.html>


More information about the discussion mailing list