At SIP protocol, UAC and UAS roles are logical only and its role is
relevant during current transaction (e.g request-response). 

UAC is an entity sending the request and UAS is one responsing request
received. For example: in terms of real telephony, both callee and
caller are able to hang up the call (that is BYE request sent).

Since SIPp behaves according to XML scenarion you're have enough
flexibility to send requests and response from each side.  See example
attached...

 

Regards,

Evgeny Miloslavsky

Systest Engineer

Juniper Networks Solutions Israel LTD.

Office: 972-9-9717320/2355

________________________________

From: Todd Clark [mailto:[email protected]] 
Sent: Monday, August 24, 2009 9:45 AM
To: [email protected]
Subject: Re: [Sipp-users] not able to send BYE from UAS

 

Hi,

I have never got this straight in my head regarding SIPp UAC and UAS
instances.

*       Can one send SIP requests from SIPp running in UAS mode (e.g.
BYE, INVITE, PRACK etc)?

*       Can one receive SIPp requests to SIPp running in UAC mode ?

*       If so, why are there UAC and UAS SIPp modes anyway?


Any comments would be greatly appreciated.

Todd





On Sun, Aug 23, 2009 at 7:21 AM, Evgeny Miloslavsky <
[email protected]> wrote:

As far as I can see there is no empty line between <![CDATA[ and BYE
sip:[fiel...@[remote_ip]:[remote_port] [transport] SIP/2.0 and there is
no emty line between Max-Forwards: 70 and ]]>

 

 

Regards, 

Evgeny Miloslavsky

Systest Engineer

Juniper Networks Solutions Israel LTD.

Office: 972-9-9717320/2355

 

-----Original Message-----
From: Praveen Raj Swaminathan [mailto:[email protected]] 
Sent: Friday, August 21, 2009 11:58 AM
To: [email protected]
Subject: [Sipp-users] not able to send BYE from UAS

 

 

Hi all,

   We are able to send a BYE request from the UAC (sender) side. But if
we are trying to send a BYE request from the UAS (receiver) side we are
receiving 400 Bad request. 

This is the BYE message we are sending from the UAS side to the UAC
side. 

 

 

<!-- BYE message from UAS-->

<send retrans="5000">

<![CDATA[

BYE sip:[fiel...@[remote_ip]:[remote_port] [transport] SIP/2.0

CSeq: 4 BYE

Via: SIP/2.0/[transport] [local_ip]:[local_port];rport;branch=[branch]

Record-Route:
<sip:[email protected]:4060;lr>,<sip:[email protected]:6060;lr>,<sip:m...@scsc
f.domain:6060;lr>,<sip:[email protected]:4060;lr>

From: [field0] <sip:[fiel...@[field2]>;tag=[call_number]

To: [field3] <sip:[fiel...@[field2]>[peer_tag_param]

CSeq: 4 BYE

Call-ID: [call_id]

Content-Length: 0

Max-Forwards: 70

]]>

</send>

 

Thanks & Regards,

Praveen Raj Swaminathan

 

------------------------------------------------------------------------
------

Let Crystal Reports handle the reporting - Free Crystal Reports 2008
30-Day 

trial. Simplify your report design, integration and deployment - and
focus on 

what you do best, core application coding. Discover what's new with 

Crystal Reports now.  http://p.sf.net/sfu/bobj-july

_______________________________________________

Sipp-users mailing list

[email protected]

https://lists.sourceforge.net/lists/listinfo/sipp-users


------------------------------------------------------------------------
------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008
30-Day
trial. Simplify your report design, integration and deployment - and
focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Sipp-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sipp-users

 

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

<scenario name="Basic UAS responder">

  <recv request="SUBSCRIBE" crlf="true">
     <action>
        <ereg regexp="sip:[^;&gt;]+" search_in="hdr" header="Contact: " case_indep="true" assign_to="1"/>
        <ereg regexp=".*" search_in="hdr" header="From:" case_indep="true" assign_to="2"/>
        <ereg regexp=".*" search_in="hdr" header="To:" case_indep="true" assign_to="3"/>
     </action>
  </recv>

  <send>
    <![CDATA[

      SIP/2.0 200 OK
      [last_Via:]
      [last_From:]
      [last_To:];tag=xyz
      [last_Call-ID:]
      [last_CSeq:]
      [last_Event:]
      Contact: <sip:[local_ip]:[local_port];transport=[transport]>
      Expires: 600
      Content-Length: [len]

    ]]>
  </send>

  <!-- Delay the NOTIFY a bit so the capture will get the answer of UAC first and then send the NOTIFY -->
  <pause milliseconds="250"/>

  <send>
    <![CDATA[

      NOTIFY [$1] SIP/2.0
      Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
      From:[$3];tag=xyz
      To:[$2]
      [last_Call-ID:]
      CSeq: 1 NOTIFY
      Contact: sip:[local_ip]:[local_port]
      Max-Forwards: 70
      [last_Event:]
      Subscription-State: active;expires=599
      Content-Type: application/pidf+xml
      Content-Length: [len]

    ]]>
  </send>

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

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

  <recv request="SUBSCRIBE" crlf="true">
     <action>
        <ereg regexp="sip:[^;&gt;]+" search_in="hdr" header="Contact: " case_indep="true" assign_to="1"/>
        <ereg regexp=".*" search_in="hdr" header="From:" case_indep="true" assign_to="2"/>
        <ereg regexp=".*" search_in="hdr" header="To:" case_indep="true" assign_to="3"/>
     </action>
  </recv>

  <send>
    <![CDATA[

      SIP/2.0 200 OK
      [last_Via:]
      [last_From:]
      [last_To:];tag=xyz
      [last_Call-ID:]
      [last_CSeq:]
      [last_Event:]
      Contact: <sip:[local_ip]:[local_port];transport=[transport]>
      Expires: 600
      Content-Length: [len]

    ]]>
  </send>

<pause milliseconds="500"/>

  <send>
    <![CDATA[

      NOTIFY [$1] SIP/2.0
      Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
      From:[$3];tag=xyz
      To:[$2]
      [last_Call-ID:]
      CSeq: 2 NOTIFY
      Contact: sip:[local_ip]:[local_port]
      Max-Forwards: 70
      [last_Event:]
      Subscription-State: active; expires=599
      Content-Length: [len]

    ]]>
  </send>

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

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

  
  <recv request="SUBSCRIBE" crlf="true">
     <action>
        <ereg regexp="sip:[^;&gt;]+" search_in="hdr" header="Contact: " case_indep="true" assign_to="1"/>
        <ereg regexp=".*" search_in="hdr" header="From:" case_indep="true" assign_to="2"/>
        <ereg regexp=".*" search_in="hdr" header="To:" case_indep="true" assign_to="3"/>
     </action>
  </recv>

  <send>
    <![CDATA[

      SIP/2.0 200 OK
      [last_Via:]
      [last_From:]
      [last_To:];tag=xyz
      [last_Call-ID:]
      [last_CSeq:]
      [last_Event:]
      Contact: <sip:[local_ip]:[local_port];transport=[transport]>
      Expires: 0
      Content-Length: [len]

    ]]>
  </send>

<pause milliseconds="500"/>

  <send>
    <![CDATA[

      NOTIFY [$1] SIP/2.0
      Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
      From:[$3];tag=xyz
      To:[$2]
      [last_Call-ID:]
      CSeq: 3 NOTIFY
      Contact: sip:[local_ip]:[local_port]
      Max-Forwards: 70
      [last_Event:]
      Subscription-State: terminated
      Content-Length: [len]

    ]]>
  </send>

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

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

  
  
  <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>


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Sipp-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sipp-users

Reply via email to