#579 exec_msg produces critical unknown address family message

ver 1.5.x
open
nobody
core (125)
5
2009-06-21
2009-06-21
Anonymous
No

In the kamailio.cfg file, I have a line
exec_msg("/usr/local/etc/kamailio/100out"); and every time it runs (every 10 seconds), it produces the following messages in the syslog. Since it is being executed from the local machine, the log message needs reviewing.

Jun 21 06:31:20 sipserver /usr/local/sbin/kamailio[20969]: CRITICAL:exec:ip_addr2a: unknown address family 0
Jun 21 06:32:00 sipserver last message repeated 4 times
Jun 21 06:33:00 sipserver last message repeated 6 times
Jun 21 06:34:00 sipserver last message repeated 6 times
Jun 21 06:35:00 sipserver last message repeated 6 times
Jun 21 06:36:00 sipserver last message repeated 6 times
Jun 21 06:37:00 sipserver last message repeated 6 times
Jun 21 06:38:00 sipserver last message repeated 6 times
Jun 21 06:38:30 sipserver last message repeated 3 times

The file 100out contains:
#!/bin/bash
# buld a FIFO command to PUBLISH number of users, load, system CPU usage
# and freem memory in the system
#

#config values
OP_SYSUSER="100@sip.nzvrs.co.nz"
OP_SIPURI="sip:$OP_SYSUSER"
OP_EXPIRES="12"

#build reply fifo file
rm -f /tmp/kamailio_fifo_reply
mkfifo /tmp/kamailio_fifo_reply
cat /tmp/kamailio_fifo_reply&

cat >/tmp/kamailio_fifo <<EOF
:pua_publish:kamailio_fifo_reply
$OP_SIPURI
$OP_EXPIRES
presence
application/pidf+xml
.
.
<?xml version='1.0' encoding='UTF-8'?><presence xmlns='urn:ietf:params:xml:ns:pidf' xmlns:dm='urn:ietf:params:xml:ns:pidf:data-model' xmlns:rpid='urn:ietf:params:xml:ns:pidf:rpid' xmlns:c='urn:ietf:params:xml:ns:pidf:cipid' xmlns:lt='urn:ietf:params:xml:ns:location-type' entity='pres:$OP_SYSUSER'><tuple id='102@sip.nzvrs.co.nz_on_Peter-PC'><note>dnd - Not currently operating</note><status><basic>open</basic></status><contact priority='1'>$OP_SIPURI</contact></tuple><dm:person id='pdb42f565'><rpid:activities><rpid:busy/></rpid:activities><dm:note>Closed - Please wait</dm:note></dm:person></presence>

EOF

Discussion

  • Do you run it from rtimer module?