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
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
October 2013
----- 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
33 participants
254 discussions
Start a n
N
ew thread
git:master: core: fix TCP connection leak
by Peter Dunkley
Module: sip-router Branch: master Commit: 6cfd13cbddd1869ffbc947fdecd77d18a3fcb886 URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=6cfd13c…
Author: Peter Dunkley <peter.dunkley(a)crocodilertc.net> Committer: Peter Dunkley <peter.dunkley(a)crocodilertc.net> Date: Tue Oct 1 10:52:01 2013 +0100 core: fix TCP connection leak - patch provided by Vitally Aleksandrov --- msg_translator.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/msg_translator.c b/msg_translator.c index b7d4894..b4581e7 100644 --- a/msg_translator.c +++ b/msg_translator.c @@ -2509,9 +2509,11 @@ char* via_builder( unsigned int *len, } else if (con->rcv.proto==PROTO_WSS) { memcpy(line_buf+MY_VIA_LEN-4, "WSS ", 4); } else { + tcpconn_put(con); LOG(L_CRIT, "BUG: via_builder: unknown proto %d\n", con->rcv.proto); return 0; } + tcpconn_put(con); }else if (send_info->proto==PROTO_WSS){ memcpy(line_buf+MY_VIA_LEN-4, "WSS ", 4); }else{
11 years, 2 months
1
0
0
0
git:tmp/ims_charging: Beautified XML-Doc for IMS-Charging
by Carsten Bock
Module: sip-router Branch: tmp/ims_charging Commit: 6fdc83ecd7fa5313635a0041e76498704b0c8225 URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=6fdc83e…
Author: Carsten Bock <carsten(a)ng-voice.com> Committer: Carsten Bock <carsten(a)ng-voice.com> Date: Mon Sep 30 20:46:30 2013 +0200 Beautified XML-Doc for IMS-Charging --- modules/ims_charging/doc/ims_charging_admin.xml | 1111 +++++++++++------------ 1 files changed, 514 insertions(+), 597 deletions(-) Diff:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commitdiff;h=6fd…
11 years, 2 months
4
6
0
0
git:master: tm: added t_use_uac_headers() to documentation
by Daniel-Constantin Mierla
Module: sip-router Branch: master Commit: b5b570f278124bf0456d43a36a7c0eb5eaa9efe6 URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=b5b570f…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com> Committer: Daniel-Constantin Mierla <miconda(a)gmail.com> Date: Tue Oct 1 09:34:17 2013 +0200 tm: added t_use_uac_headers() to documentation --- modules/tm/README | 21 +++++++++++++++++++-- modules/tm/doc/functions.xml | 20 ++++++++++++++++++++ 2 files changed, 39 insertions(+), 2 deletions(-) diff --git a/modules/tm/README b/modules/tm/README index 6b9e8b5..8c6fde0 100644 --- a/modules/tm/README +++ b/modules/tm/README @@ -119,6 +119,7 @@ Juha Heinanen 5.47. t_relay_to(proxy, flags) 5.48. t_set_no_e2e_cancel_reason(0|1) 5.49. t_is_set(target) + 5.50. t_use_uac_headers() 6. TM Module API @@ -229,7 +230,8 @@ Juha Heinanen 1.85. t_replicate usage 1.86. t_set_no_e2e_cancel_reason usage 1.87. t_replicate usage - 1.88. event_route[tm:branch-failure] usage + 1.88. t_use_uac_headers usage + 1.89. event_route[tm:branch-failure] usage Chapter 1. Admin Guide @@ -337,6 +339,7 @@ Chapter 1. Admin Guide 5.47. t_relay_to(proxy, flags) 5.48. t_set_no_e2e_cancel_reason(0|1) 5.49. t_is_set(target) + 5.50. t_use_uac_headers() 6. TM Module API @@ -1606,6 +1609,7 @@ modparam("tm", "dns_reuse_rcv_socket", 1) 5.47. t_relay_to(proxy, flags) 5.48. t_set_no_e2e_cancel_reason(0|1) 5.49. t_is_set(target) + 5.50. t_use_uac_headers() 5.1. t_relay([host, port]) @@ -2651,6 +2655,19 @@ if(!t_is_set("failure_route")) LM_DBG("no failure route will be executed for current transaction\n"); ... +5.50. t_use_uac_headers() + + Set internal flags to tell tm to use UAC side for building headers for + local generated requests (ACK, CANCEL) - useful when changing From/To + headers using other functions than uac_replace_[from|to](). + + It returns true. + + Example 1.88. t_use_uac_headers usage +... +t_use_uac_headers(); +... + 6. TM Module API 6.1. Defines @@ -2832,7 +2849,7 @@ action *route) enabled with the t_on_branch_failure function. This event_route uses the BRANCH_FAILURE_ROUTE route type. - Example 1.88. event_route[tm:branch-failure] usage + Example 1.89. event_route[tm:branch-failure] usage ... route { t_on_branch_failure("myroute"); diff --git a/modules/tm/doc/functions.xml b/modules/tm/doc/functions.xml index fe37914..fba4e92 100644 --- a/modules/tm/doc/functions.xml +++ b/modules/tm/doc/functions.xml @@ -1701,4 +1701,24 @@ if(!t_is_set("failure_route")) </example> </section> + <section id="tm.f.t_use_uac_headers"> + <title> + <function>t_use_uac_headers()</function> + </title> + <para> + Set internal flags to tell tm to use UAC side for building headers for + local generated requests (ACK, CANCEL) - useful when changing From/To + headers using other functions than uac_replace_[from|to](). + </para> + <para>It returns true.</para> + <example> + <title><function>t_use_uac_headers</function> usage</title> + <programlisting> +... +t_use_uac_headers(); +... + </programlisting> + </example> + </section> + </section>
11 years, 2 months
1
0
0
0
git:master: tm: new function t_use_uac_headers()
by Daniel-Constantin Mierla
Module: sip-router Branch: master Commit: 0e71fec1e108e1c9b97486ced8c1328738ca13c2 URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=0e71fec…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com> Committer: Daniel-Constantin Mierla <miconda(a)gmail.com> Date: Tue Oct 1 09:27:46 2013 +0200 tm: new function t_use_uac_headers() - set internal flags to tell tm to use UAC side for building headers for local generated requests (ACK, CANCEL) - useful when changing From/To headers using other functions than uac_replace_[from|to]() --- modules/tm/tm.c | 15 +++++++++++++++ 1 files changed, 15 insertions(+), 0 deletions(-) diff --git a/modules/tm/tm.c b/modules/tm/tm.c index 7df7ade..3bdc7fb 100644 --- a/modules/tm/tm.c +++ b/modules/tm/tm.c @@ -303,6 +303,7 @@ static int w_t_drop_replies(struct sip_msg* msg, char* foo, char* bar); static int w_t_save_lumps(struct sip_msg* msg, char* foo, char* bar); static int w_t_check_trans(struct sip_msg* msg, char* foo, char* bar); static int w_t_is_set(struct sip_msg* msg, char* target, char* bar); +static int w_t_use_uac_headers(sip_msg_t* msg, char* foo, char* bar); /* by default the fr timers avps are not set, so that the avps won't be @@ -483,6 +484,8 @@ static cmd_export_t cmds[]={ REQUEST_ROUTE|ONREPLY_ROUTE|BRANCH_ROUTE }, {"t_is_set", w_t_is_set, 1, fixup_t_is_set, ANY_ROUTE }, + {"t_use_uac_headers", w_t_use_uac_headers, 0, 0, + ANY_ROUTE }, {"t_load_contacts", t_load_contacts, 0, 0, REQUEST_ROUTE | FAILURE_ROUTE}, @@ -2304,6 +2307,18 @@ inline static int w_t_relay_to(struct sip_msg *msg, char *proxy, char *flags) } +static int w_t_use_uac_headers(sip_msg_t* msg, char* foo, char* bar) +{ + tm_cell_t *t; + + t=get_t(); + if (t!=NULL && t!=T_UNDEFINED) { + t->uas.request->msg_flags |= FL_USE_UAC_FROM|FL_USE_UAC_TO; + } + msg->msg_flags |= FL_USE_UAC_FROM|FL_USE_UAC_TO; + + return 1; +} /* rpc docs */
11 years, 2 months
1
0
0
0
← Newer
1
...
23
24
25
26
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
Results per page:
10
25
50
100
200