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
January 2015
----- 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
38 participants
530 discussions
Start a n
N
ew thread
git:master:c576c712: Merge pull request #26 from wdoekes/wjd-ws_frame_transmit-check-wsc
by Daniel-Constantin Mierla
Module: kamailio Branch: master Commit: c576c7120d2ec2226b30990868c462d285f9eacc URL:
https://github.com/kamailio/kamailio/commit/c576c7120d2ec2226b30990868c462d…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com> Committer: Daniel-Constantin Mierla <miconda(a)gmail.com> Date: 2015-01-14T10:40:22+01:00 Merge pull request #26 from wdoekes/wjd-ws_frame_transmit-check-wsc websocket: Check frame->wsc in ws_frame_transmit for NULL. --- Modified: modules/websocket/ws_frame.c --- Diff:
https://github.com/kamailio/kamailio/commit/c576c7120d2ec2226b30990868c462d…
Patch:
https://github.com/kamailio/kamailio/commit/c576c7120d2ec2226b30990868c462d…
--- diff --git a/modules/websocket/ws_frame.c b/modules/websocket/ws_frame.c index d3814bd..a6b4f90 100644 --- a/modules/websocket/ws_frame.c +++ b/modules/websocket/ws_frame.c @@ -743,6 +743,11 @@ int ws_frame_transmit(void *data) frame.payload_len = wsev->len; frame.payload_data = wsev->buf; frame.wsc = wsconn_get(wsev->id); + if (frame.wsc == NULL) + { + LM_ERR("WebSocket outbound connection not found\n"); + return -1; + } LM_DBG("Tx message:\n%.*s\n", frame.payload_len, frame.payload_data);
9 years, 10 months
1
0
0
0
git:master:68d9f429: local_timer.c: logging: DBG -> LM_DBG
by Ovidiu Sas
Module: kamailio Branch: master Commit: 68d9f4296f4128dece2fdd3db95c7e5bdce86507 URL:
https://github.com/kamailio/kamailio/commit/68d9f4296f4128dece2fdd3db95c7e5…
Author: Ovidiu Sas <osas(a)voipembedded.com> Committer: Ovidiu Sas <osas(a)voipembedded.com> Date: 2015-01-13T12:47:03-05:00 local_timer.c: logging: DBG -> LM_DBG --- Modified: local_timer.c --- Diff:
https://github.com/kamailio/kamailio/commit/68d9f4296f4128dece2fdd3db95c7e5…
Patch:
https://github.com/kamailio/kamailio/commit/68d9f4296f4128dece2fdd3db95c7e5…
--- diff --git a/local_timer.c b/local_timer.c index 3e7c67d..6b541fd 100644 --- a/local_timer.c +++ b/local_timer.c @@ -57,7 +57,7 @@ int init_local_timer(struct local_timer *t, ticks_t crt_ticks) for (r=0; r<H2_ENTRIES; r++) _timer_init_list(&t->timer_lst.h2[r]); _timer_init_list(&t->timer_lst.expired); - DBG("init_local_timer: timer_list between %p and %p\n", + LM_DBG("timer_list between %p and %p\n", &t->timer_lst.h0[0], &t->timer_lst.h2[H2_ENTRIES]); return 0; } @@ -141,8 +141,8 @@ int local_timer_add(struct local_timer* h, struct timer_ln* tl, ticks_t delta, int ret; if (unlikely(tl->flags & F_TIMER_ACTIVE)){ - DBG("timer_add called on an active timer %p (%p, %p)," - " flags %x\n", tl, tl->next, tl->prev, tl->flags); + LM_DBG("called on an active timer %p (%p, %p), flags %x\n", + tl, tl->next, tl->prev, tl->flags); ret=-1; /* refusing to add active or non-reinit. timer */ goto error; } @@ -170,16 +170,15 @@ void local_timer_del(struct local_timer* h, struct timer_ln* tl) { /* quick exit if timer inactive */ if (unlikely(!(tl->flags & F_TIMER_ACTIVE))){ - DBG("timer_del called on an inactive timer %p (%p, %p)," - " flags %x\n", tl, tl->next, tl->prev, tl->flags); + LM_DBG("called on an inactive timer %p (%p, %p), flags %x\n", + tl, tl->next, tl->prev, tl->flags); return; } if (likely((tl->next!=0)&&(tl->prev!=0))){ _timer_rm_list(tl); /* detach */ tl->next=tl->prev=0; }else{ - DBG("timer_del: (f) timer %p (%p, %p) flags %x " - "already detached\n", + LM_DBG("(f) timer %p (%p, %p) flags %x already detached\n", tl, tl->next, tl->prev, tl->flags); } } @@ -193,9 +192,7 @@ inline static void local_timer_list_expire(struct local_timer* l, struct timer_ln * tl; ticks_t ret; - /*DBG("timer_list_expire @ ticks = %lu, list =%p\n", - (unsigned long) *ticks, h); - */ + /*LM_DBG("@ ticks = %lu, list =%p\n", (unsigned long) *ticks, h); */ while(h->next!=(struct timer_ln*)h){ tl=h->next; _timer_rm_list(tl); /* detach */
9 years, 10 months
1
0
0
0
git:master:598df456: route.c: logging: DBG -> LM_DBG
by Ovidiu Sas
Module: kamailio Branch: master Commit: 598df456ceb413dfc3aaab0d9cca03d30029fa4d URL:
https://github.com/kamailio/kamailio/commit/598df456ceb413dfc3aaab0d9cca03d…
Author: Ovidiu Sas <osas(a)voipembedded.com> Committer: Ovidiu Sas <osas(a)voipembedded.com> Date: 2015-01-13T12:44:01-05:00 route.c: logging: DBG -> LM_DBG --- Modified: route.c --- Diff:
https://github.com/kamailio/kamailio/commit/598df456ceb413dfc3aaab0d9cca03d…
Patch:
https://github.com/kamailio/kamailio/commit/598df456ceb413dfc3aaab0d9cca03d…
--- diff --git a/route.c b/route.c index 1484193..97df31e 100644 --- a/route.c +++ b/route.c @@ -2129,7 +2129,7 @@ static void print_rl(struct route_list* rt, char* name) LM_DBG("WARNING: the main routing table is empty\n"); continue; } - DBG("%s routing table %d:\n", name, j); + LM_DBG("%s routing table %d:\n", name, j); print_actions(rt->rlist[j]); DBG("\n"); }
9 years, 10 months
1
0
0
0
git:master:ef3ac5cc: dns_cache.c: logging: DBG -> LM_DBG
by Ovidiu Sas
Module: kamailio Branch: master Commit: ef3ac5cc2b138d05b25a9b38d18892d584921eef URL:
https://github.com/kamailio/kamailio/commit/ef3ac5cc2b138d05b25a9b38d18892d…
Author: Ovidiu Sas <osas(a)voipembedded.com> Committer: Ovidiu Sas <osas(a)voipembedded.com> Date: 2015-01-13T12:39:58-05:00 dns_cache.c: logging: DBG -> LM_DBG --- Modified: dns_cache.c --- Diff:
https://github.com/kamailio/kamailio/commit/ef3ac5cc2b138d05b25a9b38d18892d…
Patch:
https://github.com/kamailio/kamailio/commit/ef3ac5cc2b138d05b25a9b38d18892d…
9 years, 10 months
1
0
0
0
git:master:2571b99c: daemonize.c: logging: DBG -> LM_DBG
by Ovidiu Sas
Module: kamailio Branch: master Commit: 2571b99cf3d45369c0e1bb7e5539a062f1066b37 URL:
https://github.com/kamailio/kamailio/commit/2571b99cf3d45369c0e1bb7e5539a06…
Author: Ovidiu Sas <osas(a)voipembedded.com> Committer: Ovidiu Sas <osas(a)voipembedded.com> Date: 2015-01-13T12:33:55-05:00 daemonize.c: logging: DBG -> LM_DBG --- Modified: daemonize.c --- Diff:
https://github.com/kamailio/kamailio/commit/2571b99cf3d45369c0e1bb7e5539a06…
Patch:
https://github.com/kamailio/kamailio/commit/2571b99cf3d45369c0e1bb7e5539a06…
--- diff --git a/daemonize.c b/daemonize.c index 919ad44..9d936d4 100644 --- a/daemonize.c +++ b/daemonize.c @@ -488,7 +488,7 @@ int increase_open_fds(int target) goto error; } orig=lim; - DBG("current open file limits: %lu/%lu\n", + LM_DBG("current open file limits: %lu/%lu\n", (unsigned long)lim.rlim_cur, (unsigned long)lim.rlim_max); if ((lim.rlim_cur==RLIM_INFINITY) || (target<=lim.rlim_cur)) /* nothing to do */ @@ -503,7 +503,7 @@ int increase_open_fds(int target) lim.rlim_max=target; lim.rlim_cur=target; } - DBG("increasing open file limits to: %lu/%lu\n", + LM_DBG("increasing open file limits to: %lu/%lu\n", (unsigned long)lim.rlim_cur, (unsigned long)lim.rlim_max); if (setrlimit(RLIMIT_NOFILE, &lim)<0){ LM_CRIT("cannot increase the open file limit to" @@ -580,7 +580,7 @@ int set_core_dump(int enable, long unsigned int size) } } done: - DBG("core dump limits set to %lu\n", (unsigned long)newlim.rlim_cur); + LM_DBG("core dump limits set to %lu\n", (unsigned long)newlim.rlim_cur); return 0; error: return -1;
9 years, 10 months
1
0
0
0
git:master:b5d4fd9f: dst_blacklist.c: logging: DBG -> LM_DBG
by Ovidiu Sas
Module: kamailio Branch: master Commit: b5d4fd9f2f14627fe5e8edf8da8616954b336488 URL:
https://github.com/kamailio/kamailio/commit/b5d4fd9f2f14627fe5e8edf8da86169…
Author: Ovidiu Sas <osas(a)voipembedded.com> Committer: Ovidiu Sas <osas(a)voipembedded.com> Date: 2015-01-13T12:32:55-05:00 dst_blacklist.c: logging: DBG -> LM_DBG --- Modified: dst_blacklist.c --- Diff:
https://github.com/kamailio/kamailio/commit/b5d4fd9f2f14627fe5e8edf8da86169…
Patch:
https://github.com/kamailio/kamailio/commit/b5d4fd9f2f14627fe5e8edf8da86169…
--- diff --git a/dst_blacklist.c b/dst_blacklist.c index 823aa0a..a2a4696 100644 --- a/dst_blacklist.c +++ b/dst_blacklist.c @@ -668,7 +668,7 @@ inline static int dst_blacklist_clean_expired(unsigned int target, /* check for timeout only "between" hash cells */ now=get_ticks_raw(); if ((now-start_time)>=timeout){ - DBG("_dst_blacklist_clean_expired_unsafe: timeout: %d > %d\n", + LM_DBG("timeout: %d > %d\n", TICKS_TO_MS(now-start_time), TICKS_TO_MS(timeout)); goto skip; } @@ -677,7 +677,7 @@ inline static int dst_blacklist_clean_expired(unsigned int target, skip: start=h; /* next time we start where we left */ if (no){ - DBG("dst_blacklist_clean_expired, %d entries removed\n", no); + LM_DBG("%d entries removed\n", no); } return no; }
9 years, 10 months
1
0
0
0
git:master:80d01114: msg_translator.c: logging: DBG -> LM_DBG
by Ovidiu Sas
Module: kamailio Branch: master Commit: 80d01114abef2c1b158a416f46d77ce23bdfb184 URL:
https://github.com/kamailio/kamailio/commit/80d01114abef2c1b158a416f46d77ce…
Author: Ovidiu Sas <osas(a)voipembedded.com> Committer: Ovidiu Sas <osas(a)voipembedded.com> Date: 2015-01-13T12:31:43-05:00 msg_translator.c: logging: DBG -> LM_DBG --- Modified: msg_translator.c --- Diff:
https://github.com/kamailio/kamailio/commit/80d01114abef2c1b158a416f46d77ce…
Patch:
https://github.com/kamailio/kamailio/commit/80d01114abef2c1b158a416f46d77ce…
--- diff --git a/msg_translator.c b/msg_translator.c index 5afb739..d9c6f45 100644 --- a/msg_translator.c +++ b/msg_translator.c @@ -155,8 +155,7 @@ static int check_via_address(struct ip_addr* ip, str *name, /* maybe we are lucky and name it's an ip */ s=ip_addr2a(ip); if (s){ - DBG("check_via_address(%s, %.*s, %d)\n", - s, name->len, name->s, resolver); + LM_DBG("(%s, %.*s, %d)\n", s, name->len, name->s, resolver); len=strlen(s); @@ -181,7 +180,7 @@ static int check_via_address(struct ip_addr* ip, str *name, if (port==0) port=SIP_PORT; if (resolver&DO_DNS){ - DBG("check_via_address: doing dns lookup\n"); + LM_DBG("doing dns lookup\n"); /* try all names ips */ lproto = PROTO_NONE; he=sip_resolvehost(name, &port, &lproto); /* don't use naptr */ @@ -193,7 +192,7 @@ static int check_via_address(struct ip_addr* ip, str *name, } } if (resolver&DO_REV_DNS){ - DBG("check_via_address: doing rev. dns lookup\n"); + LM_DBG("doing rev. dns lookup\n"); /* try reverse dns */ he=rev_resolvehost(ip); if (he && (strncmp(he->h_name, name->s, name->len)==0)) @@ -420,7 +419,7 @@ char* clen_builder( struct sip_msg* msg, int *clen_len, int diff, } value=msg->len-(int)(body-msg->buf)+diff; value_s=int2str(value, &value_len); - DBG("clen_builder: content-length: %d (%s)\n", value, value_s); + LM_DBG("content-length: %d (%s)\n", value, value_s); if (body_only) { len=value_len; @@ -1350,7 +1349,7 @@ static inline void process_lumps( struct sip_msg* msg, case LUMP_DEL: /* copy till offset */ if (s_offset>t->u.offset){ - DBG("Warning: (%d) overlapped lumps offsets," + LM_DBG("WARNING: (%d) overlapped lumps offsets," " ignoring(%x, %x)\n", t->op, s_offset,t->u.offset); /* this should've been fixed above (when computing len) */ /* just ignore it*/ @@ -1523,8 +1522,7 @@ static inline int adjust_clen(struct sip_msg* msg, int body_delta, int proto) } body_only=0; } /* else - DBG("adjust_clen: UDP packet with no clen => " - "not adding one \n"); */ + LM_DBG("UDP packet with no clen => not adding one \n"); */ }else{ /* Content-Length has been found, remove it */ anchor = del_lump( msg, msg->content_length->body.s - msg->buf, @@ -2228,7 +2226,7 @@ char * generate_res_buf_from_sip_res( struct sip_msg* msg, new_len=len+body_delta+lumps_len(msg, msg->add_rm, 0); /*FIXME: we don't know the send sock */ - DBG(" old size: %d, new size: %d\n", len, new_len); + LM_DBG("old size: %d, new size: %d\n", len, new_len); new_buf=(char*)pkg_malloc(new_len+1); /* +1 is for debugging (\0 to print it )*/ if (new_buf==0){ @@ -2245,8 +2243,8 @@ char * generate_res_buf_from_sip_res( struct sip_msg* msg, buf+s_offset, len-s_offset); /* send it! */ - DBG("copied size: orig:%d, new: %d, rest: %d" - " msg=\n%s\n", s_offset, offset, len-s_offset, new_buf); + LM_DBG("copied size: orig:%d, new: %d, rest: %d msg=\n%s\n", + s_offset, offset, len-s_offset, new_buf); *returned_len=new_len; return new_buf; @@ -2842,7 +2840,7 @@ char* create_via_hf( unsigned int *len, return 0; /* we don't need to free anything, nothing alloc'ed yet*/ } - DBG("create_via_hf: id added: <%.*s>, rcv proto=%d\n", + LM_DBG("id added: <%.*s>, rcv proto=%d\n", (int)id_len, id_buf, msg->rcv.proto); extra_params.s=id_buf; extra_params.len=id_len;
9 years, 10 months
1
0
0
0
git:master:86513b9e: raw_listener.c: logging: DBG -> LM_DBG
by Ovidiu Sas
Module: kamailio Branch: master Commit: 86513b9ed72790f8353a0aa0f31e2d1626ac09c8 URL:
https://github.com/kamailio/kamailio/commit/86513b9ed72790f8353a0aa0f31e2d1…
Author: Ovidiu Sas <osas(a)voipembedded.com> Committer: Ovidiu Sas <osas(a)voipembedded.com> Date: 2015-01-13T12:28:42-05:00 raw_listener.c: logging: DBG -> LM_DBG --- Modified: raw_listener.c --- Diff:
https://github.com/kamailio/kamailio/commit/86513b9ed72790f8353a0aa0f31e2d1…
Patch:
https://github.com/kamailio/kamailio/commit/86513b9ed72790f8353a0aa0f31e2d1…
--- diff --git a/raw_listener.c b/raw_listener.c index ec9c447..ab096f3 100644 --- a/raw_listener.c +++ b/raw_listener.c @@ -97,13 +97,13 @@ int raw_udp4_rcv_loop(int rsock, int port1, int port2) len=raw_udp4_recv(rsock, &p, BUF_SIZE, &from, &to, &rf); if (len<0){ if (len==-1){ - LM_ERR("raw_udp4_recv: %s [%d]\n", strerror(errno), errno); + LM_ERR("%s [%d]\n", strerror(errno), errno); if ((errno==EINTR)||(errno==EWOULDBLOCK)) continue; else goto error; }else{ - DBG("raw_udp4_rcv_loop: raw_udp4_recv error: %d\n", len); + LM_DBG("error len: %d\n", len); continue; } } @@ -117,7 +117,7 @@ int raw_udp4_rcv_loop(int rsock, int port1, int port2) /* sanity checks */ if (len<MIN_UDP_PACKET){ tmp=ip_addr2a(&ri.src_ip); - DBG("raw_udp4_rcv_loop: probing packet received from %s %d\n", + LM_DBG("probing packet received from %s %d\n", tmp, htons(ri.src_port)); continue; } @@ -127,7 +127,7 @@ int raw_udp4_rcv_loop(int rsock, int port1, int port2) continue; } tmp=ip_addr2a(&ri.src_ip); - DBG("raw_udp4_rcv_loop: received from %s:\n[%.*s]\n", tmp, len, p); + LM_DBG("received from %s:\n[%.*s]\n", tmp, len, p); receive_msg(p, len, &ri); } error:
9 years, 10 months
1
0
0
0
git:master:9f7dd69a: flags.c: logging: DBG -> LM_DBG
by Ovidiu Sas
Module: kamailio Branch: master Commit: 9f7dd69ae2178adb04585fa6d8773479140bbd98 URL:
https://github.com/kamailio/kamailio/commit/9f7dd69ae2178adb04585fa6d877347…
Author: Ovidiu Sas <osas(a)voipembedded.com> Committer: Ovidiu Sas <osas(a)voipembedded.com> Date: 2015-01-13T12:06:51-05:00 flags.c: logging: DBG -> LM_DBG --- Modified: flags.c --- Diff:
https://github.com/kamailio/kamailio/commit/9f7dd69ae2178adb04585fa6d877347…
Patch:
https://github.com/kamailio/kamailio/commit/9f7dd69ae2178adb04585fa6d877347…
--- diff --git a/flags.c b/flags.c index 2bfef5a..5dbdd4f 100644 --- a/flags.c +++ b/flags.c @@ -257,7 +257,7 @@ static int fixup_t_flag(void** param, int param_no) char *c; int token; - DBG("DEBUG: fixing flag: %s\n", (char *) (*param)); + LM_DBG("fixing flag: %s\n", (char *) (*param)); if (param_no!=1) { LM_ERR("TM module: only parameter #1 for flags can be fixed\n");
9 years, 10 months
1
0
0
0
git:master:bccfb2e3: forward.c: logging: DBG -> LM_DBG
by Ovidiu Sas
Module: kamailio Branch: master Commit: bccfb2e39106785e12ebbee6cdd901421a288046 URL:
https://github.com/kamailio/kamailio/commit/bccfb2e39106785e12ebbee6cdd9014…
Author: Ovidiu Sas <osas(a)voipembedded.com> Committer: Ovidiu Sas <osas(a)voipembedded.com> Date: 2015-01-13T12:05:27-05:00 forward.c: logging: DBG -> LM_DBG --- Modified: forward.c --- Diff:
https://github.com/kamailio/kamailio/commit/bccfb2e39106785e12ebbee6cdd9014…
Patch:
https://github.com/kamailio/kamailio/commit/bccfb2e39106785e12ebbee6cdd9014…
--- diff --git a/forward.c b/forward.c index c6dbdea..4e82b1d 100644 --- a/forward.c +++ b/forward.c @@ -171,7 +171,7 @@ struct socket_info* get_out_socket(union sockaddr_union* to, int proto) su2ip_addr(&ip, &from); si=find_si(&ip, 0, proto); if (si==0) goto error; - DBG("DEBUG: get_out_socket: socket determined: %p\n", si ); + LM_DBG("socket determined: %p\n", si ); if (unlikely(mhomed_sock_cache_disabled)){ close(*temp_sock); *temp_sock=-1; @@ -234,7 +234,7 @@ struct socket_info* get_send_socket2(struct socket_info* force_send_socket, if (likely(mismatch)) *mismatch=SS_MISMATCH_PROTO; } if (unlikely(force_send_socket->address.af!=to->s.sa_family)){ - DBG("get_send_socket: force_send_socket of different af" + LM_DBG("force_send_socket of different af" " (dst %d - %s:%s forced %d -%s:%s:%d)\n", to->s.sa_family, proto2a(proto), su2a(to, sizeof(*to)), force_send_socket->address.af, @@ -409,7 +409,7 @@ int check_self(str* host, unsigned short port, unsigned short proto) if (grep_sock_info(host, port, proto)) goto found; /* try to look into the aliases*/ if (grep_aliases(host->s, host->len, port, proto)==0){ - DBG("check_self: host != me\n"); + LM_DBG("host != me\n"); return (_check_self_func_list==NULL)?0:run_check_self_func(host, port, proto); } @@ -553,8 +553,8 @@ int forward_request(struct sip_msg* msg, str* dst, unsigned short port, } #endif /* send it! */ - DBG("Sending:\n%.*s.\n", (int)len, buf); - DBG("orig. len=%d, new_len=%d, proto=%d\n", + LM_DBG("Sending:\n%.*s.\n", (int)len, buf); + LM_DBG("orig. len=%d, new_len=%d, proto=%d\n", msg->len, len, send_info->proto ); if (run_onsend(msg, send_info, buf, len)==0){ @@ -671,7 +671,7 @@ int update_sock_struct_from_via( union sockaddr_union* to, }else{ /* "normal" reply, we use rport's & received value if present */ if (via->rport && via->rport->value.s){ - DBG("update_sock_struct_from_via: using 'rport'\n"); + LM_DBG("using 'rport'\n"); port=str2s(via->rport->value.s, via->rport->value.len, &err); if (err){ LM_ERR("bad rport value(%.*s)\n", @@ -680,13 +680,13 @@ int update_sock_struct_from_via( union sockaddr_union* to, } } if (via->received){ - DBG("update_sock_struct_from_via: using 'received'\n"); + LM_DBG("using 'received'\n"); name=&(via->received->value); /* making sure that we won't do SRV lookup on "received" * (possible if no DNS_IP_HACK is used)*/ if (port==0) port=via->port?via->port:SIP_PORT; }else{ - DBG("update_sock_struct_from_via: using via host\n"); + LM_DBG("using via host\n"); name=&(via->host); if (port==0) port=via->port; } @@ -699,7 +699,7 @@ int update_sock_struct_from_via( union sockaddr_union* to, Yes -- it happened on generating a 408 by TM; -jiri sip_resolvehost now accepts str -janakj */ - DBG("update_sock_struct_from_via: trying SRV lookup\n"); + LM_DBG("trying SRV lookup\n"); proto=via->proto; he=sip_resolvehost(name, &port, &proto); @@ -789,7 +789,7 @@ static int do_forward_reply(struct sip_msg* msg, int mode) if (msg->via1->i && msg->via1->i->value.s){ s=msg->via1->i->value.s; len=msg->via1->i->value.len; - DBG("forward_reply: i=%.*s\n",len, ZSW(s)); + LM_DBG("i=%.*s\n",len, ZSW(s)); if (reverse_hex2int(s, len, (unsigned int*)&dst.id)<0){ LM_ERR("bad via i param \"%.*s\"\n", len, ZSW(s)); dst.id=0; @@ -830,7 +830,7 @@ static int do_forward_reply(struct sip_msg* msg, int mode) STATS_TX_RESPONSE( (msg->first_line.u.reply.statuscode/100) ); #endif - DBG(" reply forwarded to %.*s:%d\n", + LM_DBG("reply forwarded to %.*s:%d\n", msg->via2->host.len, msg->via2->host.s, (unsigned short) msg->via2->port);
9 years, 10 months
1
0
0
0
← Newer
1
...
21
22
23
24
25
26
27
...
53
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
Results per page:
10
25
50
100
200