[Users] Openser- parser error for openser.cfg

K Biju cordelbiju at yahoo.com
Fri Feb 16 04:29:48 CET 2007


Hi All,

I have installed openser version 1.1.1-notls(i386/linux). 
I am trying to configure the openser to route all calls to a gateway. For this I have added the following rules in openser.cfg
route { 
       if (!mf_process_maxfwd_header("10")) { 
               sl_send_reply("483","Too Many Hops"); 
               break; 
       } 
       record_route(); 
       if (src_ip==1.1.1.1) { 
               forward_tcp(4.4.4.4, 5060); 
       } 
       else { 
               forward_udp(1.1.1.1, 5060); 
       } 
} 

Now when I bring up the server I get the following error
[root at localhost openser-1.1.1-notls]# /usr/local/sbin/openser -n 1 -ddddd -E -l tcp:47.100.105.195:5060
 -l
udp:47.100.105.195:5060
0(18381) read 3133282016 from /dev/urandom
0(18381) seeding PRNG with 9917133
0(18381) test random number 521145638
0(18381) parse error (27,46-50): parse error
0(18381) parse error (27,50-51): bad arguments
0(18381) parse error (30,28-29): parse error
0(18381) parse error (30,41-42): bad arguments
ERROR: bad config file (4 errors)

What is wrong with the syntax or am I missing any modules ?

Thanks in advance
-Biju



 
____________________________________________________________________________________
Get your own web address.  
Have a HUGE year through Yahoo! Small Business.
http://smallbusiness.yahoo.com/domains/?p=BESTDEAL
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kamailio.org/pipermail/users/attachments/20070215/ea21278b/attachment.htm 


More information about the Users mailing list