<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hello,<br>
<br>
On 1/11/12 7:12 PM, Uri Shacked wrote:
<blockquote
cite="mid:CAMMbDhT54nQpDBgsnwXuu77frwmZmk9h9yUDMv=UoHwQqhDrTw@mail.gmail.com"
type="cite">
<div dir="ltr">no, only the lines you see.<br>
</div>
</blockquote>
strange ... anyhow, I pushed a patch to master branch to set src/dst
ip to 127.0.0.1:<br>
<br>
<a class="moz-txt-link-freetext" href="http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=62e5680c9dd4eccb0f177415b7624af832c87693">http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=62e5680c9dd4eccb0f177415b7624af832c87693</a><br>
<br>
if you installed from git, after doing in source tree:<br>
<br>
git pull origin<br>
<br>
do:<br>
<br>
git cherry-pick -x 62e5680c9dd4eccb0f177415b7624af832c87693<br>
<br>
and reinstall. Let me know if it works and I will backport.<br>
<br>
Cheers,<br>
Daniel<br>
<br>
<blockquote
cite="mid:CAMMbDhT54nQpDBgsnwXuu77frwmZmk9h9yUDMv=UoHwQqhDrTw@mail.gmail.com"
type="cite">
<div dir="ltr"><br>
<div class="gmail_quote">On Wed, Jan 11, 2012 at 7:40 PM,
Daniel-Constantin Mierla <span dir="ltr"><<a
moz-do-not-send="true" href="mailto:miconda@gmail.com">miconda@gmail.com</a>></span>
wrote:<br>
<blockquote style="BORDER-LEFT:#ccc 1px solid;MARGIN:0px 0px
0px 0.8ex;PADDING-LEFT:1ex" class="gmail_quote">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)?<br>
<br>
Cheers,<br>
Daniel
<div class="HOEnZb">
<div class="h5"><br>
<br>
On 1/11/12 6:05 PM, Uri Shacked wrote:<br>
<blockquote style="BORDER-LEFT:#ccc 1px solid;MARGIN:0px
0px 0px 0.8ex;PADDING-LEFT:1ex" class="gmail_quote">Thanks,
will be waiting :-)<br>
<br>
On 1/11/12, Daniel-Constantin Mierla<<a
moz-do-not-send="true"
href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>>
wrote:<br>
<blockquote style="BORDER-LEFT:#ccc 1px
solid;MARGIN:0px 0px 0px 0.8ex;PADDING-LEFT:1ex"
class="gmail_quote">Hello,<br>
<br>
On 1/11/12 11:36 AM, Uri Shacked wrote:<br>
<blockquote style="BORDER-LEFT:#ccc 1px
solid;MARGIN:0px 0px 0px 0.8ex;PADDING-LEFT:1ex"
class="gmail_quote">Hi,<br>
i am doing this command in a timer under kamailio:<br>
$var(log)='"'+'denied_calls-'+$stat(denied_calls)+',dos-'+$shv(dos)+'"';<br>
exec_msg("nc -u -w0 10.2.0.54 514<<<
$var(log)");<br>
each time the command is executed, i get the
following error:<br>
9(19302) : exec [../../parser/../ip_addr.h:688]:
BUG: ip_addr2sbuf:<br>
unknown address family 0<br>
9(19302) ERROR: exec [exec.c:86]: cmd nc -u -w0
10.2.0.54 514<<<<br>
",denied_calls-0,dos-green" failed.
exit_status=-1, errno=32: Broken pipe<br>
any idea?<br>
the syslog server gets the message....<br>
</blockquote>
the timer execute functions with a faked sip
request, which is not<br>
received from the network, but generated internally.
Thus there is no<br>
source IP. Perhaps it should be set as received from
itself or loopback<br>
device (127.0.0.1) -- I will look over it.<br>
<br>
Cheers,<br>
Daniel<br>
<br>
--<br>
Daniel-Constantin Mierla -- <a
moz-do-not-send="true"
href="http://www.asipto.com/" target="_blank">http://www.asipto.com</a><br>
<a moz-do-not-send="true"
href="http://linkedin.com/in/miconda"
target="_blank">http://linkedin.com/in/miconda</a>
-- <a moz-do-not-send="true"
href="http://twitter.com/miconda" target="_blank">http://twitter.com/miconda</a><br>
<br>
<br>
</blockquote>
</blockquote>
<br>
-- <br>
Daniel-Constantin Mierla -- <a moz-do-not-send="true"
href="http://www.asipto.com/" target="_blank">http://www.asipto.com</a><br>
<a moz-do-not-send="true"
href="http://linkedin.com/in/miconda" target="_blank">http://linkedin.com/in/miconda</a>
-- <a moz-do-not-send="true"
href="http://twitter.com/miconda" target="_blank">http://twitter.com/miconda</a><br>
<br>
</div>
</div>
</blockquote>
</div>
<br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla -- <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
<a class="moz-txt-link-freetext" href="http://linkedin.com/in/miconda">http://linkedin.com/in/miconda</a> -- <a class="moz-txt-link-freetext" href="http://twitter.com/miconda">http://twitter.com/miconda</a></pre>
</body>
</html>