Hi Rajesh,

> Can you please attach a sample scenario file of SIPP that interacts with
> P-CSCF directly. This would help our cause immensely.

I have attached a few SIPp scenarios that should help:
- two REGISTER scenarios (bob and alice)
- one INVITE scenario for a session set-up
- one combined REGISTER-INVITE scenario for registering and session set-up.
  
The REGISTER-INVITE scenario is the preferred one for session set-up because
it includes a mechanism to extract the Service-Route header and create the
Route header accordingly.
One minor point is still not resolved in this scenario: The route header
does not contain the P-CSCF but the P-CSCF is tolerant on this :-).

I tried to code the P-CSCF into the Route header of the scenario like
Route: <sip:pcscf.open-ims.test:4060;lr>,[$1]
but SIPp includes a colon into this string like
Route: <sip:pcscf.open-ims.test:4060;lr>,:
<sip:[EMAIL PROTECTED]:6060;lr>

Maybe anyone can resolve this issue.

Rajesh please give me feedback on the scripts. If they are o.k. I will put
them on the SIPp Wiki.

Cheers
Franz


Attachment: invite-bob-alice-server.sh
Description: Binary data

<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE scenario SYSTEM "sipp.dtd">

<scenario name="registration">
	
<send retrans="500">
<![CDATA[
REGISTER sip:open-ims.test SIP/2.0
Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
Max-Forwards: 20
From: "bob" <sip:[EMAIL PROTECTED]>;tag=[call_number]
To: "bob" <sip:[EMAIL PROTECTED]>
P-Access-Network-Info: 3GPP-UTRAN-TDD;utran-cell-id-3gpp=C359A3913B20E
Call-ID: reg///[call_id]
CSeq: 1 REGISTER
Contact: <sip:[EMAIL PROTECTED]:[local_port]>
Expires: 300
Content-Length: 0
User-Agent: Sipp v1.1-TLS, version 20061124
Authorization: Digest username="[EMAIL PROTECTED]", realm="open-ims.test"
Supported: path
]]>
</send>

<recv response="401" auth="true" rtd="true">
<action>
<ereg regexp=".*" search_in="hdr" header="Service-Route" assign_to="1" />
</action>
</recv>
	
<send retrans="500">
<![CDATA[
REGISTER sip:open-ims.test SIP/2.0
Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
Route: [$1]
Max-Forwards: 20
From: "bob" <sip:[EMAIL PROTECTED]>;tag=[call_number]
To: "bob" <sip:[EMAIL PROTECTED]>
P-Access-Network-Info: 3GPP-UTRAN-TDD;utran-cell-id-3gpp=C359A3913B20E
Call-ID: reg///[call_id]
CSeq: 1 REGISTER
Contact: <sip:[EMAIL PROTECTED]:[local_port]>
Expires: 300
Content-Length: 0
User-Agent: Sipp v1.1-TLS, version 20061124
[authentication [EMAIL PROTECTED] password=bob]
Supported: path
]]>
</send>
	
<recv response="200">
</recv>

<ResponseTimeRepartition value="10, 20"/>
<CallLengthRepartition value="10"/>
	
</scenario>

Attachment: register-bob.sh
Description: Binary data

<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE scenario SYSTEM "sipp.dtd">

<scenario name="registration">
	
<send retrans="500">
<![CDATA[
REGISTER sip:open-ims.test SIP/2.0
Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
Max-Forwards: 20
From: "alice" <sip:[EMAIL PROTECTED]>;tag=[call_number]
To: "alice" <sip:[EMAIL PROTECTED]>
P-Access-Network-Info: 3GPP-UTRAN-TDD;utran-cell-id-3gpp=C359A3913B20E
Call-ID: reg///[call_id]
CSeq: 1 REGISTER
Contact: <sip:[EMAIL PROTECTED]:[local_port]>
Expires: 300
Content-Length: 0
User-Agent: Sipp v1.1-TLS, version 20061124
Authorization: Digest username="[EMAIL PROTECTED]", realm="open-ims.test"
Supported: path
]]>
</send>

