register_inviter.xml 1008 Bytes
Newer Older
Guillaume Beraudo's avatar
Guillaume Beraudo committed
1 2 3 4 5
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE scenario SYSTEM "sipp.dtd">

<scenario>

6
<Global variables="luserAdd,domain,ua,expire,luserIpPort">
Guillaume Beraudo's avatar
Guillaume Beraudo committed
7 8 9 10 11 12
</Global>

<nop hide="true">
  <action>
    <assignstr assign_to="luserIpPort" value="[local_ip]:[local_port]" />   
    <assignstr assign_to="luserAdd" value="sip:[$luserIpPort]" />   
13
    <assignstr assign_to="ruserAdd" value="sip:user0.000000@[$domain]" /> 
Guillaume Beraudo's avatar
Guillaume Beraudo committed
14 15 16 17 18 19 20 21 22 23 24 25 26 27
  </action>
</nop>
  

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

  <recv response="100" optional="true"></recv>
  <recv response="200"></recv>


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