After a period of study, I finally had a certain understanding of the SIP. During the learning process, I encountered too many problems, such as being depressed and disappointed. But I bit my teeth and came back. I was touched by the fact that I met some very enthusiastic friends on the Internet and gave me some questions without interrupting them. Thanks to them, especially the friendly big dog, I hope he will see this article one day.
I developed it using the exosip protocol stack. I wrote a Y
Handling 4xx responses
A specific 4xx response requires the processing of a specific UA instead of the Request Method.
If a 401 (unauthorized) or 407 (proxy authentication required) response is received, UAC should carry the credential to retry the request according to the authorization process (rfc3261 Section 22.2 and section 22.3.
If you receive a 413 (Request Entity too long) Response (rfc3261 section 21.4.11), the request contains an entity that is longer than the
the attributes of a session. Finally, section 15th describes how to terminate a session.
Section 8th, 10, 11, 12, 13, 14, and 15 describes the complete UA core (section 9th describes cancellation and is used in UA core and proxy core ). Section 16th describes proxy servers, which are used for message routing between two UA instances.
6. Protocol definitionThe rankings described below have additional significance for SIP:Address-of-record: record address. An address-of-record (AOR) is a sip or s
properties of a session. Finally, the 15th section describes how to terminate a session.
Sections 8th, 10, 11, 12, 13, 14, and 15 describe the complete UA core (section 9th describes cancellation, which is used in the UA core and the agent core). The 16th section speaks of proxy servers, which are used for message routing between two UA.
6, the definition of the agreement
The following ranking is of additional significance to sip:
Address-of-record: Record address. A Address-of-record (AOR)
proxy server will explain the request message. If necessary, it will rewrite its special part.
Recursion: recursion. When a customer generates a new request and sends it to one or more of the contact header field URIs in the response, the 3xx response is recursive.
Redirect server: Redirection server. The redirection server is the user Proxy Server (UAs) that generates a 3xx response for the request it receives, and instructs the customer to contact
DescriptionYou are given the pots of the volume of A and B liters respectively. The following operations can be performed:
Fill (i) Fill the pot i (1≤ i ≤ 2) from the tap;
DROP (i) empty the pot I to the drain;
Pour (i,j) pour from pot i to pot J; After this operation either the pot J was full (and there may be some water left in the pot I), or the PO T I was empty (and all its contents has been moved to the pot J).
Write a program to find the shortest possible sequence of
first, look at the description of the 4xx error "Reprint" http status 400,http 400,400 error "Reference" status Code, Bad Request (§10.4.1) 4 request failed 4xx The 4xx answer defines a scenario in which a request for a particular server response failed. The client should not retry the same request without changing the request. (for example, increase the appropriate authentication information).However, the same request may be successful if it is given to a different server. 4.1 Bad Request
Chapter 9 dialogue
A key concept for user proxy is dialog. A dialog indicates a point-to-point sip connection between two user proxies at some time. The dialog ensures that messages between user proxies are ordered and correctly routed. A dialog indicates the context of a SIP message. Rfc3261 the UA processing discussed in section 8th is irrelevant to the method. This chapter discusses how to construct a dialog and how to send subsequent requests and responses in the dialog.
A dialog is identifi
Document directory
1.2.1 UAC. BAT:
1.2.2 data.csv:
1.2.3 UAC. xml:
1 installation and Overview:
SIPP is a tool software used to test the performance of the SIP protocol. This is a GPL open source software.
It contains some basic sipstone user proxy workflows (UAC and UAS) and can be used to create and release multiple calls using invite and B ye. It can also read the XML scenario file, that is, the configuration file that describes any performa
Chapter 8 query capability
The SIP Options method allows one UA to query the capabilities of another UA or proxy server. This allows the client to detect information about the methods, content types, extensions, and encoding they support, rather than the other end of "calling. For example, before the client inserts a require header field into invite and lists the capabilities that are not supported by the target UAS, it can first use the Options metho
P-called-party-id scenario for the head fieldP-called-party-id applies to the case where UAS need to know the purpose of Request-uri in the request before the agent overwrites the target to the contact address: AOR. UAS follow a set of different scenarios or use their filtering services for the request target. When UAS registers a few AOR, and unless this extensi
the Contact header field defines the life cycle of the contacts URI. UA or proxy cache This URI in this life cycle. If there is no strict validity, the address is only valid this time and cannot be saved in future transactions.
If the value of the Contact header field for the cache fails, the Request-uri of the forwarded request should try again. The temporary URI can be invalidated faster than the timeout and can have a new temporary URI.
3.4 305 Use Proxy
The requested resource must be access
. The so-called stateful proxy is used to make different processing based on different situations. These processing have a positive correlation. For example, if three people send numbers, A needs to pass a number to C through B. In one case, whatever a says, B says the same number to C, which is called stateless proxy; another State is that if a says 1, B will pass to the C Number 2. If a says 2, B will pass to the C number 3, which is a stateful proxy. Some materials have b2bua, which is essent
Prack English translation (the provisional Response acknowledgement), you can call IT security information! This compares the image.The final response in the SIP is understood to be reliably transmitted, such as a 200OK response to the invite, and UAC will give an ACK telling UAS that it has received 200OK. The reliability between 200 and ACK is end-to-end. Prack is a mechanism for guaranteeing the reliable transmission of temporary messages (101-199)
Translator: 9 times on the Lushan Road
The SIP method options allows one UA to query the capabilities of another UA or proxy server. This provides a client to query methods supported by the server, such as content types, extensions, and codecs. None of these require the "Ringing" peer. For example, when the client tries to add a request field option to the invite request header, it does not know whether the UAS of the other party can support this op
use the value specified by the contact header field in the response.The expires (section 20.19) in the response or the expires parameter in the contact header field defines the lifecycle of the contact Uri. UA or proxy caches the URI in this lifecycle. If there is no strict validity period, this address is only valid this time.
And cannot be saved in future transactions.If the value of the contact header field in the cache fails, the request-Uri of the forwarded request should be tried again. A
generated by UAS.3.5 380 alternative serviceThe call fails, but you can try another service. In addition, the Service is defined in the Response Message Body. The message body format is not defined here and may be defined in future specifications.4. Request failed 4xxThe 4xx response defines the failure of the Request returned by a specific server. The client should not retry the same request without changing the request. (For example, add appropriat
should use the value specified by the contact header field in the response.The expires (section 20.19) in the response or the expires parameter in the contact header field defines the lifecycle of the contact Uri. UA or proxy caches the URI in this lifecycle. If there is no strict validity period, this address is only valid this time and cannot be saved in future transactions.If the value of the contact header field in the cache fails, the request-Uri of the forwarded request should be tried ag
tried again. A temporary URI can expire faster than the timeout time and have a new temporary Uri.3.4 305 use proxyThe requested resource must be accessed through the proxy specified in the contact header. The contact header specifies the URI of a proxy. The object receiving this response should resend this single request through this proxy. 305 (useproxy) must be generated by UAS.3.5 380 alternative serviceThe call fails, but you can try another ser
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.