From 411b2fca23a5c83463520211c95813e9add0041b Mon Sep 17 00:00:00 2001 From: duffy Date: Thu, 29 Jan 2026 21:49:54 +0100 Subject: [PATCH] sip client small buffer fix --- main/sip/sip_client.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/main/sip/sip_client.c b/main/sip/sip_client.c index e4c9b6c..cdf698c 100644 --- a/main/sip/sip_client.c +++ b/main/sip/sip_client.c @@ -210,7 +210,7 @@ static esp_err_t send_register(bool with_auth) if (with_auth && s_auth_required) { char response[33]; - char uri[128]; + char uri[256]; snprintf(uri, sizeof(uri), "sip:%s", config->sip.server); 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) { snprintf(to_header, sizeof(to_header), "%s", req->to); } else { - char to_uri[128]; + char to_uri[256]; sip_extract_uri(req->to, to_uri, sizeof(to_uri)); 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)); // 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)); int len = snprintf(buf, sizeof(buf), @@ -419,7 +419,7 @@ static esp_err_t send_bye(void) 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)); int len = snprintf(buf, sizeof(buf),