Class JsSIP.OutgoingRequest
An instance of this JsSIP.OutgoingRequest
holds a SIP request to be sent.
Instance Attributes
method
String
indicating the SIP request method.
ruri
JsSIP.URI
instance representing the request target URI.
cseq
Number
representing the CSeq number.
call_id
String
representing the Call-ID header field value.
from
JsSIP.NameAddrHeader
representing the From header field value.
to
JsSIP.NameAddrHeader
representing the To header field value.
body
String
representing the request body.
Instance Methods
setHeader
(name, value)
Fills the given header with the given value.
Parameters
name
String
indicating the header name.value
- Header value(s) represented by a
String
or anArray
ofStrings
.
getHeader
(name)
Gets the first value of the given header name. Returns a String
with the value of the header, or null
if the header doesn’t exist.
Parameters
name
String
indicating the header name.
getHeaders
(name)
Gets the header(s) of the given name. Returns an Array
of Strings
containing all the values for the given header name.
Parameters
name
String
indicating the header name.
hasHeader
(name)
Verifies the existence of the given header. Returns true
if the header exists, false
otherwise.
Parameters
name
String
indicating the header name.
toString
()
Returns a String
with the generated SIP request.