Hello,

I am facing a problem with the [remote_ip] keyword when using sipp as a sipp
caller client.
I have tree sip server machines(machine A,B and C).
Machine A is a Load Balancing machine that distributes the sip messages to B
or C.
I set up the remote_ip has beeing the machine A.
Sipp send the sip message Invite to machine A and the sip messages
100,180 ,486 or 200 are received from machine A.
Then i put the sipp client on hold, but the Invite message to sipp cames
from machine B, so the ack must go to machine B, but because
i defined that the [remote_ip] is machine A sipp sends the request to
machine A when sipp should send it to B.
Is there a way to change the [remote_ ip] on run time on the scenario file?
In the atachment goes my scenario  file.
In this url http://www.tech-invite.com/Ti-sip-service-1.html is a example of
what i am trying to acomplish.

Regards
Ricardo Fernandes
<?xml version="1.0" encoding="ISO-8859-1" ?> 
<scenario name="Basic Sipstone UAC">
<send><![CDATA[
    
      INVITE sip:[EMAIL PROTECTED]:[remote_port] SIP/2.0
      Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
      From: 9000 <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=-
      t=0 0
      c=IN IP[media_ip_type] [media_ip]
      m=audio [media_port] RTP/AVP 0
      a=rtpmap:0 PCMU/8000


    ]]>
</send>
<recv response="100" optional="true"></recv>
<recv response="180" optional="true"></recv>
<recv response="486" optional="true">
<action>
    <exec int_cmd="stop_now"/>
</action>
</recv>
<recv response="200"></recv>
<send><![CDATA[

      ACK sip:[EMAIL PROTECTED]:[remote_port] SIP/2.0
      Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
      From: 9000 <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>
<recv request="INVITE" rrs="true"/> 
<send><![CDATA[
      SIP/2.0 200 OK
      Via: SIP/2.0/UDP 172.21.29.2:5060;branch=[branch]
      Record-[routes]
      Contact: <sip:[EMAIL PROTECTED]:[local_port]>
      From: 9000 <sip:[EMAIL PROTECTED]:[local_port]>;tag=[call_number]
      To: sut <sip:[EMAIL PROTECTED]:[remote_port]>[peer_tag_param]
      Call-ID: [call_id]
      CSeq: 1 INVITE
      Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO
      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
      a=sendrecv

    ]]>
</send>

<recv request="INVITE" rrs="true"/> 
<send retrans="500"><![CDATA[
      SIP/2.0 200 OK
      Via: SIP/2.0/[transport] [remote_ip]:[remote_port];branch=[branch]
      Contact: sip:[EMAIL PROTECTED]:[local_port]
      From: 9000 <sip:[EMAIL PROTECTED]:[local_port]>;tag=[call_number]
      To: sut <sip:[EMAIL PROTECTED]:[remote_port]>[peer_tag_param]
      Call-ID: [call_id]
      CSeq: 2 INVITE
      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>
<pause milliseconds="10000">
<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: 9000 <sip:[EMAIL PROTECTED]:[local_port]>;tag=[pid]SIPpTag00[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>
</scenario>   

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Sipp-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sipp-users

Reply via email to