no, i get it every 10 sec (like the rtimer i set) the first 3 times are the first line and afterwards the second line apears. i notice that after a while it cycles again... 3 times etc....
i did : git pull origin git cherry-pick -x 62e5680c9dd4eccb0f177415b7624af832c87693 make all make install right? as always... my linux abilities are limited... :-) thanks. On Thu, Jan 12, 2012 at 12:16 PM, Daniel-Constantin Mierla < mico...@gmail.com> wrote: > Hello, > > > On 1/12/12 11:07 AM, Uri Shacked wrote: > > Hi, > > now i get at start: > > 9(5006) : exec [../../parser/../ip_addr.h:688]: BUG: ip_addr2sbuf: > unknown address family 0 > > do you mean you get it once, at kamailio startup? > > > > and after 3 time the following is added: > > ERROR: exec [exec.c:86]: cmd nc -u -w0 10.2.0.54 514 <<< > ",denied_calls-0,dos-green" failed. exit_status=-1, errno=32: Broken pipe > any idea? > > > This is from the execution of the external program. > > > > kamailio -V > version: kamailio 3.2.1 (i386/linux) 04216f > > > Have you applied the patch? The version seems to be clean, without any > patch. > > Can you send the log output with debug=3? > > Cheers, > Daniel > > > flags: STATS: Off, USE_IPV6, USE_TCP, USE_TLS, TLS_HOOKS, USE_RAW_SOCKS, > DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC, > DBG_QM_MALLOC, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE, > USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLACKLIST, HAVE_RESOLV_RES > ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, > MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 4MB > poll method support: poll, epoll_lt, epoll_et, sigio_rt, select. > id: 04216f > compiled on 11:37:16 Jan 12 2012 with gcc 4.1.2 > > > > > > > On Thu, Jan 12, 2012 at 10:29 AM, Daniel-Constantin Mierla < > mico...@gmail.com> wrote: > >> Hello, >> >> >> On 1/11/12 7:12 PM, Uri Shacked wrote: >> >> no, only the lines you see. >> >> strange ... anyhow, I pushed a patch to master branch to set src/dst ip >> to 127.0.0.1: >> >> >> http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=62e5680c9dd4eccb0f177415b7624af832c87693 >> >> if you installed from git, after doing in source tree: >> >> git pull origin >> >> do: >> >> git cherry-pick -x 62e5680c9dd4eccb0f177415b7624af832c87693 >> >> and reinstall. Let me know if it works and I will backport. >> >> Cheers, >> Daniel >> >> >> On Wed, Jan 11, 2012 at 7:40 PM, Daniel-Constantin Mierla < >> mico...@gmail.com> wrote: >> >>> Looking into the source, exec_msg() does not access receive info >>> (source/destination address). Is there any other action in timer route >>> accessing source IP or destination IP (like xlog printing $si)? >>> >>> Cheers, >>> Daniel >>> >>> >>> On 1/11/12 6:05 PM, Uri Shacked wrote: >>> >>>> Thanks, will be waiting :-) >>>> >>>> On 1/11/12, Daniel-Constantin Mierla<mico...@gmail.com> wrote: >>>> >>>>> Hello, >>>>> >>>>> On 1/11/12 11:36 AM, Uri Shacked wrote: >>>>> >>>>>> Hi, >>>>>> i am doing this command in a timer under kamailio: >>>>>> >>>>>> $var(log)='"'+'denied_calls-'+$stat(denied_calls)+',dos-'+$shv(dos)+'"'; >>>>>> exec_msg("nc -u -w0 10.2.0.54 514<<< $var(log)"); >>>>>> each time the command is executed, i get the following error: >>>>>> 9(19302) : exec [../../parser/../ip_addr.h:688]: BUG: ip_addr2sbuf: >>>>>> unknown address family 0 >>>>>> 9(19302) ERROR: exec [exec.c:86]: cmd nc -u -w0 10.2.0.54 514<<< >>>>>> ",denied_calls-0,dos-green" failed. exit_status=-1, errno=32: Broken >>>>>> pipe >>>>>> any idea? >>>>>> the syslog server gets the message.... >>>>>> >>>>> the timer execute functions with a faked sip request, which is not >>>>> received from the network, but generated internally. Thus there is no >>>>> source IP. Perhaps it should be set as received from itself or loopback >>>>> device (127.0.0.1) -- I will look over it. >>>>> >>>>> Cheers, >>>>> Daniel >>>>> >>>>> -- >>>>> Daniel-Constantin Mierla -- http://www.asipto.com >>>>> http://linkedin.com/in/miconda -- http://twitter.com/miconda >>>>> >>>>> >>>>> >>> -- >>> Daniel-Constantin Mierla -- http://www.asipto.com >>> http://linkedin.com/in/miconda -- http://twitter.com/miconda >>> >>> >> >> >> _______________________________________________ >> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing >> listsr-us...@lists.sip-router.orghttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users >> >> >> -- >> Daniel-Constantin Mierla -- >> http://www.asipto.comhttp://linkedin.com/in/miconda -- >> http://twitter.com/miconda >> >> > > -- > Daniel-Constantin Mierla -- > http://www.asipto.comhttp://linkedin.com/in/miconda -- > http://twitter.com/miconda > >
_______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users