Hello,

As Charles Wrigth requested here goes a xml scenario with the setdest
action in use.
Remember that this will only work with the sipp version compiled from
the sources in the trunk.

Regards
Ricardo Fernandes


On Wed, Jul 9, 2008 at 2:01 PM, Ricardo Fernandes
<[EMAIL PROTECTED]> wrote:
> Hello Charles,
>
> Thanks for all your help, the setdest action saved the day.
>
> Regards
> Ricardo Fernandes
>
>
>
> On Tue, Jul 8, 2008 at 3:19 PM, Charles P Wright <[EMAIL PROTECTED]> wrote:
>> You will need to download and compile the subversion trunk version.
>>
>> Charles
>>
>>
>>
>>
>> "Ricardo Fernandes" <[EMAIL PROTECTED]>
>> 07/08/2008 10:13 AM
>>
>> To
>> Charles P Wright/Watson/[EMAIL PROTECTED]
>> cc
>> [email protected], [EMAIL PROTECTED]
>> Subject
>> Re: [Sipp-users] Again : Can Sipp have multiple remote_ip acting as a Sip
>> Client ?
>>
>>
>>
>>
>>
>>
>> Hello,
>>
>> I have installed the version sipp-win32-3.1.1.exe for windows and and
>> i have changed the scenario file to
>>
>> <recv request="BYE"></recv>
>> <nop>
>>       <action>
>>           <setdest host="172.21.29.2" port="5060" protocol="udp" />
>>       </action>
>> </nop>
>>
>> <send>
>>    <![CDATA[
>>
>>      SIP/2.0 200 OK
>>      [last_Via:]
>>      [last_From:]
>>      [last_To:]
>>      [last_Call-ID:]
>>      [last_CSeq:]
>>      Contact: ric<sip:[local_ip]:[local_port];transport=[transport]>
>>      Content-Length: 0
>>
>>    ]]>
>> </send>
>>
>> and an error occurs when i launch sipp
>>
>> 2008-07-08      15:01:15:370    1215525675.370099: Unknown action:
>> setdest.
>>
>> I have tried also with the unstable version sipp-win32-3.1.2(ossl)
>> with the same result, must i set a switch in the command line for this
>> to work.
>> I would apreciate all the help you can give me.
>>
>> TIA
>> Ricardo Fernandes
>>
>>
>>
>> On Tue, Jul 8, 2008 at 1:00 PM, Charles P Wright <[EMAIL PROTECTED]>
>> wrote:
>>> You can change the address things are sent to in the latest trunk using
>>> the setdest action.  Something like
>>> <setdest host="[$host]" port="[$port]" protocol="udp" />
>>>
>>> You will need to combine it with regular expressions.  In UAS mode SIPp
>>> responds to the address that sent it a message.  You can also change the
>>> SIPp source code to do something like that for UAC mode as well.
>>>
>>> Charles
>>>
>>> [EMAIL PROTECTED] wrote on 07/08/2008 07:51:30
>> AM:
>>>
>>>> Hello,
>>>>
>>>> I send this message to the forum last week, but i haven't obtain no
>>>> anwser yet.
>>>> Does anyone know if this is possible or not, i need to know as soon as
>>>> possible, i am
>>>> facing deadlines.
>>>> Just need a anwser yes or no and if yes how to do it.
>>>>
>>>> Thanks in advance
>>>> Ricardo
>>>>
>>>>
>>>> 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
>>>> [attachment "ScenarioHold.xml" deleted by Charles P
>>>> Wright/Watson/IBM]
>>>>
>>>
>> -------------------------------------------------------------------------
>>>> 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
>>>
>>>
>>
>>
>>
>
<?xml version="1.0" encoding="ISO-8859-1" ?> 
<scenario name="SetDestScenario">
<send><![CDATA[
    
      INVITE sip:[EMAIL PROTECTED]:[remote_port] SIP/2.0
      Via: SIP/2.0/[transport] [local_ip]:[local_port]
      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="487" 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]
      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>
<nop>
    <action>
	   <assign assign_to="ipDestination" value="" />
    </action>
</nop>
<recv request="BYE">
	<action>
		<ereg regexp="([0-9]{1,3}\.){3}[0-9]{1,3}" search_in="hdr" header="Via:" check_it="true" assign_to="ipDestination" />
		<log message="IpDestination: [$ipDestination]"/>
	</action>
</recv> 
<nop>
	<action>
		<setdest host="[$ipDestination]" port="5060" protocol="udp" />
	</action>	
</nop>
<send>
    <![CDATA[

      SIP/2.0 200 OK
      [last_Via:]
      [last_From:]
      [last_To:]
      [last_Call-ID:]
      [last_CSeq:]
      Contact: ric<sip:[local_ip]:[local_port];transport=[transport]>
      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