Hi,
 
 
Here is a more detailed explanation of the exact problem I am facing:
 
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE scenario SYSTEM "sipp.dtd">
<scenario name=" UAS responder">
 
  <recv request="INVITE" crlf="true">
 <action>
<log message="Before sending 401"/>
</action>
  </recv>
   <send>
    <![CDATA[
SIP/2.0 401 Unauthorized
[last_Via:]
[last_From:]
[last_To:];tag=[call_number]
[last_Call-ID:]
[last_CSeq:]
Contact: <sip:[local_ip]:[local_port];transport=[transport]>
WWW-Authenticate: DIGEST realm="example.com", nonce="41d668fd",
qop="auth", algorithm=MD5
Content-Length: 0
    ]]>
</send>
<recv request="ACK" >
  <action>
<log message="Receiving ACK"/>
</action>
</recv>
<recv request="INVITE">
  <action>
<log message="Receiving second INVITE"/>
</action>
</recv>
  <send>
    <![CDATA[
      SIP/2.0 180 Ringing
      [last_Via:]
      [last_From:]
      [last_To:];tag=[call_number]
      [last_Call-ID:]
      [last_CSeq:]
      Contact: <sip:[local_ip]:[local_port];transport=[transport]>
      Content-Length: 0
    ]]>
  </send>

  <send retrans="500">
    <![CDATA[
      SIP/2.0 200 OK
      [last_Via:]
      [last_From:]
      [last_To:];tag=[call_number]
      [last_Call-ID]
      [last_CSeq:]
      Contact: <sip:[local_ip]:[local_port];transport=[transport]>
      Content-Type: application/sdp
      Content-Length: [len]
      v=0
      o=user1 53655765 2353687637 IN IP[local_ip_type] [local_ip]
      s=-
      c=IN IP[media_ip_type] [media_ip]
      t=0 0
      m=audio [auto_media_port] RTP/AVP 8
      a=rtpmap:8 PCMA/8000
    ]]>
  </send>
  <recv request="ACK"
        optional="true"
        rtd="true"
        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:]
      Contact: <sip:[local_ip]:[local_port];transport=[transport]>
      Content-Length: 0
    ]]>
  </send>
  <!-- Keep the call open for a while in case the 200 is lost to be
-->
  <!-- able to retransmit it if we receive the BYE again.
-->
  <pause milliseconds="4000"/>

  <!-- definition of the response time repartition table (unit is ms)
-->
  <ResponseTimeRepartition value="10, 20, 30, 40, 50, 100, 150, 200"/>
  <!-- definition of the call length repartition table (unit is ms)
-->
  <CallLengthRepartition value="10, 50, 100, 500, 1000, 5000, 10000"/>
</scenario>

 
The ACK and INVITE which are in bold are not receivied from the remote
end but from another intermediate device through which all the messages
flow.
The UAS seems to be receiving the ACK and INVITE too as can be seen from
the log file:
401-uas_5097_messages.log
----------------------------------------------- 2007-03-07 00:09:57
UDP message received [631] bytes :
 
