sipp icon indicating copy to clipboard operation
sipp copied to clipboard

How to put remote ip and port in external CSV file

Open michaelbrucelin opened this issue 4 years ago • 1 comments

Dears, I want to put remote ip and port in external CSV file, like

SEQUENTIAL
# TYPE;CALLERE164;CALLEEE164;CALLEESIPIP;CALLEESIPPORT
type01;caller01;callee01;ip01;5060
type01;caller02;callee02;ip02;5060
type03;caller03;callee03;ip03;5060
type04;caller04;callee04;ip04;5060

in my scenario xml,

<send retrans="500">
  <![CDATA[
    INVITE sip:[field2]@[field3]:[field4] SIP/2.0
    Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
    From: <sip:[field1]@[local_ip]:[local_port]>;tag=[pid]-[call_number]
    To: <sip:[field2]@[field3]:[field4]>
    … ...

but when start to execute:

sipp -sf myscenario.xml -inf myconfig.csv -l 100 -r 100 -rp 60000

this error is reported:

Missing remote host parameter. This scenario requires it.

Can this problem be solved? I don't want each remote host to execute a sipp independently.

michaelbrucelin avatar Mar 08 '22 07:03 michaelbrucelin

I know I'm a year late, but the key here is the setdest action. An UAC scenario indeed requires a remote host parameter, but using setdest you can override it per call, at any point of execution of the scenario for that call, even before sending the very first message. See the manual for limitations.

sindy39 avatar May 11 '23 20:05 sindy39