mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
fix push.gb28181.conf, gb28181conn repeat call serve()
This commit is contained in:
parent
cbe9c1dabc
commit
8b4f84e336
3 changed files with 23 additions and 18 deletions
|
@ -297,10 +297,10 @@ srs_error_t SrsSipStack::do_parse_request(SrsSipRequest* req, const char* recv_m
|
|||
srs_trace("sip: message head %s content=%s", phead, content.c_str());
|
||||
}
|
||||
else if (!strcasecmp(phead, "content-length:")) {
|
||||
srs_trace("sip: message head %s content=%s", phead, content.c_str());
|
||||
req->content_length = strtoul(content.c_str(), NULL, 10);
|
||||
}
|
||||
else if (!strcasecmp(phead, "content-type:")) {
|
||||
srs_trace("sip: message head %s content=%s", phead, content.c_str());
|
||||
req->content_type = content;
|
||||
}
|
||||
else if (!strcasecmp(phead, "cseq:")) {
|
||||
std::vector<std::string> vec_seq = srs_string_split(content, " ");
|
||||
|
@ -331,6 +331,9 @@ srs_error_t SrsSipStack::do_parse_request(SrsSipRequest* req, const char* recv_m
|
|||
else if (!strcasecmp(phead, "user-agent:")){
|
||||
req->user_agent = content;
|
||||
}
|
||||
else if (!strcasecmp(phead, "max-forwards:")){
|
||||
req->max_forwards = strtoul(content.c_str(), NULL, 10);
|
||||
}
|
||||
else {
|
||||
srs_trace("sip: unkonw message head %s content=%s", phead, content.c_str());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue