[SR-Users] ip address error with exec module

Uri Shacked ushacked at gmail.com
Wed Jan 11 19:12:30 CET 2012


no, only the lines you see.

On Wed, Jan 11, 2012 at 7:40 PM, Daniel-Constantin Mierla <miconda at 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<miconda at 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20120111/e0a3bb82/attachment.htm>


More information about the sr-users mailing list