INVITE sip:[EMAIL PROTECTED]:5040 SIP/2.0^M
VIA: SIP/2.0/UDP
88.88.171.112:5060;branch=z9hG4bK+6744319c7b1a245477a9a22f58905cd4+sbc+1
^M
CALL-ID: [EMAIL PROTECTED]:5060^M
<http://in.f89.mail.yahoo.com/ym/[EMAIL PROTECTED]:5060^
M> 
FROM: sipp <sip:[EMAIL PROTECTED]:5060>;tag=sbc+1+1190001+9117ceaf^M
TO: sip:[EMAIL PROTECTED]:5040^M
CSEQ: 583376383 INVITE^M
Expires: 180^M
CONTENT-LENGTH: 195^M
CONTENT-TYPE: application/sdp^M
CONTACT: sipp <sip:[EMAIL PROTECTED]:5060>^M
MAX-FORWARDS: 69^M
^M
v=0^M
o=user1 97650474041966 97650474041966 IN IP4 88.88.171.21^M
s=-^M
c=IN IP4 88.88.171.21^M
t=0 0^M
m=audio 16386 RTP/AVP 0 96^M
a=rtpmap:0 PCMU/8000^M
a=rtpmap:96 telephone-event/8000^M
a=ptime:10^M
----------------------------------------------- 2007-03-07 00:09:57
UDP message sent:
SIP/2.0 401 Unauthorized^M
VIA: SIP/2.0/UDP
88.88.171.112:5060;branch=z9hG4bK+6744319c7b1a245477a9a22f58905cd4+sbc+1
^M
FROM: sipp <sip:[EMAIL PROTECTED]:5060>;tag=sbc+1+1190001+9117ceaf^M
TO: sip:[EMAIL PROTECTED]:5040;tag=1^M
CALL-ID: [EMAIL PROTECTED]:5060^M
<http://in.f89.mail.yahoo.com/ym/[EMAIL PROTECTED]:5060^
M> 
CSEQ: 583376383 INVITE^M
Contact: <sip:10.10.200.106:5040;transport=UDP>^M
WWW-Authenticate: DIGEST realm="example.com", nonce="41d668fd",
qop="auth", algorithm=MD5^M
Content-Length: 0^M
^M
----------------------------------------------- 2007-03-07 00:09:57
UDP message received [437] bytes :
ACK sip:[EMAIL PROTECTED]:5040 SIP/2.0^M
VIA: SIP/2.0/UDP
88.88.171.112:5060;branch=z9hG4bK+6744319c7b1a245477a9a22f58905cd4+sbc+1
^M
CALL-ID: [EMAIL PROTECTED]:5060^M
<http://in.f89.mail.yahoo.com/ym/[EMAIL PROTECTED]:5060^
M> 
FROM: sipp <sip:[EMAIL PROTECTED]:5060>;tag=sbc+1+1190001+9117ceaf^M
TO: sip:[EMAIL PROTECTED]:5040;tag=1^M
CSEQ: 583376383    ACK^M
Expires: 180^M
CONTENT-LENGTH: 0^M
CONTENT-TYPE: application/sdp^M
CONTACT: sipp <sip:[EMAIL PROTECTED]:5060>^M
MAX-FORWARDS: 69^M
^M
----------------------------------------------- 2007-03-07 00:09:57
UDP message received [851] bytes :
INVITE sip:[EMAIL PROTECTED]:5040 SIP/2.0^M
VIA: SIP/2.0/UDP
88.88.171.112:5060;branch=z9hG4bK+f90975319231f773bc567a9d6026cd52+sbc+1
^M
CALL-ID: [EMAIL PROTECTED]:5060^M
<http://in.f89.mail.yahoo.com/ym/[EMAIL PROTECTED]:5060^
M> 
FROM: sipp <sip:[EMAIL PROTECTED]:5060>;tag=sbc+1+11b0001+1e5529fe^M
TO: sip:[EMAIL PROTECTED]:5040^M
CSEQ: 799970482 INVITE^M
Expires: 180^M
Authorization: Digest
username="usersbc",realm="example.com",nonce="41d668fd",uri="sip:usersbc
@10.10.200.106:5040",response="eb97500c8457dfc2261c8624f6241deb",algorit
hm=MD5,cnonce="2909442335",qop=auth,nc=00000001^M
CONTENT-LENGTH: 195^M
CONTENT-TYPE: application/sdp^M
CONTACT: sipp <sip:[EMAIL PROTECTED]:5060>^M
MAX-FORWARDS: 69^M
^M
v=0^M
o=user1 97650474041966 97650474041966 IN IP4 88.88.171.21^M
s=-^M
c=IN IP4 88.88.171.21^M
t=0 0^M
m=audio 16386 RTP/AVP 0 96^M
a=rtpmap:0 PCMU/8000^M
a=rtpmap:96 telephone-event/8000^M
a=ptime:10^M
Discarded message for new calls while quitting
----------------------------------------------- 2007-03-07 00:09:57
UDP message received [851] bytes :
INVITE sip:[EMAIL PROTECTED]:5040 SIP/2.0^M
VIA: SIP/2.0/UDP
88.88.171.112:5060;branch=z9hG4bK+f90975319231f773bc567a9d6026cd52+sbc+1
^M
CALL-ID: [EMAIL PROTECTED]:5060^M
<http://in.f89.mail.yahoo.com/ym/[EMAIL PROTECTED]:5060^
M> 
FROM: sipp <sip:[EMAIL PROTECTED]:5060>;tag=sbc+1+11b0001+1e5529fe^M
TO: sip:[EMAIL PROTECTED]:5040^M
CSEQ: 799970482 INVITE^M
Expires: 180^M
Authorization: Digest
username="usersbc",realm="example.com",nonce="41d668fd",uri="sip:usersbc
@10.10.200.106:5040",response="eb97500c8457dfc2261c8624f6241deb",algorit
hm=MD5,cnonce="2909442335",qop=auth,nc=00000001^M
CONTENT-LENGTH: 195^M
CONTENT-TYPE: application/sdp^M
CONTACT: sipp <sip:[EMAIL PROTECTED]:5060>^M
MAX-FORWARDS: 69^M
^M
v=0^M
o=user1 97650474041966 97650474041966 IN IP4 88.88.171.21^M
s=-^M
c=IN IP4 88.88.171.21^M
t=0 0^M
m=audio 16386 RTP/AVP 0 96^M
a=rtpmap:0 PCMU/8000^M
a=rtpmap:96 telephone-event/8000^M
a=ptime:10^M
Discarded message for new calls while quitting
----------------------------------------------- 2007-03-07 00:09:58
UDP message received [851] bytes :
INVITE sip:[EMAIL PROTECTED]:5040 SIP/2.0^M
VIA: SIP/2.0/UDP
88.88.171.112:5060;branch=z9hG4bK+f90975319231f773bc567a9d6026cd52+sbc+1
^M
CALL-ID: [EMAIL PROTECTED]:5060^M
<http://in.f89.mail.yahoo.com/ym/[EMAIL PROTECTED]:5060^
M> 
FROM: sipp <sip:[EMAIL PROTECTED]:5060>;tag=sbc+1+11b0001+1e5529fe^M
TO: sip:[EMAIL PROTECTED]:5040^M
CSEQ: 799970482 INVITE^M
Expires: 180^M
Authorization: Digest
username="usersbc",realm="example.com",nonce="41d668fd",uri="sip:usersbc
@10.10.200.106:5040",response="eb97500c8457dfc2261c8624f6241deb",algorit
hm=MD5,cnonce="2909442335",qop=auth,nc=00000001^M
CONTENT-LENGTH: 195^M
CONTENT-TYPE: application/sdp^M
CONTACT: sipp <sip:[EMAIL PROTECTED]:5060>^M
MAX-FORWARDS: 69^M
^M
v=0^M
o=user1 97650474041966 97650474041966 IN IP4 88.88.171.21^M
s=-^M
c=IN IP4 88.88.171.21^M
t=0 0^M
m=audio 16386 RTP/AVP 0 96^M
a=rtpmap:0 PCMU/8000^M
a=rtpmap:96 telephone-event/8000^M
a=ptime:10^M
Discarded message for new calls while quitting
----------------------------------------------- 2007-03-07 00:10:00
UDP message received [851] bytes :
INVITE sip:[EMAIL PROTECTED]:5040 SIP/2.0^M
VIA: SIP/2.0/UDP
88.88.171.112:5060;branch=z9hG4bK+f90975319231f773bc567a9d6026cd52+sbc+1
^M
CALL-ID: [EMAIL PROTECTED]:5060^M
<http://in.f89.mail.yahoo.com/ym/[EMAIL PROTECTED]:5060^
M> 
FROM: sipp <sip:[EMAIL PROTECTED]:5060>;tag=sbc+1+11b0001+1e5529fe^M
TO: sip:[EMAIL PROTECTED]:5040^M
CSEQ: 799970482 INVITE^M
Expires: 180^M
Authorization: Digest
username="usersbc",realm="example.com",nonce="41d668fd",uri="sip:usersbc
@10.10.200.106:5040",response="eb97500c8457dfc2261c8624f6241deb",algorit
hm=MD5,cnonce="2909442335",qop=auth,nc=00000001^M
CONTENT-LENGTH: 195^M
CONTENT-TYPE: application/sdp^M
CONTACT: sipp <sip:[EMAIL PROTECTED]:5060>^M
MAX-FORWARDS: 69^M
^M
v=0^M
o=user1 97650474041966 97650474041966 IN IP4 88.88.171.21^M
s=-^M
c=IN IP4 88.88.171.21^M
t=0 0^M
m=audio 16386 RTP/AVP 0 96^M
a=rtpmap:0 PCMU/8000^M
a=rtpmap:96 telephone-event/8000^M
a=ptime:10^M
Discarded message for new calls while quitting
----------------------------------------------- 2007-03-07 00:10:05
UDP message received [851] bytes :
INVITE sip:[EMAIL PROTECTED]:5040 SIP/2.0^M
VIA: SIP/2.0/UDP
88.88.171.112:5060;branch=z9hG4bK+f90975319231f773bc567a9d6026cd52+sbc+1
^M
CALL-ID: [EMAIL PROTECTED]:5060^M
<http://in.f89.mail.yahoo.com/ym/[EMAIL PROTECTED]:5060^
M> 
FROM: sipp <sip:[EMAIL PROTECTED]:5060>;tag=sbc+1+11b0001+1e5529fe^M
TO: sip:[EMAIL PROTECTED]:5040^M
CSEQ: 799970482 INVITE^M
Expires: 180^M
Authorization: Digest
username="usersbc",realm="example.com",nonce="41d668fd",uri="sip:usersbc
@10.10.200.106:5040",response="eb97500c8457dfc2261c8624f6241deb",algorit
hm=MD5,cnonce="2909442335",qop=auth,nc=00000001^M
CONTENT-LENGTH: 195^M
CONTENT-TYPE: application/sdp^M
CONTACT: sipp <sip:[EMAIL PROTECTED]:5060>^M
MAX-FORWARDS: 69^M
^M
v=0^M
o=user1 97650474041966 97650474041966 IN IP4 88.88.171.21^M
s=-^M
c=IN IP4 88.88.171.21^M
t=0 0^M
m=audio 16386 RTP/AVP 0 96^M
a=rtpmap:0 PCMU/8000^M
a=rtpmap:96 telephone-event/8000^M
a=ptime:10^M
Discarded message for new calls while quitting
----------------------------------------------- 2007-03-07 00:10:13
UDP message received [851] bytes :
INVITE sip:[EMAIL PROTECTED]:5040 SIP/2.0^M
VIA: SIP/2.0/UDP
88.88.171.112:5060;branch=z9hG4bK+f90975319231f773bc567a9d6026cd52+sbc+1
^M
CALL-ID: [EMAIL PROTECTED]:5060^M
<http://in.f89.mail.yahoo.com/ym/[EMAIL PROTECTED]:5060^
M> 
FROM: sipp <sip:[EMAIL PROTECTED]:5060>;tag=sbc+1+11b0001+1e5529fe^M
TO: sip:[EMAIL PROTECTED]:5040^M
CSEQ: 799970482 INVITE^M
Expires: 180^M
Authorization: Digest
username="usersbc",realm="example.com",nonce="41d668fd",uri="sip:usersbc
@10.10.200.106:5040",response="eb97500c8457dfc2261c8624f6241deb",algorit
hm=MD5,cnonce="2909442335",qop=auth,nc=00000001^M
CONTENT-LENGTH: 195^M
CONTENT-TYPE: application/sdp^M
CONTACT: sipp <sip:[EMAIL PROTECTED]:5060>^M
MAX-FORWARDS: 69^M
^M
v=0^M
o=user1 97650474041966 97650474041966 IN IP4 88.88.171.21^M
s=-^M
c=IN IP4 88.88.171.21^M
t=0 0^M
m=audio 16386 RTP/AVP 0 96^M
a=rtpmap:0 PCMU/8000^M
a=rtpmap:96 telephone-event/8000^M
a=ptime:10^M
Discarded message for new calls while quitting
----------------------------------------------- 2007-03-07 00:10:30
UDP message received [851] bytes :
INVITE sip:[EMAIL PROTECTED]:5040 SIP/2.0^M
VIA: SIP/2.0/UDP
88.88.171.112:5060;branch=z9hG4bK+f90975319231f773bc567a9d6026cd52+sbc+1
^M
CALL-ID: [EMAIL PROTECTED]:5060^M
<http://in.f89.mail.yahoo.com/ym/[EMAIL PROTECTED]:5060^
M> 
FROM: sipp <sip:[EMAIL PROTECTED]:5060>;tag=sbc+1+11b0001+1e5529fe^M
TO: sip:[EMAIL PROTECTED]:5040^M
CSEQ: 799970482 INVITE^M
Expires: 180^M
Authorization: Digest
username="usersbc",realm="example.com",nonce="41d668fd",uri="sip:usersbc
@10.10.200.106:5040",response="eb97500c8457dfc2261c8624f6241deb",algorit
hm=MD5,cnonce="2909442335",qop=auth,nc=00000001^M
CONTENT-LENGTH: 195^M
CONTENT-TYPE: application/sdp^M
CONTACT: sipp <sip:[EMAIL PROTECTED]:5060>^M
MAX-FORWARDS: 69^M
^M
v=0^M
o=user1 97650474041966 97650474041966 IN IP4 88.88.171.21^M
s=-^M
c=IN IP4 88.88.171.21^M
t=0 0^M
m=audio 16386 RTP/AVP 0 96^M
a=rtpmap:0 PCMU/8000^M
a=rtpmap:96 telephone-event/8000^M
a=ptime:10^M
Discarded message for new calls while quitting

