register_users.xml 1.18 KB
Newer Older
1 2 3
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE scenario SYSTEM "sipp.dtd">

Guillaume Beraudo's avatar
Guillaume Beraudo committed
4
<scenario name="Register one user without authentication">
5

6
<Global variables="userId,domain,ua,expire">
7 8 9 10 11
  <action>
    <assign assign_to="userId" value="0" />
  </action>
</Global>

Guillaume Beraudo's avatar
Guillaume Beraudo committed
12
<nop hide="true">
13
  <action>
Guillaume Beraudo's avatar
Guillaume Beraudo committed
14 15 16
    <add assign_to="userId" value="1" /> <!-- strangely, now userId=1.000000-->
    <assignstr assign_to="luserIpPort" value="[local_ip]:[local_port]" />
    <assignstr assign_to="luserAddContact" value="sip:user[$userId]@[local_ip]:5063" />
Guillaume Beraudo's avatar
Guillaume Beraudo committed
17
    <assignstr assign_to="ruserAdd" value="sip:user[$userId]@[$domain]" />
18 19 20
  </action>
</nop>

Guillaume Beraudo's avatar
Guillaume Beraudo committed
21 22

  <send>
23 24
    <![CDATA[
    REGISTER sip:[remote_ip] SIP/2.0
Guillaume Beraudo's avatar
Guillaume Beraudo committed
25 26 27
	Via: SIP/2.0/[transport] [$luserIpPort];branch=[branch]
	From: [$ruserAdd];tag=[pid]SIPpTag00[call_number]
	To: [$ruserAdd]
28
	Call-ID: [call_id]
Guillaume Beraudo's avatar
Guillaume Beraudo committed
29 30
	CSeq: 1 REGISTER
	Contact: [$luserAddContact]
31
	Max-Forwards: 70
32
	User-Agent: [$ua]
Guillaume Beraudo's avatar
Guillaume Beraudo committed
33
	Expires: [$expire]
34 35 36
	Content-Length: 0
    ]]>
  </send>
Guillaume Beraudo's avatar
Guillaume Beraudo committed
37

38 39
  <recv response="100" optional="true"></recv>
  <recv response="200"></recv>
40 41 42 43

  <ResponseTimeRepartition value="10, 20, 30, 40, 50, 100, 150, 200"/>
  <CallLengthRepartition value="10, 50, 100, 500, 1000, 5000, 10000"/>
</scenario>