Hi ,
I guess you can resolve this problem by extracting the remote servers IP+port from the contact header using regular expressions.Following lines taken from a scenario similar to this should be of help
----------------
..........
<recv response="200" start_rtd="true">
<action>
<ereg regexp="([0-9]{1,3}\.){3}[0-9]{1,3}:[0-9]*" search_in="hdr" header="Contact:" check_it="true" assign_to="1" />
</action>
</recv>
<action>
<ereg regexp="([0-9]{1,3}\.){3}[0-9]{1,3}:[0-9]*" search_in="hdr" header="Contact:" check_it="true" assign_to="1" />
</action>
</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:[$1] SIP/2.0
Via: SIP/2.0/[transport] [local_ip]:[local_port]
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>
........
.........
Here using regular expressions we are extracting the IP+port info from the Contact header in the 200 response received from proxy and assigning it to a variable $1. then we are using this variable while generating the R-URI for the ACK which means the ACK will go to different remote address.
Hope it helps
Regards
Shiv
On 9/14/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
Hello,
Is it possible with SIPP to send an ACK (and other request after) to a different
remote address and port than INVITE request?
My SIPP sends an INVITE to a proxy and the proxy forwards request to a server.
But my proxy is a stateless proxy .
So my SIPP sends INVITE to the address and the port of stateless proxy.
Stateless proxy adds via header to INVITE and forwards it to server. But no
record-route are added.
The 200/INVITE response pass to proxy.
There is no record-route in 200/INVITE response. There is only a contact with
remote address and the port of the server.
In accordance to SIP RFC, the SIPP must send ACK (and other request after)
directly to address and port set in the 200/INVITE response.
Can you answer me if SIPP is able to analyse record-route, route and contact
header in order to determinate where it must send the SIP request ?
Thanks in advance.
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Sipp-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sipp-users
------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________ Sipp-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sipp-users