However, the action command I had included under <recv INVITE> for the
second INVITE generated by the intermediate device has not been executed
as can be seen below:
401-uas_5097_logs.log:
Before sending 401
Receiving ACK

 
However the UAS process continues to run until killed.So what is
happening?
 
The UAC file:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE scenario SYSTEM "sipp.dtd">
<scenario name="UAC">
  <send retrans="500">
    <![CDATA[
      INVITE sip:[EMAIL PROTECTED]:[remote_port] SIP/2.0
      Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
      From: sipp <sip:[EMAIL PROTECTED]:[local_port]>;tag=[call_number]
      To: sut <sip:[EMAIL PROTECTED]:[remote_port]>
      Call-ID: [call_id]
      CSeq: 1 INVITE
      Contact: sip:[EMAIL PROTECTED]:[local_port]
      Max-Forwards: 70
      Subject: Performance Test
      Content-Type: application/sdp
      Content-Length: [len]
      v=0
      o=user1 53655765 2353687637 IN IP[local_ip_type] [local_ip]
      s=-
      c=IN IP[media_ip_type] [media_ip]
      t=0 0
      m=audio [media_port] RTP/AVP 0
      a=rtpmap:0 PCMU/8000
    ]]>
  </send>
  <recv response="100" >
  </recv>
  <pause milliseconds="300"/>
  <recv response="180" >
  </recv>
  <recv response="200" rtd="true">
  </recv>
  <!-- Packet lost can be simulated in any send/recv message by
