sip client small buffer fix
This commit is contained in:
@@ -210,7 +210,7 @@ static esp_err_t send_register(bool with_auth)
|
|||||||
|
|
||||||
if (with_auth && s_auth_required) {
|
if (with_auth && s_auth_required) {
|
||||||
char response[33];
|
char response[33];
|
||||||
char uri[128];
|
char uri[256];
|
||||||
snprintf(uri, sizeof(uri), "sip:%s", config->sip.server);
|
snprintf(uri, sizeof(uri), "sip:%s", config->sip.server);
|
||||||
calc_digest_response("REGISTER", uri, response);
|
calc_digest_response("REGISTER", uri, response);
|
||||||
|
|
||||||
@@ -346,7 +346,7 @@ static esp_err_t send_response(int code, const sip_message_t* req)
|
|||||||
if (strlen(req->to_tag) > 0) {
|
if (strlen(req->to_tag) > 0) {
|
||||||
snprintf(to_header, sizeof(to_header), "%s", req->to);
|
snprintf(to_header, sizeof(to_header), "%s", req->to);
|
||||||
} else {
|
} else {
|
||||||
char to_uri[128];
|
char to_uri[256];
|
||||||
sip_extract_uri(req->to, to_uri, sizeof(to_uri));
|
sip_extract_uri(req->to, to_uri, sizeof(to_uri));
|
||||||
snprintf(to_header, sizeof(to_header), "<%s>;tag=%s", to_uri, s_local_tag);
|
snprintf(to_header, sizeof(to_header), "<%s>;tag=%s", to_uri, s_local_tag);
|
||||||
}
|
}
|
||||||
@@ -388,7 +388,7 @@ static esp_err_t send_ack(void)
|
|||||||
generate_branch(s_branch, sizeof(s_branch));
|
generate_branch(s_branch, sizeof(s_branch));
|
||||||
|
|
||||||
// Extrahiere Request-URI aus To
|
// Extrahiere Request-URI aus To
|
||||||
char to_uri[128];
|
char to_uri[256];
|
||||||
sip_extract_uri(s_call_info.remote_uri, to_uri, sizeof(to_uri));
|
sip_extract_uri(s_call_info.remote_uri, to_uri, sizeof(to_uri));
|
||||||
|
|
||||||
int len = snprintf(buf, sizeof(buf),
|
int len = snprintf(buf, sizeof(buf),
|
||||||
@@ -419,7 +419,7 @@ static esp_err_t send_bye(void)
|
|||||||
|
|
||||||
generate_branch(s_branch, sizeof(s_branch));
|
generate_branch(s_branch, sizeof(s_branch));
|
||||||
|
|
||||||
char to_uri[128];
|
char to_uri[256];
|
||||||
sip_extract_uri(s_call_info.remote_uri, to_uri, sizeof(to_uri));
|
sip_extract_uri(s_call_info.remote_uri, to_uri, sizeof(to_uri));
|
||||||
|
|
||||||
int len = snprintf(buf, sizeof(buf),
|
int len = snprintf(buf, sizeof(buf),
|
||||||
|
|||||||
Reference in New Issue
Block a user