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
2024
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
March 2019
----- 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
28 participants
322 discussions
Start a n
N
ew thread
git:5.2:b45c9f25: core: kemi - exported functions for equivalent tests of src_port and dst_port
by Daniel-Constantin Mierla
Module: kamailio Branch: 5.2 Commit: b45c9f2525e926a07d9c7fe2e212675327197990 URL:
https://github.com/kamailio/kamailio/commit/b45c9f2525e926a07d9c7fe2e212675…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com> Committer: Daniel-Constantin Mierla <miconda(a)gmail.com> Date: 2019-03-10T09:21:24+01:00 core: kemi - exported functions for equivalent tests of src_port and dst_port (cherry picked from commit 235a10bc7316f3b91ae6ab51960702a07f69f27a) --- Modified: src/core/kemi.c --- Diff:
https://github.com/kamailio/kamailio/commit/b45c9f2525e926a07d9c7fe2e212675…
Patch:
https://github.com/kamailio/kamailio/commit/b45c9f2525e926a07d9c7fe2e212675…
--- diff --git a/src/core/kemi.c b/src/core/kemi.c index 68a6a80f49..3c6bba057f 100644 --- a/src/core/kemi.c +++ b/src/core/kemi.c @@ -1063,6 +1063,25 @@ static int sr_kemi_core_is_af_ipv6(sip_msg_t *msg) return (msg->rcv.bind_address->address.af==AF_INET6)?SR_KEMI_TRUE:SR_KEMI_FALSE; } +/** + * + */ +static int sr_kemi_core_is_src_port(sip_msg_t *msg, int vport) +{ + return (vport == (int)msg->rcv.src_port)?SR_KEMI_TRUE:SR_KEMI_FALSE; +} + +/** + * + */ +static int sr_kemi_core_is_dst_port(sip_msg_t *msg, int vport) +{ + if(msg==NULL || msg->rcv.bind_address==NULL) { + return SR_KEMI_FALSE; + } + return (vport == (int)msg->rcv.bind_address->port_no)?SR_KEMI_TRUE:SR_KEMI_FALSE; +} + /** * */ @@ -1621,6 +1640,16 @@ static sr_kemi_t _sr_kemi_core[] = { { SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE } }, + { str_init(""), str_init("is_src_port"), + SR_KEMIP_BOOL, sr_kemi_core_is_src_port, + { SR_KEMIP_INT, SR_KEMIP_NONE, SR_KEMIP_NONE, + SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE } + }, + { str_init(""), str_init("is_dst_port"), + SR_KEMIP_BOOL, sr_kemi_core_is_dst_port, + { SR_KEMIP_INT, SR_KEMIP_NONE, SR_KEMIP_NONE, + SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE } + }, { {0, 0}, {0, 0}, 0, NULL, { 0, 0, 0, 0, 0, 0 } } };
5 years, 8 months
1
0
0
0
git:5.2:6129c28f: core: kemi - corresponding functions to check af==ipv4/ipv6
by Daniel-Constantin Mierla
Module: kamailio Branch: 5.2 Commit: 6129c28f8c5957ca409a8e51737e4d9fbd860652 URL:
https://github.com/kamailio/kamailio/commit/6129c28f8c5957ca409a8e51737e4d9…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com> Committer: Daniel-Constantin Mierla <miconda(a)gmail.com> Date: 2019-03-10T09:21:01+01:00 core: kemi - corresponding functions to check af==ipv4/ipv6 (cherry picked from commit 61795123af0a2d2cb261c36ac78a4833f03a3321) --- Modified: src/core/kemi.c --- Diff:
https://github.com/kamailio/kamailio/commit/6129c28f8c5957ca409a8e51737e4d9…
Patch:
https://github.com/kamailio/kamailio/commit/6129c28f8c5957ca409a8e51737e4d9…
--- diff --git a/src/core/kemi.c b/src/core/kemi.c index 82b3ac4ec0..68a6a80f49 100644 --- a/src/core/kemi.c +++ b/src/core/kemi.c @@ -1041,6 +1041,28 @@ static int sr_kemi_core_is_proto_sctp(sip_msg_t *msg) return (msg->rcv.proto == PROTO_SCTP)?SR_KEMI_TRUE:SR_KEMI_FALSE; } +/** + * + */ +static int sr_kemi_core_is_af_ipv4(sip_msg_t *msg) +{ + if(msg==NULL || msg->rcv.bind_address==NULL) { + return SR_KEMI_FALSE; + } + return (msg->rcv.bind_address->address.af==AF_INET)?SR_KEMI_TRUE:SR_KEMI_FALSE; +} + +/** + * + */ +static int sr_kemi_core_is_af_ipv6(sip_msg_t *msg) +{ + if(msg==NULL || msg->rcv.bind_address==NULL) { + return SR_KEMI_FALSE; + } + return (msg->rcv.bind_address->address.af==AF_INET6)?SR_KEMI_TRUE:SR_KEMI_FALSE; +} + /** * */ @@ -1589,6 +1611,16 @@ static sr_kemi_t _sr_kemi_core[] = { { SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE } }, + { str_init(""), str_init("is_IPv4"), + SR_KEMIP_BOOL, sr_kemi_core_is_af_ipv4, + { SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE, + SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE } + }, + { str_init(""), str_init("is_IPv6"), + SR_KEMIP_BOOL, sr_kemi_core_is_af_ipv6, + { SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE, + SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE } + }, { {0, 0}, {0, 0}, 0, NULL, { 0, 0, 0, 0, 0, 0 } } };
5 years, 8 months
1
0
0
0
git:5.2:fc093212: core: exported functions to check incoming protocol
by Daniel-Constantin Mierla
Module: kamailio Branch: 5.2 Commit: fc09321222889dac8138d31d2b19247c02041687 URL:
https://github.com/kamailio/kamailio/commit/fc09321222889dac8138d31d2b19247…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com> Committer: Daniel-Constantin Mierla <miconda(a)gmail.com> Date: 2019-03-10T09:20:49+01:00 core: exported functions to check incoming protocol - corresponding to proto==UDP/TCP/TLS/... (cherry picked from commit d33d60e08b5081a605149b3bff2a0397c0952e9b) --- Modified: src/core/kemi.c --- Diff:
https://github.com/kamailio/kamailio/commit/fc09321222889dac8138d31d2b19247…
Patch:
https://github.com/kamailio/kamailio/commit/fc09321222889dac8138d31d2b19247…
--- diff --git a/src/core/kemi.c b/src/core/kemi.c index 282be877c9..82b3ac4ec0 100644 --- a/src/core/kemi.c +++ b/src/core/kemi.c @@ -993,6 +993,54 @@ static int sr_kemi_core_is_method_prack(sip_msg_t *msg) return sr_kemi_core_is_method_type(msg, METHOD_PRACK); } +/** + * + */ +static int sr_kemi_core_is_proto_udp(sip_msg_t *msg) +{ + return (msg->rcv.proto == PROTO_UDP)?SR_KEMI_TRUE:SR_KEMI_FALSE; +} + +/** + * + */ +static int sr_kemi_core_is_proto_tcp(sip_msg_t *msg) +{ + return (msg->rcv.proto == PROTO_TCP)?SR_KEMI_TRUE:SR_KEMI_FALSE; +} + +/** + * + */ +static int sr_kemi_core_is_proto_tls(sip_msg_t *msg) +{ + return (msg->rcv.proto == PROTO_TLS)?SR_KEMI_TRUE:SR_KEMI_FALSE; +} + +/** + * + */ +static int sr_kemi_core_is_proto_ws(sip_msg_t *msg) +{ + return (msg->rcv.proto == PROTO_WS)?SR_KEMI_TRUE:SR_KEMI_FALSE; +} + +/** + * + */ +static int sr_kemi_core_is_proto_wss(sip_msg_t *msg) +{ + return (msg->rcv.proto == PROTO_WSS)?SR_KEMI_TRUE:SR_KEMI_FALSE; +} + +/** + * + */ +static int sr_kemi_core_is_proto_sctp(sip_msg_t *msg) +{ + return (msg->rcv.proto == PROTO_SCTP)?SR_KEMI_TRUE:SR_KEMI_FALSE; +} + /** * */ @@ -1511,6 +1559,36 @@ static sr_kemi_t _sr_kemi_core[] = { { SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE } }, + { str_init(""), str_init("is_UDP"), + SR_KEMIP_BOOL, sr_kemi_core_is_proto_udp, + { SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE, + SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE } + }, + { str_init(""), str_init("is_TCP"), + SR_KEMIP_BOOL, sr_kemi_core_is_proto_tcp, + { SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE, + SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE } + }, + { str_init(""), str_init("is_TLS"), + SR_KEMIP_BOOL, sr_kemi_core_is_proto_tls, + { SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE, + SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE } + }, + { str_init(""), str_init("is_WS"), + SR_KEMIP_BOOL, sr_kemi_core_is_proto_ws, + { SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE, + SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE } + }, + { str_init(""), str_init("is_WSS"), + SR_KEMIP_BOOL, sr_kemi_core_is_proto_wss, + { SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE, + SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE } + }, + { str_init(""), str_init("is_SCTP"), + SR_KEMIP_BOOL, sr_kemi_core_is_proto_sctp, + { SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE, + SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE } + }, { {0, 0}, {0, 0}, 0, NULL, { 0, 0, 0, 0, 0, 0 } } };
5 years, 8 months
1
0
0
0
git:master:a2915a9f: app_python: execution log message based on core latency_limit_action
by Daniel-Constantin Mierla
Module: kamailio Branch: master Commit: a2915a9fc3d974e85829ccb6ea22d655124d4463 URL:
https://github.com/kamailio/kamailio/commit/a2915a9fc3d974e85829ccb6ea22d65…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com> Committer: Daniel-Constantin Mierla <miconda(a)gmail.com> Date: 2019-03-10T10:56:03+01:00 app_python: execution log message based on core latency_limit_action --- Modified: src/modules/app_python/apy_kemi.c --- Diff:
https://github.com/kamailio/kamailio/commit/a2915a9fc3d974e85829ccb6ea22d65…
Patch:
https://github.com/kamailio/kamailio/commit/a2915a9fc3d974e85829ccb6ea22d65…
--- diff --git a/src/modules/app_python/apy_kemi.c b/src/modules/app_python/apy_kemi.c index 87e2ccce07..7a3717ecce 100644 --- a/src/modules/app_python/apy_kemi.c +++ b/src/modules/app_python/apy_kemi.c @@ -23,12 +23,14 @@ #include <stdlib.h> #include <Python.h> +#include <frameobject.h> #include "../../core/dprint.h" #include "../../core/route.h" #include "../../core/fmsg.h" #include "../../core/kemi.h" #include "../../core/pvar.h" +#include "../../core/timer.h" #include "../../core/mem/pkg.h" #include "../../core/mem/shm.h" #include "../../core/rpc.h" @@ -160,15 +162,16 @@ PyObject *sr_apy_kemi_return_str(sr_kemi_t *ket, char *sval, int slen) { return PyString_FromStringAndSize(sval, slen); } + /** * */ -PyObject *sr_apy_kemi_exec_func(PyObject *self, PyObject *args, int idx) +PyObject *sr_apy_kemi_exec_func_ex(sr_kemi_t *ket, PyObject *self, + PyObject *args, int idx) { str fname; int i; int ret; - sr_kemi_t *ket = NULL; sr_kemi_val_t vps[SR_KEMI_PARAMS_MAX]; sr_apy_env_t *env_P; sip_msg_t *lmsg = NULL; @@ -185,10 +188,6 @@ PyObject *sr_apy_kemi_exec_func(PyObject *self, PyObject *args, int idx) lmsg = env_P->msg; } - ket = sr_apy_kemi_export_get(idx); - if(ket==NULL) { - return sr_kemi_apy_return_false(); - } if(ket->mname.len>0) { LM_DBG("execution of method: %.*s\n", ket->fname.len, ket->fname.s); } else { @@ -700,6 +699,50 @@ PyObject *sr_apy_kemi_exec_func(PyObject *self, PyObject *args, int idx) } } +/** + * + */ +PyObject *sr_apy_kemi_exec_func(PyObject *self, PyObject *args, int idx) +{ + sr_kemi_t *ket = NULL; + PyObject *ret = NULL; + unsigned int ms = 0; + PyThreadState *pstate = NULL; + PyFrameObject *pframe = NULL; + + ket = sr_apy_kemi_export_get(idx); + if(ket==NULL) { + return sr_kemi_apy_return_false(); + } + if(unlikely(cfg_get(core, core_cfg, latency_limit_action)>0)) { + ms = TICKS_TO_MS(get_ticks_raw()); + } + + ret = sr_apy_kemi_exec_func_ex(ket, self, args, idx); + + if(unlikely(cfg_get(core, core_cfg, latency_limit_action)>0)) { + ms = TICKS_TO_MS(get_ticks_raw()) - ms; + if(ms >= cfg_get(core, core_cfg, latency_limit_action) + && is_printable(cfg_get(core, core_cfg, latency_log))) { + pstate = PyThreadState_GET(); + if (pstate != NULL && pstate->frame != NULL) { + pframe = pstate->frame; + } + + LOG(cfg_get(core, core_cfg, latency_log), + "alert - action KSR.%s%s%s(...)" + " took too long [%u ms] (file:%s func:%s line:%d)\n", + (ket->mname.len>0)?ket->mname.s:"", + (ket->mname.len>0)?".":"", ket->fname.s, ms, + (pframe)?PyString_AsString(pframe->f_code->co_filename):"", + (pframe)?PyString_AsString(pframe->f_code->co_name):"", + (pframe)?PyCode_Addr2Line(pframe->f_code, pframe->f_lasti):0); + } + } + + return ret; +} + /** * */
5 years, 8 months
1
0
0
0
git:5.1:8200a5b6: core: free resources in xavp_clone_level_nodata
by Henning Westerholt
Module: kamailio Branch: 5.1 Commit: 8200a5b68a5a2852bbd813fdec1bd82ef8a6ea01 URL:
https://github.com/kamailio/kamailio/commit/8200a5b68a5a2852bbd813fdec1bd82…
Author: lazedo <luis.azedo(a)factorlusitano.com> Committer: Henning Westerholt <hw(a)kamailio.org> Date: 2019-03-09T12:56:12+01:00 core: free resources in xavp_clone_level_nodata (cherry picked from commit 0c93efec739551f3e74e119d4b789d0bb6e766d6) --- Modified: src/core/xavp.c --- Diff:
https://github.com/kamailio/kamailio/commit/8200a5b68a5a2852bbd813fdec1bd82…
Patch:
https://github.com/kamailio/kamailio/commit/8200a5b68a5a2852bbd813fdec1bd82…
--- diff --git a/src/core/xavp.c b/src/core/xavp.c index df6ab03a6f..916b738ed9 100644 --- a/src/core/xavp.c +++ b/src/core/xavp.c @@ -660,14 +660,11 @@ sr_xavp_t *xavp_clone_level_nodata(sr_xavp_t *xold) if(navp==NULL) { LM_ERR("cannot create cloned embedded xavp\n"); - if(xnew->val.v.xavp == NULL) - { - shm_free(xnew); - return NULL; - } else { - xavp_destroy_list(&navp); - return NULL; + if(xnew->val.v.xavp != NULL) { + xavp_destroy_list(&xnew->val.v.xavp); } + shm_free(xnew); + return NULL; } LM_DBG("cloned inner xavp [%.*s]\n", oavp->name.len, oavp->name.s); if(xnew->val.v.xavp == NULL)
5 years, 8 months
1
0
0
0
git:5.2:0b511b49: pv: use parsed uri to compute tosocket
by Henning Westerholt
Module: kamailio Branch: 5.2 Commit: 0b511b49a7c7327cef7bd5cec63b1c5fddb0750c URL:
https://github.com/kamailio/kamailio/commit/0b511b49a7c7327cef7bd5cec63b1c5…
Author: lazedo <luis.azedo(a)factorlusitano.com> Committer: Henning Westerholt <hw(a)kamailio.org> Date: 2019-03-09T12:56:30+01:00 pv: use parsed uri to compute tosocket (cherry picked from commit dc9531affae6336ea3771792a80385de56205ff0) --- Modified: src/modules/pv/pv_trans.c --- Diff:
https://github.com/kamailio/kamailio/commit/0b511b49a7c7327cef7bd5cec63b1c5…
Patch:
https://github.com/kamailio/kamailio/commit/0b511b49a7c7327cef7bd5cec63b1c5…
--- diff --git a/src/modules/pv/pv_trans.c b/src/modules/pv/pv_trans.c index f8074170ac..efbf8e8cf2 100644 --- a/src/modules/pv/pv_trans.c +++ b/src/modules/pv/pv_trans.c @@ -1389,29 +1389,24 @@ int tr_eval_uri(struct sip_msg *msg, tr_param_t *tp, int subtype, } break; case TR_URI_TOSOCKET: - if(msg==NULL) { + if(get_valid_proto_string(_tr_parsed_uri.proto, 1, 0, &sproto)<0) { + LM_WARN("unknown transport protocol\n"); + val->rs = _tr_empty; + break; + } + tr_set_crt_buffer(); + val->rs.len = snprintf(_tr_buffer, TR_BUFFER_SIZE, + "%.*s:%.*s:%d", sproto.len, sproto.s, + _tr_parsed_uri.host.len, _tr_parsed_uri.host.s, + (_tr_parsed_uri.port_no!=0) + ?(int)_tr_parsed_uri.port_no:5060); + if(val->rs.len<=0 || val->rs.len>=TR_BUFFER_SIZE) { + LM_WARN("error converting uri to socket address [%.*s]\n", + _tr_uri.len, _tr_uri.s); val->rs = _tr_empty; break; - } else { - if(get_valid_proto_string(msg->rcv.proto, 1, 0, &sproto)<0) { - LM_WARN("unknown transport protocol\n"); - val->rs = _tr_empty; - break; - } - tr_set_crt_buffer(); - val->rs.len = snprintf(_tr_buffer, TR_BUFFER_SIZE, - "%.*s:%.*s:%d", sproto.len, sproto.s, - _tr_parsed_uri.host.len, _tr_parsed_uri.host.s, - (_tr_parsed_uri.port_no!=0) - ?(int)_tr_parsed_uri.port_no:5060); - if(val->rs.len<=0 || val->rs.len>=TR_BUFFER_SIZE) { - LM_WARN("error converting uri to socket address [%.*s]\n", - _tr_uri.len, _tr_uri.s); - val->rs = _tr_empty; - break; - } - val->rs.s = _tr_buffer; } + val->rs.s = _tr_buffer; break; default: LM_ERR("unknown subtype %d\n", @@ -2684,7 +2679,7 @@ char* tr_parse_uri(str* in, trans_t *t) } else if(name.len==6 && strncasecmp(name.s, "scheme", 6)==0) { t->subtype = TR_URI_SCHEME; goto done; - } else if(name.len==6 && strncasecmp(name.s, "tosocket", 8)==0) { + } else if(name.len==8 && strncasecmp(name.s, "tosocket", 8)==0) { t->subtype = TR_URI_TOSOCKET; goto done; }
5 years, 8 months
1
0
0
0
git:5.2:cfd4947e: core: free resources in xavp_clone_level_nodata
by Henning Westerholt
Module: kamailio Branch: 5.2 Commit: cfd4947edd6363b31c31706c7c352c5789642ddc URL:
https://github.com/kamailio/kamailio/commit/cfd4947edd6363b31c31706c7c352c5…
Author: lazedo <luis.azedo(a)factorlusitano.com> Committer: Henning Westerholt <hw(a)kamailio.org> Date: 2019-03-09T12:56:06+01:00 core: free resources in xavp_clone_level_nodata (cherry picked from commit 0c93efec739551f3e74e119d4b789d0bb6e766d6) --- Modified: src/core/xavp.c --- Diff:
https://github.com/kamailio/kamailio/commit/cfd4947edd6363b31c31706c7c352c5…
Patch:
https://github.com/kamailio/kamailio/commit/cfd4947edd6363b31c31706c7c352c5…
--- diff --git a/src/core/xavp.c b/src/core/xavp.c index 66797f910b..c758a98099 100644 --- a/src/core/xavp.c +++ b/src/core/xavp.c @@ -712,14 +712,11 @@ sr_xavp_t *xavp_clone_level_nodata(sr_xavp_t *xold) if(navp==NULL) { LM_ERR("cannot create cloned embedded xavp\n"); - if(xnew->val.v.xavp == NULL) - { - shm_free(xnew); - return NULL; - } else { - xavp_destroy_list(&navp); - return NULL; + if(xnew->val.v.xavp != NULL) { + xavp_destroy_list(&xnew->val.v.xavp); } + shm_free(xnew); + return NULL; } LM_DBG("cloned inner xavp [%.*s]\n", oavp->name.len, oavp->name.s); if(xnew->val.v.xavp == NULL)
5 years, 8 months
1
0
0
0
git:5.2:e244d6d5: core: increase max_defines from 256 to 512
by Henning Westerholt
Module: kamailio Branch: 5.2 Commit: e244d6d5e8138b97f3c3aaa55970835576f9cc3e URL:
https://github.com/kamailio/kamailio/commit/e244d6d5e8138b97f3c3aaa55970835…
Author: lazedo <luis.azedo(a)factorlusitano.com> Committer: Henning Westerholt <hw(a)kamailio.org> Date: 2019-03-09T12:55:53+01:00 core: increase max_defines from 256 to 512 (cherry picked from commit b4696169e8b464da01774b1e40af677f941c803b) --- Modified: src/core/cfg.lex --- Diff:
https://github.com/kamailio/kamailio/commit/e244d6d5e8138b97f3c3aaa55970835…
Patch:
https://github.com/kamailio/kamailio/commit/e244d6d5e8138b97f3c3aaa55970835…
--- diff --git a/src/core/cfg.lex b/src/core/cfg.lex index bcdad27322..6a0d23d76f 100644 --- a/src/core/cfg.lex +++ b/src/core/cfg.lex @@ -1707,7 +1707,7 @@ static int sr_pop_yy_state() /* define/ifdef support */ -#define MAX_DEFINES 256 +#define MAX_DEFINES 512 static ksr_ppdefine_t pp_defines[MAX_DEFINES]; static int pp_num_defines = 0; static int pp_define_type = 0; @@ -1717,7 +1717,7 @@ static int pp_define_index = -1; * ifdef(defined), ifndef(undefined), or the opposite of these * two, but in an else branch */ -#define MAX_IFDEFS 256 +#define MAX_IFDEFS 512 static int pp_ifdef_stack[MAX_IFDEFS]; static int pp_sptr = 0; /* stack pointer */
5 years, 8 months
1
0
0
0
git:master:1ca82c1a: tmx: use t_release_transaction for t_drop
by Henning Westerholt
Module: kamailio Branch: master Commit: 1ca82c1ab3412ae1572f12d81a92bb76abbdb4ad URL:
https://github.com/kamailio/kamailio/commit/1ca82c1ab3412ae1572f12d81a92bb7…
Author: lazedo <luis.azedo(a)factorlusitano.com> Committer: Henning Westerholt <henningw(a)users.noreply.github.com> Date: 2019-03-09T12:52:43+01:00 tmx: use t_release_transaction for t_drop --- Modified: src/modules/tmx/tmx_mod.c --- Diff:
https://github.com/kamailio/kamailio/commit/1ca82c1ab3412ae1572f12d81a92bb7…
Patch:
https://github.com/kamailio/kamailio/commit/1ca82c1ab3412ae1572f12d81a92bb7…
--- diff --git a/src/modules/tmx/tmx_mod.c b/src/modules/tmx/tmx_mod.c index 1dc22f4f27..a6155f25b1 100644 --- a/src/modules/tmx/tmx_mod.c +++ b/src/modules/tmx/tmx_mod.c @@ -715,9 +715,7 @@ static int ki_t_drop_rcode(sip_msg_t* msg, int rcode) } t->uas.status = (unsigned int)rcode; - if(t_is_request_route(msg) == 1) { - _tmx_tmb.t_release(msg); - } + _tmx_tmb.t_release_transaction(t); return 0; }
5 years, 8 months
1
0
0
0
git:master:22f31b21: core: increase max_defines from 256 to 512
by Henning Westerholt
Module: kamailio Branch: master Commit: 22f31b21470221dd042137f35695b808900dfe16 URL:
https://github.com/kamailio/kamailio/commit/22f31b21470221dd042137f35695b80…
Author: lazedo <luis.azedo(a)factorlusitano.com> Committer: Henning Westerholt <henningw(a)users.noreply.github.com> Date: 2019-03-09T12:52:43+01:00 core: increase max_defines from 256 to 512 --- Modified: src/core/cfg.lex --- Diff:
https://github.com/kamailio/kamailio/commit/22f31b21470221dd042137f35695b80…
Patch:
https://github.com/kamailio/kamailio/commit/22f31b21470221dd042137f35695b80…
--- diff --git a/src/core/cfg.lex b/src/core/cfg.lex index 04e40424dd..706c1b05ce 100644 --- a/src/core/cfg.lex +++ b/src/core/cfg.lex @@ -1718,7 +1718,7 @@ static int sr_pop_yy_state() /* define/ifdef support */ -#define MAX_DEFINES 256 +#define MAX_DEFINES 512 static ksr_ppdefine_t pp_defines[MAX_DEFINES]; static int pp_num_defines = 0; static int pp_define_type = 0; @@ -1728,7 +1728,7 @@ static int pp_define_index = -1; * ifdef(defined), ifndef(undefined), or the opposite of these * two, but in an else branch */ -#define MAX_IFDEFS 256 +#define MAX_IFDEFS 512 static int pp_ifdef_stack[MAX_IFDEFS]; static int pp_sptr = 0; /* stack pointer */
5 years, 8 months
1
0
0
0
← Newer
1
...
25
26
27
28
29
30
31
32
33
Older →
Jump to page:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
Results per page:
10
25
50
100
200