[Serusers] Problem related to exec_msg

frq ser frq.ser at googlemail.com
Fri Apr 11 11:28:06 CEST 2008


Hi,

I am trying to understand the 'exec_msg' command as described in Section 4
of SER Admin Guide. I am just trying to echo the user name (1001) of the
caller on the screen. I use the config file given at the end. On receiving
the INVITE message, SER DOES echo the user name, but I also get some warning
and error messages as shown below:
#> /opt/ser-sems/sbin/ser -f /xxx.../voip/ser_expt.cfg
Listening on
             udp: 192.168.3.208 [192.168.3.208]:5070
             tcp: 192.168.3.208 [192.168.3.208]:5070
Aliases:
             tcp: xxx:5070
             udp: xxx:5070
WARNING: no fork mode
stateless - initializing
 0(0) Maxfwd module- initializing
textops - initializing
exec - initializing
 0(0) INFO: udp_init: SO_RCVBUF is initially 107520
 0(0) INFO: udp_init: SO_RCVBUF is finally 262142
 2(0) INFO: fifo process starting: 2803
 2(0) SER: open_uac_fifo: fifo server up at /tmp/ser_fifo...
 2(0) WARNING: no fifo_db_url given - fifo DB commands disabled!
 0(2801) Main Route...
 0(2801) Inside search from-1001...
1001
 0(2801) child process 2805 exited normally, status=0
 0(2801) INFO: dont_fork turned on, living on
 0(2801) WARNING: SIGPIPE received and ignored
 0(2801) ERROR: exec_msg: cmd echo '1001' failed. exit_status=-1, errno=10:
No child processes
 0(2801) WARNING: receive_msg: error while trying script

Can someone tell me how I can get rid of these messages. My aim was just to
get the user name displayed, and this has been achieved. I just want to
understand the reason for these warnings and error messages.

Thanks
Frq

PS: This is my config file:

# $Id: hello-world.cfg 46 2006-01-25 04:21:30Z /CN=Paul
Hazlett/emailAddress=paul at onsip.org $
debug=3
fork=no
log_stderror=yes
listen=192.168.3.208  #2.13  # put your server IP address here
port=5070
children=4
dns=no
rev_dns=no
fifo="/tmp/ser_fifo"
unix_sock="/tmp/ser_sock"
# ------------------ module loading ----------------------------------
# Uncomment this if you want to use SQL database
#loadmodule "/opt/ser-sems/lib/ser/modules/mysql.so"
loadmodule "/opt/ser-sems/lib/ser/modules/sl.so"
loadmodule "/opt/ser-sems/lib/ser/modules/tm.so"
loadmodule "/opt/ser-sems/lib/ser/modules/rr.so"
loadmodule "/opt/ser-sems/lib/ser/modules/maxfwd.so"
loadmodule "/opt/ser-sems/lib/ser/modules/usrloc.so"
loadmodule "/opt/ser-sems/lib/ser/modules/registrar.so"
loadmodule "/opt/ser-sems/lib/ser/modules/textops.so"
loadmodule "/opt/ser-sems/lib/ser/modules/exec.so"
route {
 log(1, "Main Route...\n");
 # sl_send_reply("404", "User Not Found...:-(");
 # if (uri=~"^sip:200@") {

 #  exec_msg("echo 'Frq'");
 # }
 if (search("(f|From): .*1002@")) {
  log(3, "Inside search from-1002...\n");
  exec_msg("echo '1002'");
 };
 if (search("(f|From): .*1000@")) {
  log(3, "Inside search from-1000...\n");
  exec_msg("echo '1000'");
 };
 if (search("(f|From): .*1001@")) {
  log(3, "Inside search from-1001...\n");
  exec_msg("echo 1001");
 };
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20080411/8b6993fb/attachment.htm>


More information about the sr-users mailing list