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
December 2008
----- 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
11 participants
70 discussions
Start a n
N
ew thread
git:ser_core_cvs: added README.prefix_route
by Andrei Pelinescu-Onciul
Module: sip-router Branch: ser_core_cvs Commit: f78f8c9af88b8b29a1304fe62f686c6929642cfc URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=f78f8c9…
Author: Alfred E. Heggestad <aeh(a)db.org> Committer: Alfred E. Heggestad <aeh(a)db.org> Date: Mon Dec 8 10:36:46 2008 +0000 added README.prefix_route --- pkg/rpm/ser.spec-4.1 | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/pkg/rpm/ser.spec-4.1 b/pkg/rpm/ser.spec-4.1 index c9be028..9f2682d 100644 --- a/pkg/rpm/ser.spec-4.1 +++ b/pkg/rpm/ser.spec-4.1 @@ -160,6 +160,7 @@ fi %doc %{_docdir}/ser/README.pdt %doc %{_docdir}/ser/README.permissions %doc %{_docdir}/ser/README.pike +%doc %{_docdir}/ser/README.prefix_route %doc %{_docdir}/ser/README.print %doc %{_docdir}/ser/README.ratelimit %doc %{_docdir}/ser/README.registrar
15 years, 11 months
1
0
0
0
git:ser_core_cvs: clean up whitespace in makefile
by Andrei Pelinescu-Onciul
Module: sip-router Branch: ser_core_cvs Commit: befa138d0972ba56f05efb3045dd83e95e12ee03 URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=befa138…
Author: Alfred E. Heggestad <aeh(a)db.org> Committer: Alfred E. Heggestad <aeh(a)db.org> Date: Mon Dec 8 12:26:39 2008 +0000 clean up whitespace in makefile --- Makefile | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 676d8c4..b0f5c88 100644 --- a/Makefile +++ b/Makefile @@ -577,7 +577,7 @@ $(man_prefix)/$(man_dir)/man7: $(man_prefix)/$(man_dir)/man5: mkdir -p $(man_prefix)/$(man_dir)/man5 - + # note: sed with POSIX.1 regex doesn't support |, + or ? (darwin, solaris ...) install-cfg: $(cfg_prefix)/$(cfg_dir) sed -e "s#/usr/.*lib/ser/modules/#$(modules-target)#g" \ @@ -600,7 +600,7 @@ install-cfg: $(cfg_prefix)/$(cfg_dir) # radius dictionary $(INSTALL_TOUCH) $(cfg_prefix)/$(cfg_dir)/dictionary.ser $(INSTALL_CFG) etc/dictionary.ser $(cfg_prefix)/$(cfg_dir) - + # TLS configuration $(INSTALL_TOUCH) $(cfg_prefix)/$(cfg_dir)/tls.cfg $(INSTALL_CFG) modules/tls/tls.cfg $(cfg_prefix)/$(cfg_dir)
15 years, 11 months
1
0
0
0
git:ser_core_cvs: Use explicit comparison with NULL, it' s more clear and shuts off gcc,
by Andrei Pelinescu-Onciul
Module: sip-router Branch: ser_core_cvs Commit: 2577e2f300c64e5ef88b10ec0941906dee7e0af5 URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=2577e2f…
Author: Maxim Sobolev <sobomax(a)sippysoft.com> Committer: Maxim Sobolev <sobomax(a)sippysoft.com> Date: Mon Dec 8 06:16:52 2008 +0000 Use explicit comparison with NULL, it's more clear and shuts off gcc, which otherwise compain that condition is always true when argument is pointer to the struct allocated on stack. --- lib/cds/sstr.h | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/cds/sstr.h b/lib/cds/sstr.h index 7dc331e..64b96b4 100644 --- a/lib/cds/sstr.h +++ b/lib/cds/sstr.h @@ -77,7 +77,7 @@ char *zt_strdup(const char*src); /** frees string content if allocated */ /* void str_free_content(str_t *s); */ -#define str_free_content(str) do { if (str) { \ +#define str_free_content(str) do { if (str != NULL) { \ if (((str)->len > 0) && ((str)->s)) cds_free((str)->s);\ (str)->len = 0; \ (str)->s = 0; \ @@ -85,13 +85,13 @@ char *zt_strdup(const char*src); /** frees string content if allocated and then the string itself */ /* void str_free(str_t *s); */ -#define str_free(str) do { if (str) { \ +#define str_free(str) do { if (str != NULL) { \ if (((str)->len > 0) && ((str)->s)) cds_free((str)->s);\ cds_free(str); \ } } while (0) /* clears string content */ -#define str_clear(str) do { if (str) { \ +#define str_clear(str) do { if (str != NULL) { \ (str)->len = 0; \ (str)->s = 0; \ } } while (0)
15 years, 11 months
1
0
0
0
git:ser_core_cvs: added new module prefix_route
by Andrei Pelinescu-Onciul
Module: sip-router Branch: ser_core_cvs Commit: 6a7471a60ad923bf20f9941377fa637576fd47f2 URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=6a7471a…
Author: Alfred E. Heggestad <aeh(a)db.org> Committer: Alfred E. Heggestad <aeh(a)db.org> Date: Sat Dec 6 22:09:13 2008 +0000 added new module prefix_route --- pkg/rpm/ser.spec-4.1 | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/pkg/rpm/ser.spec-4.1 b/pkg/rpm/ser.spec-4.1 index 83e26a8..c9be028 100644 --- a/pkg/rpm/ser.spec-4.1 +++ b/pkg/rpm/ser.spec-4.1 @@ -216,6 +216,7 @@ fi %{_libdir}/ser/modules/pdt.so %{_libdir}/ser/modules/permissions.so %{_libdir}/ser/modules/pike.so +%{_libdir}/ser/modules/prefix_route.so %{_libdir}/ser/modules/print.so %{_libdir}/ser/modules/ratelimit.so %{_libdir}/ser/modules/registrar.so
15 years, 11 months
1
0
0
0
git:ser_core_cvs: Fix warnings on LP64 plarforms out there ( all 64-bit amd64/emt64 unixes
by Andrei Pelinescu-Onciul
Module: sip-router Branch: ser_core_cvs Commit: 8bed2c0e634a97254cd28a931e3e39771780dc17 URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=8bed2c0…
Author: Maxim Sobolev <sobomax(a)sippysoft.com> Committer: Maxim Sobolev <sobomax(a)sippysoft.com> Date: Mon Dec 8 06:11:39 2008 +0000 Fix warnings on LP64 plarforms out there (all 64-bit amd64/emt64 unixes and linuxes) where sizeof(*void) != sizeof(int). --- io_wait.h | 2 +- lib/binrpc/binrpc_api.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/io_wait.h b/io_wait.h index 148aa34..0557c00 100644 --- a/io_wait.h +++ b/io_wait.h @@ -1104,7 +1104,7 @@ again: adding something to the changes array, close() and applying the changes */ LOG(L_INFO, "INFO: io_wait_loop_kqueue: kevent error on " - "fd %d: %s [%ld]\n", h->kq_array[r].ident, + "fd %ld: %s [%ld]\n", h->kq_array[r].ident, strerror(h->kq_array[r].data), (long)h->kq_array[r].data); }else{ diff --git a/lib/binrpc/binrpc_api.c b/lib/binrpc/binrpc_api.c index e843238..faf82d1 100644 --- a/lib/binrpc/binrpc_api.c +++ b/lib/binrpc/binrpc_api.c @@ -500,7 +500,7 @@ static int get_reply(struct binrpc_handle *handle, /* we must read all datagram in one read call, otherwise unread part is truncated and lost. Read will block execution */ if (crt - hdr_end < tl) { snprintf(binrpc_last_errs, sizeof(binrpc_last_errs)-1, - "get_reply: datagram truncated. Received: %d, Expected: %d.", + "get_reply: datagram truncated. Received: %ld, Expected: %d.", crt-hdr_end, tl); return FATAL_ERROR; }
15 years, 11 months
1
0
0
0
git:ser_core_cvs: more type punning warnings fixed
by Andrei Pelinescu-Onciul
Module: sip-router Branch: ser_core_cvs Commit: 018226b08a8ec20c79d324bc4c398bff9a87728a URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=018226b…
Author: Andrei Pelinescu-Onciul <andrei(a)iptel.org> Committer: Andrei Pelinescu-Onciul <andrei(a)iptel.org> Date: Fri Nov 28 15:24:15 2008 +0000 more type punning warnings fixed --- io_wait.h | 8 ++++++-- ip_addr.c | 2 +- ip_addr.h | 2 +- modules/tm/t_cancel.c | 10 +++++++--- 4 files changed, 15 insertions(+), 7 deletions(-) diff --git a/io_wait.h b/io_wait.h index 9e047f4..148aa34 100644 --- a/io_wait.h +++ b/io_wait.h @@ -1142,6 +1142,9 @@ inline static int io_wait_loop_sigio_rt(io_wait_h* h, int t) int sigio_fd; struct fd_map* fm; int revents; +#ifdef SIGINFO64_WORKARROUND + int* pi; +#endif ret=1; /* 1 event per call normally */ @@ -1177,8 +1180,9 @@ again: * On newer kernels this is fixed (si_band is long in the kernel too). * -- andrei */ if ((_os_ver<0x020605) && (sizeof(siginfo.si_band)>sizeof(int))){ - sigio_band=*((int*)(void*)&siginfo.si_band); - sigio_fd=*(((int*)(void*)&siginfo.si_band)+1); + pi=(int*)(void*)&siginfo.si_band; /* avoid type punning warnings */ + sigio_band=*pi; + sigio_fd=*(pi+1); }else #endif { diff --git a/ip_addr.c b/ip_addr.c index 7f73775..e17a69d 100644 --- a/ip_addr.c +++ b/ip_addr.c @@ -190,7 +190,7 @@ int is_mcast(struct ip_addr* ip) return IN_MULTICAST(htonl(ip->u.addr32[0])); #ifdef USE_IPV6 } else if (ip->af==AF_INET6){ - return IN6_IS_ADDR_MULTICAST((struct in6_addr *)&ip->u.addr); + return IN6_IS_ADDR_MULTICAST(&ip->u.addr32[0]); #endif /* USE_IPV6 */ } else { LOG(L_ERR, "ERROR: is_mcast: Unsupported protocol family\n"); diff --git a/ip_addr.h b/ip_addr.h index 11d9f8c..6849a87 100644 --- a/ip_addr.h +++ b/ip_addr.h @@ -242,7 +242,7 @@ inline static int ip_addr_loopback(struct ip_addr* ip) return ip->u.addr32[0]==htonl(INADDR_LOOPBACK); #ifdef USE_IPV6 else if (ip->af==AF_INET6) - return IN6_IS_ADDR_LOOPBACK((struct in6_addr *)&ip->u.addr32); + return IN6_IS_ADDR_LOOPBACK(&ip->u.addr32[0]); #endif /* USE_IPV6 */ return 0; } diff --git a/modules/tm/t_cancel.c b/modules/tm/t_cancel.c index 96e4a84..4856abe 100644 --- a/modules/tm/t_cancel.c +++ b/modules/tm/t_cancel.c @@ -194,6 +194,7 @@ int cancel_branch( struct cell *t, int branch, int flags ) struct retr_buf *crb, *irb; int ret; branch_bm_t tmp_bm; + void* pcbuf; crb=&t->uac[branch].local_cancel; irb=&t->uac[branch].request; @@ -216,7 +217,8 @@ int cancel_branch( struct cell *t, int branch, int flags ) DBG("DEBUG: cancel_branch: no response ever received: " "giving up on cancel\n"); /* remove BUSY_BUFFER -- mark cancel buffer as not used */ - atomic_set_long((void*)&crb->buffer, 0); + pcbuf=&crb->buffer; /* workaround for type punning warnings */ + atomic_set_long(pcbuf, 0); if (flags & F_CANCEL_B_FAKE_REPLY){ LOCK_REPLIES(t); if (relay_reply(t, FAKED_REPLY, branch, 487, &tmp_bm, 1) == @@ -235,7 +237,8 @@ int cancel_branch( struct cell *t, int branch, int flags ) if (!(flags & F_CANCEL_B_FORCE_RETR)) stop_rb_retr(irb); /* stop retransmissions */ /* remove BUSY_BUFFER -- mark cancel buffer as not used */ - atomic_set_long((void*)&crb->buffer, 0); + pcbuf=&crb->buffer; /* workaround for type punning warnings */ + atomic_set_long(pcbuf, 0); if (flags & F_CANCEL_B_FAKE_REPLY){ stop_rb_timers( irb ); /* stop even the fr timer */ LOCK_REPLIES(t); @@ -262,7 +265,8 @@ int cancel_branch( struct cell *t, int branch, int flags ) if (!cancel) { LOG(L_ERR, "ERROR: attempt to build a CANCEL failed\n"); /* remove BUSY_BUFFER -- mark cancel buffer as not used */ - atomic_set_long((void*)&crb->buffer, 0); + pcbuf=&crb->buffer; /* workaround for type punning warnings */ + atomic_set_long(pcbuf, 0); return -1; } /* install cancel now */
15 years, 11 months
1
0
0
0
git:ser_core_cvs: avp: warning fixes & more sane usr_avp struct
by Andrei Pelinescu-Onciul
Module: sip-router Branch: ser_core_cvs Commit: fdb745814609b8ed58f15a48a5379f7944b1323e URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=fdb7458…
Author: Andrei Pelinescu-Onciul <andrei(a)iptel.org> Committer: Andrei Pelinescu-Onciul <andrei(a)iptel.org> Date: Fri Nov 28 15:24:01 2008 +0000 avp: warning fixes & more sane usr_avp struct - type punning warning fixed (both for =-Wstrict-aliasing and -Wstrict-aliasing=2) - replaced usr_avp->data with a union (more sane, looks better) --- usr_avp.c | 33 +++++++++++++-------------------- usr_avp.h | 10 ++++++++-- 2 files changed, 21 insertions(+), 22 deletions(-) diff --git a/usr_avp.c b/usr_avp.c index e70479c..6d766e2 100644 --- a/usr_avp.c +++ b/usr_avp.c @@ -154,7 +154,6 @@ avp_t *create_avp (avp_flags_t flags, avp_name_t name, avp_value_t val) struct str_int_data *sid; struct str_str_data *ssd; int len; - void** p_data; if (name.s.s == 0 && name.s.len == 0) { LOG(L_ERR,"ERROR:avp:add_avp: 0 ID or NULL NAME AVP!"); @@ -169,15 +168,15 @@ avp_t *create_avp (avp_flags_t flags, avp_name_t name, avp_value_t val) goto error; } if (flags&AVP_VAL_STR) { - len += sizeof(struct str_str_data)-sizeof(void*) + len += sizeof(struct str_str_data)-sizeof(union usr_avp_data) + name.s.len + 1 /* Terminating zero for regex search */ + val.s.len + 1; /* Value is zero terminated */ } else { - len += sizeof(struct str_int_data)-sizeof(void*) + len += sizeof(struct str_int_data)-sizeof(union usr_avp_data) + name.s.len + 1; /* Terminating zero for regex search */ } } else if (flags&AVP_VAL_STR) { - len += sizeof(str)-sizeof(void*) + val.s.len + 1; + len += sizeof(str)-sizeof(union usr_avp_data) + val.s.len + 1; } avp = (struct usr_avp*)shm_malloc( len ); @@ -189,17 +188,16 @@ avp_t *create_avp (avp_flags_t flags, avp_name_t name, avp_value_t val) avp->flags = flags; avp->id = (flags&AVP_NAME_STR)? compute_ID(&name.s) : name.n ; avp->next = NULL; - p_data=&avp->data; /* strict aliasing /type punning warnings workarround */ switch ( flags&(AVP_NAME_STR|AVP_VAL_STR) ) { case 0: /* avp type ID, int value */ - avp->data = (void*)(long)val.n; + avp->d.l = val.n; break; case AVP_NAME_STR: /* avp type str, int value */ - sid = (struct str_int_data*)p_data; + sid = (struct str_int_data*)&avp->d.data[0]; sid->val = val.n; sid->name.len =name.s.len; sid->name.s = (char*)sid + sizeof(struct str_int_data); @@ -208,7 +206,7 @@ avp_t *create_avp (avp_flags_t flags, avp_name_t name, avp_value_t val) break; case AVP_VAL_STR: /* avp type ID, str value */ - s = (str*)p_data; + s = (str*)&avp->d.data[0]; s->len = val.s.len; s->s = (char*)s + sizeof(str); memcpy( s->s, val.s.s , s->len); @@ -216,7 +214,7 @@ avp_t *create_avp (avp_flags_t flags, avp_name_t name, avp_value_t val) break; case AVP_NAME_STR|AVP_VAL_STR: /* avp type str, str value */ - ssd = (struct str_str_data*)p_data; + ssd = (struct str_str_data*)&avp->d.data[0]; ssd->name.len = name.s.len; ssd->name.s = (char*)ssd + sizeof(struct str_str_data); memcpy( ssd->name.s , name.s.s, name.s.len); @@ -298,7 +296,6 @@ int add_avp_before(avp_t *avp, avp_flags_t flags, avp_name_t name, avp_value_t v /* get value functions */ inline str* get_avp_name(avp_t *avp) { - void** p_data; /* strict aliasing /type punning warnings workarround */ switch ( avp->flags&(AVP_NAME_STR|AVP_VAL_STR) ) { @@ -309,12 +306,10 @@ inline str* get_avp_name(avp_t *avp) return 0; case AVP_NAME_STR: /* avp type str, int value */ - p_data=&avp->data; - return &((struct str_int_data*)p_data)->name; + return &((struct str_int_data*)&avp->d.data[0])->name; case AVP_NAME_STR|AVP_VAL_STR: /* avp type str, str value */ - p_data=&avp->data; - return &((struct str_str_data*)p_data)->name; + return &((struct str_str_data*)&avp->d.data[0])->name; } LOG(L_ERR,"BUG:avp:get_avp_name: unknown avp type (name&val) %d\n", @@ -325,28 +320,26 @@ inline str* get_avp_name(avp_t *avp) inline void get_avp_val(avp_t *avp, avp_value_t *val) { - void** p_data; /* strict aliasing /type punning warnings workarround */ if (avp==0 || val==0) return; - p_data=&avp->data; switch ( avp->flags&(AVP_NAME_STR|AVP_VAL_STR) ) { case 0: /* avp type ID, int value */ - val->n = (long)(avp->data); + val->n = avp->d.l; break; case AVP_NAME_STR: /* avp type str, int value */ - val->n = ((struct str_int_data*)p_data)->val; + val->n = ((struct str_int_data*)&avp->d.data[0])->val; break; case AVP_VAL_STR: /* avp type ID, str value */ - val->s = *(str*)(void*)(&avp->data); + val->s = *(str*)&avp->d.data[0]; break; case AVP_NAME_STR|AVP_VAL_STR: /* avp type str, str value */ - val->s = (((struct str_str_data*)p_data)->val); + val->s = ((struct str_str_data*)&avp->d.data[0])->val; break; } } diff --git a/usr_avp.h b/usr_avp.h index 2b68107..aad0852 100644 --- a/usr_avp.h +++ b/usr_avp.h @@ -89,12 +89,18 @@ typedef union { #define avp_value_t int_str #define avp_index_t unsigned short +union usr_avp_data{ + void *p; /* forces alignment */ + long l; + char data[sizeof(void*)]; /* used to access other types, var length */ +}; + typedef struct usr_avp { avp_id_t id; - /* Flags that are kept for the AVP lifetime */ + /* Flags that are kept for the AVP lifetime */ avp_flags_t flags; struct usr_avp *next; - void *data; + union usr_avp_data d; /* var length */ } avp_t; typedef avp_t* avp_list_t;
15 years, 11 months
1
0
0
0
git:ser_core_cvs: t_suspend() and t_continue() functions have been documented.
by Andrei Pelinescu-Onciul
Module: sip-router Branch: ser_core_cvs Commit: 3e16951eacac952b74c25ff951d32c6569b433f4 URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=3e16951…
Author: Miklos Tirpak <miklos(a)iptel.org> Committer: Miklos Tirpak <miklos(a)iptel.org> Date: Fri Dec 5 13:59:35 2008 +0000 t_suspend() and t_continue() functions have been documented. --- modules/tm/README | 426 +++++++++++++++++++++++++++-------------------- modules/tm/doc/api.xml | 87 ++++++++++ modules/tm/t_suspend.c | 16 ++ 3 files changed, 348 insertions(+), 181 deletions(-) Diff:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commitdiff;h=3e1…
15 years, 11 months
1
0
0
0
git:ser_core_cvs: dns: naptr local preferences fix
by Andrei Pelinescu-Onciul
Module: sip-router Branch: ser_core_cvs Commit: 218c9f41a2350ce177a56e3679a0a67dccc796d3 URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=218c9f4…
Author: Andrei Pelinescu-Onciul <andrei(a)iptel.org> Committer: Andrei Pelinescu-Onciul <andrei(a)iptel.org> Date: Wed Dec 3 23:41:13 2008 +0000 dns: naptr local preferences fix - in some cases the local preference for a protocol (dns_{udp,tcp,sctp,tls}_pref) was ignored (depending on the order of the records). Reported-by: Vladimir Broz, vbroz at iptel org Tested-by: Vladimir Broz, vbroz at iptel org --- resolve.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/resolve.c b/resolve.c index 94e0558..16c79de 100644 --- a/resolve.c +++ b/resolve.c @@ -896,8 +896,9 @@ int naptr_choose (struct naptr_rdata** crt, char* crt_proto, if ((*crt==0) || ((*crt_proto!=n_proto) && ( naptr_proto_preferred(n_proto, *crt_proto))) ) goto change; - if ((n->order<(*crt)->order) || ((n->order== (*crt)->order) && - (n->pref < (*crt)->pref))){ + if (!naptr_proto_preferred(*crt_proto, n_proto) && + ((n->order<(*crt)->order) || ((n->order== (*crt)->order) && + (n->pref < (*crt)->pref)))){ goto change; } #ifdef NAPTR_DBG
15 years, 11 months
1
0
0
0
git:ser_core_cvs: dns cache: fixed missing sctp SRV queries
by Andrei Pelinescu-Onciul
Module: sip-router Branch: ser_core_cvs Commit: 5a1f979819f11fe453546c0ceaa067d93c8e3343 URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=5a1f979…
Author: Andrei Pelinescu-Onciul <andrei(a)iptel.org> Committer: Andrei Pelinescu-Onciul <andrei(a)iptel.org> Date: Fri Nov 28 10:41:40 2008 +0000 dns cache: fixed missing sctp SRV queries - added missing support for sctp SRV queries --- dns_cache.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/dns_cache.c b/dns_cache.c index 5cc8431..14598e0 100644 --- a/dns_cache.c +++ b/dns_cache.c @@ -2392,6 +2392,12 @@ struct hostent* dns_srv_sip_resolvehost(str* name, unsigned short* port, tmp[SRV_TLS_PREFIX_LEN + name->len] = '\0'; len=SRV_TLS_PREFIX_LEN + name->len; break; + case PROTO_SCTP: + memcpy(tmp, SRV_SCTP_PREFIX, SRV_SCTP_PREFIX_LEN); + memcpy(tmp+SRV_SCTP_PREFIX_LEN, name->s, name->len); + tmp[SRV_SCTP_PREFIX_LEN + name->len] = '\0'; + len=SRV_SCTP_PREFIX_LEN + name->len; + break; default: LOG(L_CRIT, "BUG: sip_resolvehost: unknown proto %d\n", (int)srv_proto);
15 years, 11 months
1
0
0
0
← Newer
1
2
3
4
5
6
7
Older →
Jump to page:
1
2
3
4
5
6
7
Results per page:
10
25
50
100
200