SIPp is used mainly for testing and so most things can be set by the user. It does not try internally to obey the RFC - we often want to set things differently. It is up to the user to produce scripts that obey the RFC (or not).
The port setting is on the command line and there is internal logic to follow the Via rules for responses. I'm not aware of any logic to follow Contact for subsequent commands - we have some local mods to allow you to override the port but that would not do what you want (and only works for UDP). K L's suggestion will probably work if you are testing via a Proxy because the IP and port on the Proxy is unlikely to change. Also there are some sections of 3261 that suggest that implementations should be prepared to accept messages on any reasonable port. The usual way to change where the packet actually goes to is to terminate SIPP and run it again with the new destination as a command line parameter. You can use actions to store in a file anything you need from the first run (Contact, tags, Call-ID, etc.) that is not fixed. Peter Higginson Newport Networks Ltd, http://www.newport-networks.com/ -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of K L Sent: 17 August 2007 10:27 To: Morjolic Eugen Cc: [email protected] Subject: Re: [Sipp-users] Instruct SIPP to send BYE to contact IP On 8/14/07, Morjolic Eugen <[EMAIL PROTECTED]> wrote: > It is possible to instruct SIPP to send BYE to IP from Contact header of > 200 OK response for INVITE? > At this moment he is sending BYE to remote_ip from command line > This is not rfc 3261 compliant > Corect me if I am wrong > Thanks in advance > What you can try to do is to retrieve the Contact URI using a regular expression and store it in a call variable. <recv request="INVITE"> <action> <ereg regexp="sip:.*" search_in="hdr" header="Contact:" check_it="true" assign_to="1" /> </recv> And in the BYE, use [$1] as the request URI. PS: I've not tested, so i'm not sure it works ... > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Sipp-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/sipp-users > ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Sipp-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sipp-users --------------------------------------------------------------------------------------------- This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and delete this e-mail. Any unauthorized copying, disclosure or distribution of the contents in this e-mail is strictly forbidden. --------------------------------------------------------------------------------------------- Newport Networks Limited is registered in England. Registration number 4067591. Registered office: 6 St. Andrew Street, London EC4A 3LX --------------------------------------------------------------------------------------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Sipp-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sipp-users
