|
Yes – it fills in the packet first –
it leaves 4 spaces for the length to go in. There is a race to do things at the
end with the Authentication logic but otherwise it is OK. It looks for the blank line – so you don’t
have to put the Content-Length last. (Without looking at the code I cannot
remember whether it looks after the [len] or from start of packet.) Peter From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Yariv Omer Hi I
am trying to understand how the content length is computed, and in which
phases? If
we take a look of and example: Content-Length: [len] v=0 o=user1 53655765 2353687637 IN IP[local_ip_type] [local_ip] s=- c=IN IP[local_ip_type] [local_ip] t=0 0 m=audio [auto_media_port] RTP/AVP 8 a=rtpmap:8 PCMA/8000 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-11,16 The [len] keyword will be computed in run time only after the 'local_ip' and 'auto_media_port' (and maybe other fields from a file for example) will be computed. Does for each call, Sipp first put all the keywords of the body and then compute its length and then fills the 'len' keyword? How does it knows where the body starts? Regards, Yariv --------------- This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and delete this e-mail. Any unauthorized copying, disclosure or distribution of the contents in this e-mail is strictly forbidden. --------------- |
------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________ Sipp-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sipp-users