<recv response="401" auth="true" rtd="true">
<action>
<ereg regexp=".*" search_in="hdr" header="Service-Route" assign_to="1" />
</action>
</recv>
	
<send retrans="500">
<![CDATA[
REGISTER sip:open-ims.test SIP/2.0
Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
Route: [$1]
Max-Forwards: 20
From: "alice" <sip:[EMAIL PROTECTED]>;tag=[call_number]
To: "alice" <sip:[EMAIL PROTECTED]>
P-Access-Network-Info: 3GPP-UTRAN-TDD;utran-cell-id-3gpp=C359A3913B20E
Call-ID: reg///[call_id]
CSeq: 1 REGISTER
Contact: <sip:[EMAIL PROTECTED]:[local_port]>
Expires: 300
Content-Length: 0
User-Agent: Sipp v1.1-TLS, version 20061124
[authentication [EMAIL PROTECTED] password=alice]
Supported: path
]]>
</send>
	
<recv response="200">
</recv>

<ResponseTimeRepartition value="10, 20"/>
<CallLengthRepartition value="10"/>
	
</scenario>

Attachment: register-alice.sh
Description: Binary data

<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE scenario SYSTEM "sipp.dtd">


<scenario name="registration and simple IMS session setup, client side">

<send retrans="500">
<![CDATA[
REGISTER sip:open-ims.test SIP/2.0
Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
Max-Forwards: 20
From: "bob" <sip:[EMAIL PROTECTED]>;tag=[call_number]
To: "bob" <sip:[EMAIL PROTECTED]>
P-Access-Network-Info: 3GPP-UTRAN-TDD;utran-cell-id-3gpp=C359A3913B20E
Call-ID: reg///[call_id]
CSeq: 1 REGISTER
Contact: <sip:[EMAIL PROTECTED]:[local_port]>
Expires: 300
Content-Length: 0
User-Agent: Sipp v1.1-TLS, version 20061124
Authorization: Digest username="[EMAIL PROTECTED]", realm="open-ims.test"
Supported: path
]]>
</send>

<recv response="401" auth="true">
</recv>
	
<send retrans="500">
<![CDATA[
REGISTER sip:open-ims.test SIP/2.0
Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
Route: [$1]
Max-Forwards: 20
From: "bob" <sip:[EMAIL PROTECTED]>;tag=[call_number]
To: "bob" <sip:[EMAIL PROTECTED]>
P-Access-Network-Info: 3GPP-UTRAN-TDD;utran-cell-id-3gpp=C359A3913B20E
Call-ID: reg///[call_id]
CSeq: 1 REGISTER
Contact: <sip:[EMAIL PROTECTED]:[local_port]>
Expires: 300
Content-Length: 0
User-Agent: Sipp v1.1-TLS, version 20061124
[authentication [EMAIL PROTECTED] password=bob]
Supported: path
]]>
</send>

<recv response="200">
<action>
<ereg regexp=".*" search_in="hdr" header="Service-Route" assign_to="1" />
</action>
</recv>
	
<pause milliseconds="5000" crlf="true" />

<send retrans="500">
<![CDATA[
INVITE sip:[EMAIL PROTECTED] SIP/2.0
Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
Max-Forwards: 20
Route: <sip:pcscf.open-ims.test:4060;lr>,[$1]
P-Preferred-Identity: <sip:[EMAIL PROTECTED]>
Privacy: none
P-Access-Network-Info: 3GPP-UTRAN-TDD;utran-cell-id-3gpp=C359A3913B20E
From: <sip:[EMAIL PROTECTED]>;tag=[call_number]
To: <[EMAIL PROTECTED]>
Call-ID: call///[call_id]
CSeq: 10 INVITE
Supported: 100rel
Contact: <sip:[EMAIL PROTECTED]:[local_port]>
User-Agent: Sipp v1.1-TLS, version 20061124
Allow: ACK, BYE, CANCEL, INVITE, REFER, OPTIONS, INFO, REGISTER, NOTIFY, UPDATE, SUBSCRIBE, PRACK 
Content-Type: application/sdp
Content-Length: [len]

v=0
o=user1 53655765 2353687637 IN IP4 [local_ip]
s=-
c=IN IP4 [local_ip]
t=0 0
m=audio 30000 RTP/AVP 0 8
a=rtpmap:0 PCMU/8000
a=sendrecv
]]>
</send>

