You can set "hardcoded" branch values.

For example: Invite's Via-Branch= z9hG4bK-[call_number].

Since CANCEL has the same Via-branch as INVITE set it to
z9hG4bK-[call_number] value too.

This way for each INVITE sent you will have its own uniqe Via-branch and
every CANCEL will have Via-branch correcponding to INVITE being canceled

 

Regards, 

Evgeny Miloslavsky

Systest Engineer

Juniper Networks Solutions Israel LTD.

Office: 972-9-9717320/2355

 

 

-----Original Message-----
From: [email protected]
[mailto:[email protected]] 
Sent: Thursday, June 18, 2009 12:41 PM
To: [email protected]
Subject: [Sipp-users] suppressing the auto-creation of "branch"

 

Hi all,

how can I suppress the auto-creation of SIPp var "branch"?

(btw. param -nd is used)

 

In my testcase a INVITE should be canceled after a short pause:

 

      INVITE sip:[servi...@[remote_ip]:[remote_port] SIP/2.0

      Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]

.....

      CANCEL sip:[servi...@[remote_ip]:[remote_port] SIP/2.0

      Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]

 

That is still the 1st transaction but SIPp sends a CANCEL request whith
a new branch!

To fix the problem:

I grab the last branch value within the 180 response and use it for the
next CANCEL:

 

    <action>

      <ereg regexp="branch=(.*);*" search_in="hdr" header="Via"
assign_to="6,6"/>

    </action>

 

      CANCEL .... branch=[$6]

 

 

Thanks,

 

      Wolfgang

 

------------------------------------------------------------------------
------

Crystal Reports - New Free Runtime and 30 Day Trial

Check out the new simplified licensing option that enables unlimited

royalty-free distribution of the report engine for externally facing 

server and web deployment.

http://p.sf.net/sfu/businessobjects

_______________________________________________

Sipp-users mailing list

[email protected]

https://lists.sourceforge.net/lists/listinfo/sipp-users

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Sipp-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sipp-users

Reply via email to