kamailio.org
Sign In
Sign Up
Sign In
Sign Up
Manage this list
×
Keyboard Shortcuts
Thread View
j
: Next unread message
k
: Previous unread message
j a
: Jump to all threads
j l
: Jump to MailingList overview
2025
April
March
February
January
2024
December
November
October
September
August
July
June
May
April
March
February
January
2023
December
November
October
September
August
July
June
May
April
March
February
January
2022
December
November
October
September
August
July
June
May
April
March
February
January
2021
December
November
October
September
August
July
June
May
April
March
February
January
2020
December
November
October
September
August
July
June
May
April
March
February
January
2019
December
November
October
September
August
July
June
May
April
March
February
January
2018
December
November
October
September
August
July
June
May
April
March
February
January
2017
December
November
October
September
August
July
June
May
April
March
February
January
2016
December
November
October
September
August
July
June
May
April
March
February
January
2015
December
November
October
September
August
July
June
May
April
March
February
January
2014
December
November
October
September
August
July
June
May
April
March
February
January
2013
December
November
October
September
August
July
June
May
April
March
February
January
2012
December
November
October
September
August
July
June
May
April
March
February
January
2011
December
November
October
September
August
July
June
May
April
March
February
January
2010
December
November
October
September
August
July
June
May
April
March
February
January
2009
December
November
October
September
August
July
June
May
April
March
February
January
2008
December
November
List overview
Download
sr-dev
February 2025
----- 2025 -----
April 2025
March 2025
February 2025
January 2025
----- 2024 -----
December 2024
November 2024
October 2024
September 2024
August 2024
July 2024
June 2024
May 2024
April 2024
March 2024
February 2024
January 2024
----- 2023 -----
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
----- 2022 -----
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
----- 2021 -----
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
----- 2020 -----
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
----- 2019 -----
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
----- 2018 -----
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
----- 2017 -----
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
----- 2016 -----
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
----- 2015 -----
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
----- 2014 -----
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
----- 2013 -----
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
----- 2012 -----
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
----- 2011 -----
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
----- 2010 -----
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
----- 2009 -----
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
----- 2008 -----
December 2008
November 2008
sr-dev@lists.kamailio.org
9 participants
169 discussions
Start a n
N
ew thread
git:master:aa081dbd: tm: rpc uac - jump to error when failing to create delayed context
by Daniel-Constantin Mierla
13 Feb '25
13 Feb '25
Module: kamailio Branch: master Commit: aa081dbd1ee1901c6174ffddd556bda47b6ef732 URL:
https://github.com/kamailio/kamailio/commit/aa081dbd1ee1901c6174ffddd556bda…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com> Committer: Daniel-Constantin Mierla <miconda(a)gmail.com> Date: 2025-02-13T10:50:32+01:00 tm: rpc uac - jump to error when failing to create delayed context --- Modified: src/modules/tm/rpc_uac.c --- Diff:
https://github.com/kamailio/kamailio/commit/aa081dbd1ee1901c6174ffddd556bda…
Patch:
https://github.com/kamailio/kamailio/commit/aa081dbd1ee1901c6174ffddd556bda…
--- diff --git a/src/modules/tm/rpc_uac.c b/src/modules/tm/rpc_uac.c index e63da4fb835..2d7bd6113d4 100644 --- a/src/modules/tm/rpc_uac.c +++ b/src/modules/tm/rpc_uac.c @@ -778,7 +778,7 @@ static void rpc_t_uac(rpc_t *rpc, void *c, int reply_wait) dctx = rpc->delayed_ctx_new(c); if(dctx == 0) { rpc->fault(c, 500, "internal error: failed to create context"); - return; + goto error01; } uac_req.cb = rpc_uac_callback; uac_req.cbp = dctx;
1
0
0
0
git:master:27e1e910: tm: jump to error when failing to built content length for uac cancel
by Daniel-Constantin Mierla
13 Feb '25
13 Feb '25
Module: kamailio Branch: master Commit: 27e1e9102f07047a3d2c2f28baa708f14be556a6 URL:
https://github.com/kamailio/kamailio/commit/27e1e9102f07047a3d2c2f28baa708f…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com> Committer: Daniel-Constantin Mierla <miconda(a)gmail.com> Date: 2025-02-13T10:42:27+01:00 tm: jump to error when failing to built content length for uac cancel --- Modified: src/modules/tm/t_msgbuilder.c --- Diff:
https://github.com/kamailio/kamailio/commit/27e1e9102f07047a3d2c2f28baa708f…
Patch:
https://github.com/kamailio/kamailio/commit/27e1e9102f07047a3d2c2f28baa708f…
--- diff --git a/src/modules/tm/t_msgbuilder.c b/src/modules/tm/t_msgbuilder.c index 71fd4e644b3..d9231486c61 100644 --- a/src/modules/tm/t_msgbuilder.c +++ b/src/modules/tm/t_msgbuilder.c @@ -1827,7 +1827,8 @@ char *build_uac_cancel(str *headers, str *body, struct cell *cancelledT, char branch_buf[MAX_BRANCH_PARAM_LEN]; str branch_str; struct hostport hp; - str content_length, via; + str content_length; + str via = STR_NULL; LM_DBG("sing FROM=<%.*s>, TO=<%.*s>, CSEQ_N=<%.*s>\n", cancelledT->from_hdr.len, cancelledT->from_hdr.s, @@ -1866,7 +1867,7 @@ char *build_uac_cancel(str *headers, str *body, struct cell *cancelledT, /* Content Length */ if(print_content_length(&content_length, body) < 0) { LM_ERR("failed to print content-length\n"); - return 0; + goto error01; } /* Content-Length */ *len += (body ? (CONTENT_LENGTH_LEN + content_length.len + CRLF_LEN) : 0);
1
0
0
0
git:master:e85d07e5: tm: split reverse rte list function
by Daniel-Constantin Mierla
13 Feb '25
13 Feb '25
Module: kamailio Branch: master Commit: e85d07e5b42ff25f81b74f68ab412e0ab27e7170 URL:
https://github.com/kamailio/kamailio/commit/e85d07e5b42ff25f81b74f68ab412e0…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com> Committer: Daniel-Constantin Mierla <miconda(a)gmail.com> Date: 2025-02-13T10:32:51+01:00 tm: split reverse rte list function --- Modified: src/modules/tm/t_msgbuilder.c --- Diff:
https://github.com/kamailio/kamailio/commit/e85d07e5b42ff25f81b74f68ab412e0…
Patch:
https://github.com/kamailio/kamailio/commit/e85d07e5b42ff25f81b74f68ab412e0…
--- diff --git a/src/modules/tm/t_msgbuilder.c b/src/modules/tm/t_msgbuilder.c index b2c101bf2b6..71fd4e644b3 100644 --- a/src/modules/tm/t_msgbuilder.c +++ b/src/modules/tm/t_msgbuilder.c @@ -750,6 +750,26 @@ static inline int get_contact_uri(struct sip_msg *msg, str *uri) return 0; } +/** + * reverse rte list + */ +static inline rte_t *tm_reverse_rte_list(rte_t *head) +{ + rte_t *prev = NULL; + rte_t *current = NULL; + rte_t *next = NULL; + + current = head; + while(current != NULL) { + next = current->next; + current->next = prev; + prev = current; + current = next; + } + + return prev; +} + /** * Extract route set from the message (out of Record-Route, if reply, OR * Route, if request). @@ -760,7 +780,7 @@ static inline int get_uac_rs(sip_msg_t *msg, int is_req, struct rte **rtset) { struct hdr_field *ptr; rr_t *p, *new_p; - struct rte *t, *head, *old_head; + struct rte *t, *head; head = 0; for(ptr = is_req ? msg->route : msg->record_route; ptr; ptr = ptr->next) { @@ -810,14 +830,7 @@ static inline int get_uac_rs(sip_msg_t *msg, int is_req, struct rte **rtset) if(is_req) { /* harvesting the R/RR HF above inserts at head, which suites RRs (as * they must be reversed, anyway), but not Rs => reverse once more */ - old_head = head; - head = 0; - while(old_head) { - t = old_head; - old_head = old_head->next; - t->next = head; - head = t; - } + head = tm_reverse_rte_list(head); } *rtset = head; @@ -827,7 +840,6 @@ static inline int get_uac_rs(sip_msg_t *msg, int is_req, struct rte **rtset) return -1; } - static inline unsigned short uri2port(const struct sip_uri *puri) { if(puri->port.s) {
1
0
0
0
git:master:7c908137: xprint: break on first resolved ip address
by Daniel-Constantin Mierla
13 Feb '25
13 Feb '25
Module: kamailio Branch: master Commit: 7c908137826071b8180bd93ff8ba3994be66da3a URL:
https://github.com/kamailio/kamailio/commit/7c908137826071b8180bd93ff8ba399…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com> Committer: Daniel-Constantin Mierla <miconda(a)gmail.com> Date: 2025-02-13T09:48:33+01:00 xprint: break on first resolved ip address --- Modified: src/modules/xprint/xp_lib.c --- Diff:
https://github.com/kamailio/kamailio/commit/7c908137826071b8180bd93ff8ba399…
Patch:
https://github.com/kamailio/kamailio/commit/7c908137826071b8180bd93ff8ba399…
--- diff --git a/src/modules/xprint/xp_lib.c b/src/modules/xprint/xp_lib.c index 567e62ade86..cdcde6807d2 100644 --- a/src/modules/xprint/xp_lib.c +++ b/src/modules/xprint/xp_lib.c @@ -1888,6 +1888,7 @@ int xl_mod_init() if(str_ipaddr.s) { memcpy(str_ipaddr.s, s, str_ipaddr.len); str_ipaddr.s[str_ipaddr.len] = '\0'; + break; } else { pkg_free(s); s = NULL;
1
0
0
0
git:master:4c4d7f79: ctl: fifo - clean intermediary buffer
by Daniel-Constantin Mierla
13 Feb '25
13 Feb '25
Module: kamailio Branch: master Commit: 4c4d7f7967a99d4dd4acdc5e198bce493bf15d67 URL:
https://github.com/kamailio/kamailio/commit/4c4d7f7967a99d4dd4acdc5e198bce4…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com> Committer: Daniel-Constantin Mierla <miconda(a)gmail.com> Date: 2025-02-13T09:43:43+01:00 ctl: fifo - clean intermediary buffer --- Modified: src/modules/ctl/fifo_server.c --- Diff:
https://github.com/kamailio/kamailio/commit/4c4d7f7967a99d4dd4acdc5e198bce4…
Patch:
https://github.com/kamailio/kamailio/commit/4c4d7f7967a99d4dd4acdc5e198bce4…
--- diff --git a/src/modules/ctl/fifo_server.c b/src/modules/ctl/fifo_server.c index 197302c1771..70ce92deb76 100644 --- a/src/modules/ctl/fifo_server.c +++ b/src/modules/ctl/fifo_server.c @@ -1261,7 +1261,7 @@ static int rpc_add(rpc_ctx_t *ctx, char *fmt, ...) static int rpc_struct_printf(struct text_chunk *c, char *name, char *fmt, ...) { int n, buf_size; - char *buf; + char *buf = NULL; char *buf0; va_list ap; str s, nm; @@ -1314,6 +1314,7 @@ static int rpc_struct_printf(struct text_chunk *c, char *name, char *fmt, ...) c->next = m; if(c == ctx->last) ctx->last = m; + ctl_free(buf); return 0; } /* Else try again with more space. */ @@ -1329,6 +1330,7 @@ static int rpc_struct_printf(struct text_chunk *c, char *name, char *fmt, ...) } buf = buf0; } + ctl_free(buf); return 0; err: if(buf)
1
0
0
0
git:master:ff712539: xmlrpc: clean allocated buffer
by Daniel-Constantin Mierla
13 Feb '25
13 Feb '25
Module: kamailio Branch: master Commit: ff712539566c903312ebba2f8e2585f9c80ffdcf URL:
https://github.com/kamailio/kamailio/commit/ff712539566c903312ebba2f8e2585f…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com> Committer: Daniel-Constantin Mierla <miconda(a)gmail.com> Date: 2025-02-13T09:40:00+01:00 xmlrpc: clean allocated buffer --- Modified: src/modules/xmlrpc/xmlrpc.c --- Diff:
https://github.com/kamailio/kamailio/commit/ff712539566c903312ebba2f8e2585f…
Patch:
https://github.com/kamailio/kamailio/commit/ff712539566c903312ebba2f8e2585f…
--- diff --git a/src/modules/xmlrpc/xmlrpc.c b/src/modules/xmlrpc/xmlrpc.c index 4157e94904d..eb44f4450dd 100644 --- a/src/modules/xmlrpc/xmlrpc.c +++ b/src/modules/xmlrpc/xmlrpc.c @@ -2024,7 +2024,7 @@ static int rpc_struct_printf( struct rpc_struct *s, char *member_name, char *fmt, ...) { int n, buf_size; - char *buf; + char *buf = NULL; va_list ap; str st, name; struct xmlrpc_reply *reply; @@ -2076,6 +2076,7 @@ static int rpc_struct_printf( if(add_xmlrpc_reply(out, &member_suffix) < 0) goto err; + mxr_free(buf); return 0; } /* Else try again with more space. */ @@ -2090,6 +2091,8 @@ static int rpc_struct_printf( goto err; } } + if(buf) + mxr_free(buf); return 0; err: if(buf) @@ -2745,7 +2748,7 @@ static int ki_xmlrpc_reply(sip_msg_t *msg, int rcode, str *reason) if(add_xmlrpc_reply(&reply, &int_suffix) < 0) goto error; if(add_xmlrpc_reply(&reply, &success_suffix) < 0) - return -1; + goto error; } if(send_reply(msg, &reply.body) < 0) goto error;
1
0
0
0
git:master:b17038ec: xprint: init globals when declared
by Daniel-Constantin Mierla
13 Feb '25
13 Feb '25
Module: kamailio Branch: master Commit: b17038ec072b1854fa2fae1c2d4725c1471ef8ac URL:
https://github.com/kamailio/kamailio/commit/b17038ec072b1854fa2fae1c2d4725c…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com> Committer: Daniel-Constantin Mierla <miconda(a)gmail.com> Date: 2025-02-13T09:18:00+01:00 xprint: init globals when declared --- Modified: src/modules/xprint/xp_lib.c --- Diff:
https://github.com/kamailio/kamailio/commit/b17038ec072b1854fa2fae1c2d4725c…
Patch:
https://github.com/kamailio/kamailio/commit/b17038ec072b1854fa2fae1c2d4725c…
--- diff --git a/src/modules/xprint/xp_lib.c b/src/modules/xprint/xp_lib.c index fda12a82fc3..567e62ade86 100644 --- a/src/modules/xprint/xp_lib.c +++ b/src/modules/xprint/xp_lib.c @@ -56,7 +56,10 @@ static str str_null = STR_STATIC_INIT("<null>"); static str str_empty = STR_STATIC_INIT(""); static str str_per = STR_STATIC_INIT("%"); -static str str_hostname, str_domainname, str_fullname, str_ipaddr; +static str str_hostname = STR_NULL; +static str str_domainname = STR_NULL; +static str str_fullname = STR_NULL; +static str str_ipaddr = STR_NULL; enum xl_host_t { @@ -1835,14 +1838,7 @@ int xl_mod_init() PKG_MEM_ERROR; return -1; } - if(gethostname(s, HOSTNAME_MAX) < 0) { - str_fullname.len = 0; - str_fullname.s = NULL; - str_hostname.len = 0; - str_hostname.s = NULL; - str_domainname.len = 0; - str_domainname.s = NULL; - } else { + if(gethostname(s, HOSTNAME_MAX) >= 0) { str_fullname.len = strlen(s); s = pkg_reallocxf( s, str_fullname.len + 1); /* this will leave the ending \0 */ @@ -1870,8 +1866,6 @@ int xl_mod_init() } } - str_ipaddr.len = 0; - str_ipaddr.s = NULL; if(str_fullname.len) { he = resolvehost(str_fullname.s); if(he) {
1
0
0
0
git:master:4a71d3c9: ctl: free rpc struct in case of error
by Daniel-Constantin Mierla
12 Feb '25
12 Feb '25
Module: kamailio Branch: master Commit: 4a71d3c9e6a4f92ef33ce8e62372b2c4dba62a56 URL:
https://github.com/kamailio/kamailio/commit/4a71d3c9e6a4f92ef33ce8e62372b2c…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com> Committer: Daniel-Constantin Mierla <miconda(a)gmail.com> Date: 2025-02-12T17:48:42+01:00 ctl: free rpc struct in case of error --- Modified: src/modules/ctl/binrpc_run.c --- Diff:
https://github.com/kamailio/kamailio/commit/4a71d3c9e6a4f92ef33ce8e62372b2c…
Patch:
https://github.com/kamailio/kamailio/commit/4a71d3c9e6a4f92ef33ce8e62372b2c…
--- diff --git a/src/modules/ctl/binrpc_run.c b/src/modules/ctl/binrpc_run.c index 1a9eb27bd79..cb1220b5c87 100644 --- a/src/modules/ctl/binrpc_run.c +++ b/src/modules/ctl/binrpc_run.c @@ -1027,7 +1027,7 @@ static int rpc_add(struct binrpc_ctx *ctx, char *fmt, ...) int err; str st; str *sp; - struct rpc_struct_l *rs; + struct rpc_struct_l *rs = NULL; str null_value = str_init("<null string>"); double d; @@ -1071,12 +1071,14 @@ static int rpc_add(struct binrpc_ctx *ctx, char *fmt, ...) if(err < 0) goto error_add; rs = new_rpc_struct(); - if(rs == 0) + if(rs == NULL) goto error_mem; rs->offset = binrpc_pkt_len(&ctx->out.pkt); err = binrpc_end_struct(&ctx->out.pkt); - if(err < 0) + if(err < 0) { + ctl_free(rs); goto error_add; + } clist_append(&ctx->out.structs, rs, next, prev); *(va_arg(ap, void **)) = rs; break; @@ -1182,7 +1184,7 @@ static int rpc_struct_add(struct rpc_struct_l *s, char *fmt, ...) va_list ap; int err; struct binrpc_val avp; - struct rpc_struct_l *rs; + struct rpc_struct_l *rs = NULL; str *sp; str null_value = str_init("<null string>"); @@ -1228,7 +1230,7 @@ static int rpc_struct_add(struct rpc_struct_l *s, char *fmt, ...) goto error_add; } rs = new_rpc_struct(); - if(rs == 0) { + if(rs == NULL) { LM_ERR("not enough memory (%c)\n", *fmt); goto error_mem; } @@ -1236,6 +1238,7 @@ static int rpc_struct_add(struct rpc_struct_l *s, char *fmt, ...) err = binrpc_end_struct(&s->pkt); if(err < 0) { LM_ERR("failed to end struct (%c)\n", *fmt); + ctl_free(rs); goto error_add; } clist_append(&s->substructs, rs, next, prev); @@ -1291,8 +1294,8 @@ static int rpc_array_add(struct rpc_struct_l *s, char *fmt, ...) va_list ap; int err; str st; - str *sp; - struct rpc_struct_l *rs; + str *sp = NULL; + struct rpc_struct_l *rs = NULL; str null_value = str_init("<null string>"); double d; @@ -1336,12 +1339,14 @@ static int rpc_array_add(struct rpc_struct_l *s, char *fmt, ...) if(err < 0) goto error_add; rs = new_rpc_struct(); - if(rs == 0) + if(rs == NULL) goto error_mem; rs->offset = binrpc_pkt_len(&s->pkt); err = binrpc_end_struct(&s->pkt); - if(err < 0) + if(err < 0) { + ctl_free(rs); goto error_add; + } clist_append(&s->substructs, rs, next, prev); *(va_arg(ap, void **)) = rs; break;
1
0
0
0
[kamailio/kamailio] Kamailio passive instance tries to send dialog keepalives after service restart (Issue #4077)
by akabihno
12 Feb '25
12 Feb '25
### Description Kamailio is running on 2 nodes using DMQ for HA. Following DMQ parameters are set: ``` modparam("dmq", "server_address", "sip:LOCAL_IP:DMQ_PORT") modparam("dmq", "notification_address", "sip:OTHER_NODE_IP:DMQ_PORT") modparam("dmq", "multi_notify", 0) modparam("dmq_usrloc", "enable", 1) modparam("dmq_usrloc", "sync", 1) modparam("dmq_usrloc", "replicate_socket_info", 1) modparam("dmq_usrloc", "batch_msg_contacts", 50) modparam("dmq_usrloc", "batch_size", 10000) modparam("dmq_usrloc", "batch_usleep", 500000) ``` If kamailio is restarted on passive instance, it tries to send keepalives for DMQ replicated dialog, producing errors ### Troubleshooting #### Reproduction - Have set dialog properties "ka-src", "ka-dst": ``` if (is_method("INVITE")) { setflag(FLT_ACC); #!ifdef WITH_DIALOG dlg_manage(); dlg_set_property("ka-src"); dlg_set_property("ka-dst"); #!endif } ``` - Have calls on active instance and DMQ replicated dialogs on passive instance ``` kamcmd dlg.list { h_entry: 936 h_id: 7534 ref: 2 call-id: inds188n38bjr7tsa2hb from_uri: sip:90123@10.1.2.3 to_uri: sip:0012345@10.1.2.3 state: 4 start_ts: 1734441148 init_ts: 1734441142 end_ts: 0 duration: 119 timeout: 1734484347 lifetime: 43200 dflags: 0 sflags: 0 iflags: 64 caller: { tag: c91qu93uc5 contact: sip:hp3405ho@iacvttr6b897.invalid;transport=ws;ob;alias=10.5.6.7~39402~6 cseq: 2 route_set: socket: <null string> } callee: { tag: 32fd1f16-2fd3-4924-9423-4267871f4ea8 contact: sip:10.2.3.4:5060 cseq: 0 route_set: socket: <null string> } profiles: { } variables: { } } ``` - Restart kamailio service on passive instance #### Debugging Data #### Log Messages ``` Dec 17 13:15:34
hostname.redacted.com
docker[31099]: 45(53) WARNING: <core> [core/msg_translator.c:3024]: via_builder(): TCP/TLS connection (id: 0) for WebSocket could not be found Dec 17 13:15:34
hostname.redacted.com
docker[31099]: 45(53) ERROR: tm [t_msgbuilder.c:1423]: assemble_via(): via building failed Dec 17 13:15:34
hostname.redacted.com
docker[31099]: 45(53) ERROR: tm [t_msgbuilder.c:1614]: build_uac_req(): error while assembling Via Dec 17 13:15:34
hostname.redacted.com
docker[31099]: 45(53) ERROR: tm [uac.c:552]: t_uac_prepare(): Error while building message Dec 17 13:15:34
hostname.redacted.com
docker[31099]: 45(53) ERROR: dialog [dlg_req_within.c:810]: dlg_send_ka(): failed to send the OPTIONS request Dec 17 13:15:34
hostname.redacted.com
docker[31099]: 45(53) ERROR: <core> [core/udp_server.c:810]: udp_send(): sendto(sock, buf: 0x7f3736a421b0, len: 329, 0, dst: (10.5.2.192:5060), tolen: 16) - err: Invalid argument (22) Dec 17 13:15:34
hostname.redacted.com
docker[31099]: 45(53) CRITICAL: <core> [core/udp_server.c:817]: udp_send(): invalid sendtoparameters Dec 17 13:15:34
hostname.redacted.com
docker[31099]: one possible reason is the server is bound to localhost and Dec 17 13:15:34
hostname.redacted.com
docker[31099]: attempts to send to the net Dec 17 13:15:34
hostname.redacted.com
docker[31099]: 45(53) ERROR: tm [../../core/forward.h:245]: msg_send_buffer(): udp_send failed Dec 17 13:15:34
hostname.redacted.com
docker[31099]: 45(53) ERROR: tm [uac.c:708]: send_prepared_request_impl(): Attempt to send to precreated request failed Dec 17 13:15:34
hostname.redacted.com
docker[31099]: 34(42) ERROR: <core> [core/udp_server.c:810]: udp_send(): sendto(sock, buf: 0x7f3736a42000, len: 329, 0, dst: (10.5.2.192:5060), tolen: 16) - err: Invalid argument (22) Dec 17 13:15:34
hostname.redacted.com
docker[31099]: 34(42) CRITICAL: <core> [core/udp_server.c:817]: udp_send(): invalid sendtoparameters Dec 17 13:15:34
hostname.redacted.com
docker[31099]: one possible reason is the server is bound to localhost and Dec 17 13:15:34
hostname.redacted.com
docker[31099]: attempts to send to the net Dec 17 13:15:34
hostname.redacted.com
docker[31099]: 34(42) ERROR: tm [../../core/forward.h:245]: msg_send_buffer(): udp_send failed ``` #### SIP Traffic ### Possible Solutions ### Additional Information ``` version: kamailio 5.8.4 (x86_64/linux) flags: USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, USE_RAW_SOCKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MMAP, PKG_MALLOC, MEM_JOIN_FREE, Q_MALLOC, F_MALLOC, TLSF_MALLOC, DBG_SR_MEMORY, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLOCKLIST, HAVE_RESOLV_RES, TLS_PTHREAD_MUTEX_SHARED ADAPTIVE_WAIT_LOOPS 1024, MAX_RECV_BUFFER_SIZE 262144, MAX_SEND_BUFFER_SIZE 262144, MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB poll method support: poll, epoll_lt, epoll_et, sigio_rt, select. id: unknown compiled on 13:38:04 Nov 12 2024 with gcc 13.2.1 ``` * **Operating System**: Running
https://ghcr.io/kamailio/kamailio-ci:5.8.4-alpine
in docker as systemd service ``` Host system: lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 16.04.3 LTS Release: 16.04 Codename: xenial uname -a Linux _hostname redacted_ 4.4.0-1052-aws #61-Ubuntu SMP Mon Feb 12 23:05:58 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux docker -v Docker version 20.10.7, build f0df350 ``` -- Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/4077
You are receiving this because you are subscribed to this thread. Message ID: <kamailio/kamailio/issues/4077(a)github.com>
2
2
0
0
Build failed in Jenkins: kamailio57-repos » amd64,bullseye,master #8
by kamailio@sipwise.com
12 Feb '25
12 Feb '25
See <
https://kamailio.sipwise.com/job/kamailio57-repos/architecture=amd64,distri…
> Changes: ------------------------------------------ Started by upstream project "kamailio57-repos" build number 8 originally caused by: Started by upstream project "kamailio57-binaries" build number 10 originally caused by: Started by upstream project "kamailio57-source" build number 27 originally caused by: Started by an SCM change Running as SYSTEM Building on the built-in node in workspace <
https://kamailio.sipwise.com/job/kamailio57-repos/architecture=amd64,distri…
> [master] $ /bin/sh -xe /tmp/jenkins2066408270855458561.sh + echo * Removing files workspace before copying artifacts from another project. * * Removing files workspace before copying artifacts from another project. * + rm -f ./* Copied 51 artifacts from "kamailio57-binaries » amd64,bullseye" build number 10 [master] $ /bin/sh -xe /tmp/jenkins1310728410749387094.sh + /home/admin/kamailio-deb-jenkins/scripts/jdg-repository + set -e + '[' -z /srv/repository/kamailio57 ']' + repository_is_missing_in_env=false + '[' -r /etc/jenkins/debian_glue ']' + echo '*** Sourcing /etc/jenkins/debian_glue ***' *** Sourcing /etc/jenkins/debian_glue *** + . /etc/jenkins/debian_glue ++ PBUILDER_CONFIG=/etc/jenkins/pbuilderrc ++ KEY_ID=508EA4C8 + '[' -n /srv/repository/kamailio57 ']' + false + '[' '' = true ']' + ARCHITECTURES='amd64 i386 source' + COMPONENTS=main + UDEB_COMPONENTS=main + '[' 1 -gt 1 ']' + '[' 1 -lt 1 ']' + REPOS=bullseye ++ awk '/^ii/ {print $3}' ++ dpkg --list jenkins-debian-glue + JENKINS_DEBIAN_GLUE_VERSION=0.23.0+0~20240619103048.364~1.gbp807dcd + '[' -n 0.23.0+0~20240619103048.364~1.gbp807dcd ']' + echo '*** Running jenkins-debian-glue version 0.23.0+0~20240619103048.364~1.gbp807dcd ***' *** Running jenkins-debian-glue version 0.23.0+0~20240619103048.364~1.gbp807dcd *** + '[' -z '' ']' + echo '*** Repository variable DEFAULT_REPOSITORY is unset, using default [] ***' *** Repository variable DEFAULT_REPOSITORY is unset, using default [] *** + DEFAULT_REPOSITORY=/srv/repository + '[' -z /srv/repository/kamailio57 ']' + mkdir -p /srv/repository/kamailio57/conf ++ id -un + chown jenkins /srv/repository/kamailio57/conf + touch /srv/repository/kamailio57/conf/distributions + '[' -z 508EA4C8 ']' ++ id -un + flock --timeout 5 9 + grep -q '^\(Codename\|Suite\): bullseye$' /srv/repository/kamailio57/conf/distributions + echo 'Codename/repository bullseye exists already, ignoring request to add again.' Codename/repository bullseye exists already, ignoring request to add again. + exit 0 ++ id -un + rm -f /var/lock/jdg-generate-reprepro-codename.jenkins + set -u + umask 022 + PATH=/bin:/sbin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin + export QEMU_RESERVED_VA=0x0 + QEMU_RESERVED_VA=0x0 + export TERM=dumb + TERM=dumb ++ date + echo '*** Starting /usr/bin/build-and-provide-package at Wed 12 Feb 2025 01:15:53 AM UTC ***' *** Starting /usr/bin/build-and-provide-package at Wed 12 Feb 2025 01:15:53 AM UTC *** ++ sed -e 's/^\([0-9]*\).*/\1/' + start_seconds=5326767 ++ awk '/^ii/ {print $3}' ++ dpkg --list jenkins-debian-glue + JENKINS_DEBIAN_GLUE_VERSION=0.23.0+0~20240619103048.364~1.gbp807dcd + '[' -n 0.23.0+0~20240619103048.364~1.gbp807dcd ']' + echo '*** Running jenkins-debian-glue version 0.23.0+0~20240619103048.364~1.gbp807dcd ***' *** Running jenkins-debian-glue version 0.23.0+0~20240619103048.364~1.gbp807dcd *** ++ dpkg --print-architecture + HOST_ARCH=amd64 + '[' -n amd64 ']' + echo '*** Identified host architecture amd64 ***' *** Identified host architecture amd64 *** + trap bailout SIGHUP SIGINT SIGQUIT SIGABRT SIGALRM SIGTERM + checks_and_defaults + '[' -z /srv/repository/kamailio57 ']' + local repository_is_missing_in_env=false + '[' -r /etc/jenkins/debian_glue ']' + . /etc/jenkins/debian_glue ++ PBUILDER_CONFIG=/etc/jenkins/pbuilderrc ++ KEY_ID=508EA4C8 + '[' -n /srv/repository/kamailio57 ']' + false + '[' -n '' ']' + '[' -z kamailio57-repos/architecture=amd64,distribution=bullseye,label=master ']' + '[' -z amd64 ']' + set_debootstrap + '[' -n '' ']' + '[' amd64 = amd64 ']' + DEBOOTSTRAP=debootstrap + return 0 + '[' -z '' ']' + REPREPRO_OPTS='-v --waitforlock 1000' + echo '*** REPREPRO_OPTS is unset, using default: -v --waitforlock 1000 ***' *** REPREPRO_OPTS is unset, using default: -v --waitforlock 1000 *** + REPREPRO_CMD=reprepro + '[' -z '' ']' + DEFAULT_REPOSITORY=/srv/repository + '[' -z /srv/repository/kamailio57 ']' + '[' -z '' ']' + PBUILDER_HOOKDIR=/usr/share/jenkins-debian-glue/pbuilder-hookdir/ + '[' -z '' ']' + '[' -z '' ']' + FREIGHT_VARLIB=/var/lib/freight + FREIGHT_VARCACHE=/var/cache/freight + FREIGHT_CONF=/etc/freight.conf + '[' '' = true ']' + clean_workspace ++ pwd + echo '*** The following files have been noticed in the workspace [<
https://kamailio.sipwise.com/job/kamailio57-repos/architecture=amd64,distri…
]>: ***' *** The following files have been noticed in the workspace [<
https://kamailio.sipwise.com/job/kamailio57-repos/architecture=amd64,distri…
]>: *** + ls -la ./ total 12 drwxr-xr-x 3 jenkins jenkins 4096 Feb 12 01:15 . drwxr-xr-x 3 jenkins jenkins 4096 Feb 12 01:15 .. drwxr-xr-x 2 jenkins jenkins 4096 Feb 12 01:15 binaries + identify_package_name + PACKAGE=kamailio57 + PACKAGE=kamailio57 + '[' -n kamailio57 ']' + echo '*** Identified Debian package name kamailio57 ***' *** Identified Debian package name kamailio57 *** + set_base_path + '[' -n binaries/ ']' + echo '*** Using provided binaries/ as BASE_PATH ***' *** Using provided binaries/ as BASE_PATH *** + build_info + '[' -n bullseye ']' + echo '*** Using supplied repository name bullseye ***' *** Using supplied repository name bullseye *** + identify_sourcefile + '[' -n '' ']' + echo '*** Identifying newest package version ***' *** Identifying newest package version *** + newest_version= + for file in "${BASE_PATH}/"*.dsc ++ awk '/^Source: / {print $2}' binaries//kamailio_5.7.6+bpo11.dsc + SOURCE_PACKAGE=kamailio ++ basename binaries//kamailio_5.7.6+bpo11.dsc .dsc + p=kamailio_5.7.6+bpo11 + '[' kamailio_5.7.6+bpo11 = '*' ']' + cur_version=5.7.6+bpo11 + '[' -z '' ']' + newest_version=5.7.6+bpo11 + echo '*** Found package version 5.7.6+bpo11 ***' *** Found package version 5.7.6+bpo11 *** + sourcefile='binaries//kamailio_*5.7.6+bpo11.dsc' + echo '*** Using binaries//kamailio_*5.7.6+bpo11.dsc (version: 5.7.6+bpo11)' *** Using binaries//kamailio_*5.7.6+bpo11.dsc (version: 5.7.6+bpo11) + dist_and_arch_settings + '[' -z amd64 ']' + '[' amd64 = all ']' + arch=amd64 + echo '*** architecture is set to amd64 ***' *** architecture is set to amd64 *** + '[' -n bullseye ']' + local DIST=bullseye + '[' -n '' ']' + echo '*** Using cowbuilder base for distribution bullseye ***' *** Using cowbuilder base for distribution bullseye *** + COWBUILDER_DIST=bullseye + '[' -n '' ']' + COWBUILDER_BASE=/var/cache/pbuilder/base-bullseye-amd64.cow + echo '*** No COWBUILDER_BASE set, using /var/cache/pbuilder/base-bullseye-amd64.cow as cowbuilder base.cow ***' *** No COWBUILDER_BASE set, using /var/cache/pbuilder/base-bullseye-amd64.cow as cowbuilder base.cow *** + local lockfiles=/run/lock/bullseye-amd64 + build_lockfile=/run/lock/bullseye-amd64.building.1575155 + update_lockfile=/run/lock/bullseye-amd64.update + update_lockfile_pid=/run/lock/bullseye-amd64.update.1575155 + '[' -n true ']' + echo '*** Config variable '\''PROVIDE_ONLY'\'' is set, ignoring request to run cowbuilder. ***' *** Config variable 'PROVIDE_ONLY' is set, ignoring request to run cowbuilder. *** + '[' -n '' ']' + deploy_to_releases + '[' -n '' ']' + '[' -n '' ']' + '[' -n '' ']' + '[' -n '' ']' + reprepro_wrapper + '[' -n '' ']' + '[' -d /srv/repository/kamailio57 ']' + '[' -r /srv/repository/kamailio57/conf/distributions ']' + grep -q '^\(Codename\|Suite\): bullseye$' /srv/repository/kamailio57/conf/distributions + remove_packages + '[' -n true ']' + echo '*** Skipping removal of existing packages as requested via SKIP_REMOVAL ***' *** Skipping removal of existing packages as requested via SKIP_REMOVAL *** + return 0 + remove_missing_binary_packages + '[' -n true ']' + echo '*** Skipping removal of existing packages as requested via SKIP_MISSING_BINARY_REMOVAL or SKIP_REMOVAL ***' *** Skipping removal of existing packages as requested via SKIP_MISSING_BINARY_REMOVAL or SKIP_REMOVAL *** + return 0 + echo '*** Including packages in repository bullseye ***' *** Including packages in repository bullseye *** ++ get_arch_changes ++ case ${architecture} in ++ echo amd64 + reprepro -b /srv/repository/kamailio57 -v --waitforlock 1000 --ignore=wrongdistribution --ignore=uploaders --ignore=surprisingbinary include bullseye <
https://kamailio.sipwise.com/job/kamailio57-repos/architecture=amd64,distri…
> File "pool/main/k/kamailio/kamailio_5.7.6+bpo11_amd64.deb" is already registered with different checksums! md5 expected: 0476e074842bb457e84f501bdb9bc526, got: a5916b0ccfb5a35a6e8b9e432d386860 sha1 expected: 46b8e82a6f227f5814404bcec28cfdb229cdd83f, got: 0bf3b86d239b06d0316e1c7a913d38ddfc48876f sha256 expected: c84ef99085b456f61d88ef20b1a569cfdf506552bb18ee48275fd8b9a9414dad, got: 2e31fe81cc37eb33a67f05ec108f867d4642457c25b69a9423e251944c46e163 size expected: 9441148, got: 9440900 There have been errors! + '[' 254 -eq 0 ']' + bailout 1 'Error: Failed to include binary package in bullseye repository.' + '[' -n 1 ']' + EXIT=1 + '[' -n 'Error: Failed to include binary package in bullseye repository.' ']' + echo 'Error: Failed to include binary package in bullseye repository.' Error: Failed to include binary package in bullseye repository. + rm -f /run/lock/bullseye-amd64.building.1575155 + '[' -r /run/lock/bullseye-amd64.update.1575155 ']' + '[' '' = true ']' + echo '*** Getting rid of files in <
https://kamailio.sipwise.com/job/kamailio57-repos/architecture=amd64,distri…
> to avoid problems in next run. ***' *** Getting rid of files in <
https://kamailio.sipwise.com/job/kamailio57-repos/architecture=amd64,distri…
> to avoid problems in next run. *** + rm -f <
https://kamailio.sipwise.com/job/kamailio57-repos/architecture=amd64,distri…
> <
https://kamailio.sipwise.com/job/kamailio57-repos/architecture=amd64,distri…
> <
https://kamailio.sipwise.com/job/kamailio57-repos/architecture=amd64,distri…
> <
https://kamailio.sipwise.com/job/kamailio57-repos/architecture=amd64,distri…
> <
https://kamailio.sipwise.com/job/kamailio57-repos/architecture=amd64,distri…
> <
https://kamailio.sipwise.com/job/kamailio57-repos/architecture=amd64,distri…
> <
https://kamailio.sipwise.com/job/kamailio57-repos/architecture=amd64,distri…
> <
https://kamailio.sipwise.com/job/kamailio57-repos/architecture=amd64,distri…
> <
https://kamailio.sipwise.com/job/kamailio57-repos/architecture=amd64,distri…
> <
https://kamailio.sipwise.com/job/kamailio57-repos/architecture=amd64,distri…
> <
https://kamailio.sipwise.com/job/kamailio57-repos/architecture=amd64,distri…
> <
https://kamailio.sipwise.com/job/kamailio57-repos/architecture=amd64,distri…
> <
https://kamailio.sipwise.com/job/kamailio57-repos/architecture=amd64,distri…
> <
https://kamailio.sipwise.com/job/kamailio57-repos/architecture=amd64,distri…
> <
https://kamailio.sipwise.com/job/kamailio57-repos/architecture=amd64,distri…
> <
https://kamailio.sipwise.com/job/kamailio57-repos/architecture=amd64,distri…
> <
https://kamailio.sipwise.com/job/kamailio57-repos/architecture=amd64,distri…
> <
https://kamailio.sipwise.com/job/kamailio57-repos/architecture=amd64,distri…
> <
https://kamailio.sipwise.com/job/kamailio57-repos/architecture=amd64,distri…
> <
https://kamailio.sipwise.com/job/kamailio57-repos/architecture=amd64,distri…
> <
https://kamailio.sipwise.com/job/kamailio57-repos/architecture=amd64,distri…
> <
https://kamailio.sipwise.com/job/kamailio57-repos/architecture=amd64,distri…
> <
https://kamailio.sipwise.com/job/kamailio57-repos/architecture=amd64,distri…
> <
https://kamailio.sipwise.com/job/kamailio57-repos/architecture=amd64,distri…
> <
https://kamailio.sipwise.com/job/kamailio57-repos/architecture=amd64,distri…
> <
https://kamailio.sipwise.com/job/kamailio57-repos/architecture=amd64,distri…
> <
https://kamailio.sipwise.com/job/kamailio57-repos/architecture=amd64,distri…
> <
https://kamailio.sipwise.com/job/kamailio57-repos/architecture=amd64,distri…
> <
https://kamailio.sipwise.com/job/kamailio57-repos/architecture=amd64,distri…
> <
https://kamailio.sipwise.com/job/kamailio57-repos/architecture=amd64,distri…
> <
https://kamailio.sipwise.com/job/kamailio57-repos/architecture=amd64,distri…
> <
https://kamailio.sipwise.com/job/kamailio57-repos/architecture=amd64,distri…
> <
https://kamailio.sipwise.com/job/kamailio57-repos/architecture=amd64,distri…
> <
https://kamailio.sipwise.com/job/kamailio57-repos/architecture=amd64,distri…
> <
https://kamailio.sipwise.com/job/kamailio57-repos/architecture=amd64,distri…
> <
https://kamailio.sipwise.com/job/kamailio57-repos/architecture=amd64,distri…
> <
https://kamailio.sipwise.com/job/kamailio57-repos/architecture=amd64,distri…
> <
https://kamailio.sipwise.com/job/kamailio57-repos/architecture=amd64,distri…
> <
https://kamailio.sipwise.com/job/kamailio57-repos/architecture=amd64,distri…
> <
https://kamailio.sipwise.com/job/kamailio57-repos/architecture=amd64,distri…
> <
https://kamailio.sipwise.com/job/kamailio57-repos/architecture=amd64,distri…
> <
https://kamailio.sipwise.com/job/kamailio57-repos/architecture=amd64,distri…
> <
https://kamailio.sipwise.com/job/kamailio57-repos/architecture=amd64,distri…
> <
https://kamailio.sipwise.com/job/kamailio57-repos/architecture=amd64,distri…
> <
https://kamailio.sipwise.com/job/kamailio57-repos/architecture=amd64,distri…
> <
https://kamailio.sipwise.com/job/kamailio57-repos/architecture=amd64,distri…
> <
https://kamailio.sipwise.com/job/kamailio57-repos/architecture=amd64,distri…
> <
https://kamailio.sipwise.com/job/kamailio57-repos/architecture=amd64,distri…
> <
https://kamailio.sipwise.com/job/kamailio57-repos/architecture=amd64,distri…
> <
https://kamailio.sipwise.com/job/kamailio57-repos/architecture=amd64,distri…
> <
https://kamailio.sipwise.com/job/kamailio57-repos/architecture=amd64,distri…
> + '[' -n '' ']' + '[' -n '' ']' + '[' -n 5326767 ']' ++ sed -e 's/^\([0-9]*\).*/\1/' + SECONDS=0 ++ date + echo '*** Finished execution of /usr/bin/build-and-provide-package at Wed 12 Feb 2025 01:15:53 AM UTC [running 0 seconds] ***' *** Finished execution of /usr/bin/build-and-provide-package at Wed 12 Feb 2025 01:15:53 AM UTC [running 0 seconds] *** + exit 1 Build step 'Execute shell' marked build as failure Archiving artifacts
1
0
0
0
← Newer
1
...
10
11
12
13
14
15
16
17
Older →
Jump to page:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Results per page:
10
25
50
100
200