Hi,

Does the scenarios uac/uas work when uas is contacted via  a proxy ?

In my setup the uac client is contacting a remote sipp uas via a
proxy(kamailio).
This fails because the uac scenario sends the ack to the proxy rather than
the remote client. The proxy sends the ack on to it's own port 5060
(local loop)
and generates unknown user as a spam control measure.

Should I  change the uac to send to the uas port directly or is the
proxy misbehaving?

Well I did pick up the the Contact address via next_url and used the
setdest to set remote_ip
and that worked for the subsequent ACK, but for the following BYE,
remote_ip is again set to the proxy without intervening messages.

cheers
  Olav


  <recv response="200" rtd="true" crlf="true" rrs="true">

  </recv>
    <!-- Set the response address to the received OK rather than the
proxy in the INVITE -->
    <nop>
      <action>
        <assignstr assign_to="url" value="[next_url]" />
        <ereg
regexp="sip:.*@([0-9A-Za-z\.]+):([0-9]+);transport=([A-Z]+)"
search_in="var" check_it="true" assign_to="dummy,host,port,transport"
variable="url" />
        <setdest host="[$host]" port="[$port]" protocol="[$transport]" />
      </action>
    </nop>
<Reference variables="dummy" />


  <!-- 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:[servi...@[remote_ip]:[remote_port] SIP/2.0
       Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
      From: sipp
<sip:si...@[local_ip]:[local_port]>;tag=[pid]SIPpTag09[call_number]
      To:  <sip:[servi...@[remote_ip]:[remote_port]>[peer_tag_param]
      Call-ID: [call_id]
      CSeq: 1 ACK
      Contact: sip:si...@[local_ip]:[local_port]
      Max-Forwards: 70
      Subject: Performance Test
      Content-Length: 0

    ]]>
  </send>


  <!-- Play a pre-recorded PCAP file (RTP stream)                       -->
  <nop>
    <action>
     <exec command="/local/net-status/sipp/bin/tcpdump-vent 15 -i eth0
-q -s 0 -w rtp_[remote_ip]_[pid]_[call_number].pcap src host [remote_ip]
and dst port [media_port]"/>
     <exec play_pcap_audio="/local/net-status/sipp/pcap/g711a.pcap"/>
    </action>
  </nop>

  <!-- Pause 8 seconds, which is approximately the duration of the      -->
  <!-- PCAP file                                                        -->
  <pause milliseconds="8000"/>

  <!-- The 'crlf' option inserts a blank line in the statistics report. -->
  <send retrans="500">
    <![CDATA[

      BYE sip:[servi...@[remote_ip]:[remote_port] SIP/2.0
      Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
      From: sipp
<sip:si...@[local_ip]:[local_port]>;tag=[pid]SIPpTag09[call_number]
      To: sut <sip:[servi...@[remote_ip]:[remote_port]>[peer_tag_param]
      Call-ID: [call_id]
      CSeq: 2 BYE
      Contact: sip:s...@[local_ip]:[local_port]
      Max-Forwards: 70
      Subject: Performance Test
      Content-Length: 0

    ]]>
  </send>

------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Sipp-users mailing list
Sipp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sipp-users

Reply via email to