Re: [SR-Users] ip address error with exec module

2012-01-19 Thread Daniel-Constantin Mierla
Hello, On 1/18/12 2:44 PM, Uri Shacked wrote: still 13(11851) 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 this is different story, is because of the communication through the pipe between kamailio and e

Re: [SR-Users] ip address error with exec module

2012-01-18 Thread Uri Shacked
still 13(11851) 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 On Wed, Jan 18, 2012 at 11:22 AM, Daniel-Constantin Mierla < mico...@gmail.com> wrote: > Hello, > > ok, looked in the sources the rtimer modu

Re: [SR-Users] ip address error with exec module

2012-01-18 Thread Daniel-Constantin Mierla
Hello, ok, looked in the sources the rtimer module had its own internal faked msg, so my previous patch didn't apply for it. I just committed a patch to rtimer, so now it uses the common faked msg. Can you cherry pick commit 6c829c1794fb79fbce213238e88346522f584fcf and try again? Cheers,

Re: [SR-Users] ip address error with exec module

2012-01-12 Thread Uri Shacked
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 r

Re: [SR-Users] ip address error with exec module

2012-01-12 Thread Daniel-Constantin Mierla
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 -w

Re: [SR-Users] ip address error with exec module

2012-01-12 Thread Uri Shacked
Hi, now i get at start: 9(5006) : exec [../../parser/../ip_addr.h:688]: BUG: ip_addr2sbuf: unknown address family 0 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 id

Re: [SR-Users] ip address error with exec module

2012-01-12 Thread Daniel-Constantin Mierla
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 g

Re: [SR-Users] ip address error with exec module

2012-01-11 Thread Uri Shacked
no, only the lines you see. On Wed, Jan 11, 2012 at 7:40 PM, Daniel-Constantin Mierla 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

Re: [SR-Users] ip address error with exec module

2012-01-11 Thread Daniel-Constantin Mierla
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

Re: [SR-Users] ip address error with exec module

2012-01-11 Thread Uri Shacked
Thanks, will be waiting :-) On 1/11/12, Daniel-Constantin Mierla 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 5

Re: [SR-Users] ip address error with exec module

2012-01-11 Thread Daniel-Constantin Mierla
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