<recv response="100" optional="true">
</recv>

<recv response="180" optional="true">
</recv>

<recv response="403" optional="true" next="1">
</recv>

<recv response="404" optional="true" next="1">
</recv>

<recv response="408" optional="true" next="1">
</recv>

<recv response="200" rrs="true">
</recv>

<send crlf="true">
<![CDATA[
ACK [next_url] SIP/2.0
[last_Via:]
Max-Forwards: 20
[routes:]
From: <sip:[EMAIL PROTECTED]>;tag=[call_number]
[last_To:]
Call-ID: call///[call_id]
CSeq: 10 ACK
Content-Length: 0
]]>
</send>

<pause milliseconds="5000" crlf="true" />

<send retrans="500">
<![CDATA[
BYE sip:[next_url] SIP/2.0
[last_Via:]
Max-Forwards: 20
[routes:]
From: <sip:[EMAIL PROTECTED]>;tag=[call_number]
[last_To:]
Call-ID: call///[call_id]
CSeq: 11 BYE
Contact: <sip:[EMAIL PROTECTED]:[local_port]>
Content-Length: 0
]]>
</send>

<recv response="200" crlf="true" next="2">
</recv>

<label id="1"/>

<send crlf="true">
<![CDATA[
ACK sip:[EMAIL PROTECTED] SIP/2.0
[last_Via:]
Max-Forwards: 20
From: <sip:[EMAIL PROTECTED]>;tag=[call_number]
[last_To:]
Call-ID: call///[call_id]
CSeq: 10 ACK
Content-Length: 0
]]>
</send>

<label id="2"/>

<!-- definition of the response time repartition table (unit is ms)   -->
<ResponseTimeRepartition value="10, 20"/>
	
<!-- definition of the call length repartition table (unit is ms)     -->
<CallLengthRepartition value="10"/>
	
</scenario>

Attachment: reg-invite-bob-alice-client.sh
Description: Binary data

<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE scenario SYSTEM "sipp.dtd">


<scenario name="simple IMS session setup, server-side">

<recv request="INVITE">
</recv>

<send>
<![CDATA[
SIP/2.0 180 Ringing
[last_Via:]
[last_Record-Route:]
[last_From:]
[last_To:];tag=[call_number]
[last_Call-ID:]
[last_CSeq:]
Contact: <sip:[EMAIL PROTECTED]:[local_port]>
Content-Length: 0
]]>
</send>

<pause milliseconds="2000"/>

<send retrans="500">
<![CDATA[
SIP/2.0 200 OK
[last_Via:]
[last_Record-Route:]
[last_From:]
[last_To:];tag=[call_number]
[last_Call-ID:]
[last_CSeq:]
Contact: <sip:[EMAIL PROTECTED]:[local_port]>
Allow: INVITE,REGISTER,ACK,BYE,INFO,REFER,NOTIFY,SUBSCRIBE,MESSAGE,CANCEL
Content-Type: application/sdp
Content-Length: [len]

v=0
o=- 53655765 2353687637 IN IP4 [local_ip]
s=-
c=IN IP4 [media_ip]
t=0 0
m=audio 40000 RTP/AVP 8 0 18 
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:18 G729/8000
]]>
</send>

<recv request="ACK" crlf="true">
</recv>


<recv request="BYE">
</recv>

<send>
<![CDATA[
SIP/2.0 200 OK
[last_Via:]
[last_From:]
[last_To:]
[last_Call-ID:]
[last_CSeq:]
Content-Length: 0
]]>
</send>

</scenario>
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Sipp-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sipp-users

Reply via email to