As a quick guess you need a blank line after the SIP headers to separate them 
from the data.
 


Date: Thu, 16 Sep 2010 19:28:46 +0200
From: eba...@gmail.com
To: sipp-users@lists.sourceforge.net
Subject: [Sipp-users] Question about Content-Length field

Hi all,
I have a problem while simulating a simple scenario.


It seems that all packets are sent/received until I reach the 6th message 
(INFO).
At this point I should send an INFO message with some xml data 
(MediaServerControl) 



  <send>
    <![CDATA[
      INFO sip:[servi...@[remote_ip]:[remote_port] SIP/2.0
      Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
      From: sipp <sip:s...@[local_ip]:[local_port]>;tag=[call_number]
      To: sut <sip:[servi...@[remote_ip]:[remote_port]>
      Call-ID: [call_id]
      CSeq: 2 INFO
      Contact: sip:s...@[local_ip]:[local_port]
      Max-Forwards: 70
      Subject: Performance Test
      Content-Type: application/MediaServerControl+xml
      Content-Length:  [len]
      <?xml version="1.0"?>
      <MediaServerControl version="1.0"> 
       <request>
        <play >
          <prompt  locale="en_US"> 
              <audio url="******/XYZ.wav" gain="0" gaindelta="0" rate="0" 
ratedelta="0" encoding="" />
          </prompt>
        </play>
       </request>
      </MediaServerControl>
    ]]>
  </send>




After simulation I can read in the *messages.log file:




INFO sip:i...@***.***.***.***:**** SIP/2.0
Via: SIP/2.0/UDP ***.***.***.***:****;branch=z9hG4bK-1-6
From: sipp <sip:s...@***.***.***.***:****>;tag=1
To: sut <sip:i...@***.***.***.***:****>
Call-ID: 1-22...@***.***.***.***
CSeq: 2 INFO
Contact: sip:s...@***.***.***.***:****
Max-Forwards: 70
Subject: Performance Test
Content-Type: application/MediaServerControl+xml
Content-Length:     0


Why the content length is 0?
I guess that the [len] var is calculated by sipp on the basis of the xml 
content and replaced before sending the message.
I can't understand why it doesn't work: I checked the syntax, new line chars 
and I also removed some spaces between the lines but nothing.
What's wrong with my xml scenario?
Maybe the parameter "Content-Type: application/MediaServerControl+xml" is wrong?


Thank you very much for helping,
Evan
------------------------------------------------------------------------------ 
Start uncovering the many advantages of virtual appliances and start using them 
to simplify application deployment and accelerate your shift to cloud 
computing. http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________ Sipp-users mailing list 
Sipp-users@lists.sourceforge.net 
https://lists.sourceforge.net/lists/listinfo/sipp-users                         
                 
------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Sipp-users mailing list
Sipp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sipp-users

Reply via email to