Please do not double post to sip-implementors and sipping. Basic 
questions on sip belong on sip-implementors.

[EMAIL PROTECTED] wrote:
> hello
> 
> 
>               I am working in developing a P-CSCF server. I have some
> doubts in SIP messages. Please help me out.
> 
> 1)  How can I frame a SIP message?

In UDP, framing is provided by UDP.

In TCP, framing is provided by looking for the content-length header, 
which tells you how long the body is which follows. If there is no 
content-length header, the message ends after the next double CRLF.

> 
> 2) Does a SIP message have traditional header and delimeters?

SIP has headers and a body. Example messages exist in 
http://www.ietf.org/rfc/rfc3261.txt section 24, for example.

> 
> 3) Is  SIP message, a plain text string?

It is textually encoded, yes. Here is an example SIP mesage as it would 
appear on the wire:

INVITE sip:[EMAIL PROTECTED] SIP/2.0
Via: SIP/2.0/UDP pc33.atlanta.com;branch=z9hG4bKnashds8
Max-Forwards: 70
To: Bob <sip:[EMAIL PROTECTED]>
From: Alice <sip:[EMAIL PROTECTED]>;tag=1928301774
Call-ID: a84b4c76e66710
CSeq: 314159 INVITE
Contact: <sip:[EMAIL PROTECTED]>
Content-Type: application/sdp
Content-Length: 142

(Alice's SDP not shown)

> 
> 4)  Can I just create a string called invite user name @sdfds.sdfds.sdf and
> with some more paramters just as a string and send it to the server or I
> need to convert everything to binary and send it?

SIP is not a binary protocol.

-Jonathan R.
-- 
Jonathan D. Rosenberg, Ph.D.                72 Eagle Rock Ave.
Chief Scientist                             First Floor
dynamicsoft                                 East Hanover, NJ 07936
[EMAIL PROTECTED]                     FAX:   (973) 952-5050
http://www.jdrosen.net                      PHONE: (973) 952-5000
http://www.dynamicsoft.com

_______________________________________________
Sip-implementors mailing list
[EMAIL PROTECTED]
http://lists.cs.columbia.edu/mailman/listinfo/sip-implementors

Reply via email to