-->
  <!-- by adding the 'lost = "10"'. Value can be [1-100] percent.
-->
  <send>
    <![CDATA[
      ACK sip:[EMAIL PROTECTED]:[remote_port] SIP/2.0
      Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
      From: sipp <sip:[EMAIL PROTECTED]:[local_port]>;tag=[call_number]
      To: sut <sip:[EMAIL PROTECTED]:[remote_port]>[peer_tag_param]
      Call-ID: [call_id]
      CSeq: 1 ACK
      Contact: sip:[EMAIL PROTECTED]:[local_port]
      Max-Forwards: 70
      Subject: Performance Test
      Content-Length: 0
    ]]>
  </send>
  <!-- This delay can be customized by the -d command-line option
-->
  <!-- or by adding a 'milliseconds = "value"' option here.
-->
  <pause milliseconds="15000" />
  <!-- The 'crlf' option inserts a blank line in the statistics report.
-->
  <send retrans="500">
    <![CDATA[
      BYE sip:[EMAIL PROTECTED]:[remote_port] SIP/2.0
      Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
      From: sipp <sip:[EMAIL PROTECTED]:[local_port]>;tag=[call_number]
      To: sut <sip:[EMAIL PROTECTED]:[remote_port]>[peer_tag_param]
      Call-ID: [call_id]
      CSeq: 2 BYE
      Contact: sip:[EMAIL PROTECTED]:[local_port]
      Max-Forwards: 70
      Subject: Performance Test
      Content-Length: 0
    ]]>
  </send>
  <recv response="200" crlf="true">
  </recv>
  <!-- definition of the response time repartition table (unit is ms)
-->
  <ResponseTimeRepartition value="10, 20, 30, 40, 50, 100, 150, 200"/>
  <!-- definition of the call length repartition table (unit is ms)
-->
  <CallLengthRepartition value="10, 50, 100, 500, 1000, 5000, 10000"/>
</scenario>

 
Thanks,
Monica.
-------------------------------------------------------------------------
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
Sipp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sipp-users

Reply via email to