[OpenSIPS-Users] syntax issue

Bogdan-Andrei Iancu bogdan at voice-system.ro
Thu Dec 2 12:29:26 CET 2010


Hi Erik,

In opensips config file, you need to use brackets ( '{' and '}' ) to 
contain blocks of instructions.

Regards,
Bogdan

erik pepermans wrote:
>
> Hi,
>
>  
>
> See in my debug log file for each registration following error, but 
> registration succeeds (using opensips 1.6.2-notls) :
>
>  
>
> sl:sl_reply_error: error text is Server error occurred (1/SL)
>
>  
>
> it occurs while :
>
>  
>
>                 if (!save("location"))
>
>                         xlog("L_INFO", "FORDBIDDEN");
>
>                         sl_reply_error();
>
>                 exit;
>
>  
>
> My mistake of course because when I write :
>
>                
>
>                 if (!save("location")) {
>
>                         xlog("L_INFO", "FORDBIDDEN");
>
>                         sl_reply_error();
>
>                 }
>
>                 exit;
>
>  
>
> Then this error does not occur ! Obvious, but it can take a while 
> before you find the issue !
>
>                
>
> debug :
>
>  
>
> Nov 20 01:21:17 [26671] DBG:core:parse_headers: flags=ffffffffffffffff
>
> Nov 20 01:21:17 [26671] DBG:core:parse_headers: flags=8000000
>
> Nov 20 01:21:17 [26671] DBG:core:parse_headers: flags=ffffffffffffffff
>
> Nov 20 01:21:17 [26671] DBG:usrloc:update_ucontact: exists callback 
> for type= UL_CONTACT_UPDATE
>
> Nov 20 01:21:17 [26671] DBG:registrar:build_contact: created Contact 
> HF: Contact: <sip:s at 77.xxx.xxx.100>;expires=120
>
> Nov 20 01:21:17 [26671] DBG:core:parse_headers: flags=ffffffffffffffff
>
> Nov 20 01:21:17 [26671] DBG:core:check_ip_address: params 
> 77.xxx.xxx.100, 77.xxx.xxx.100, 0
>
> Nov 20 01:21:17 [26671] DBG:sl:run_sl_callbacks: callback id 0 entered
>
> Nov 20 01:21:17 [26671] DBG:core:parse_to_param: tag=as19fb7a3e
>
> Nov 20 01:21:17 [26671] DBG:core:parse_to: end of header reached, state=29
>
> Nov 20 01:21:17 [26671] DBG:core:parse_to: display={}, 
> ruri={sip:asterisk3 at 192.168.5.1}
>
> Nov 20 01:21:17 [26671] DBG:core:parse_headers: flags=40
>
> Nov 20 01:21:17 [26671] DBG:siptrace:trace_sl_onreply_out: dest 
> [udp:77.xxx.xxx.xxx:5060]
>
> Nov 20 01:21:17 [26671] DBG:siptrace:trace_sl_onreply_out: storing info...
>
> Nov 20 01:21:17 [26671] DBG:db_mysql:has_stmt_ctx: ctx found for sip_trace
>
> Nov 20 01:21:17 [26671] DBG:db_mysql:db_mysql_do_prepared_query: 
> conn=0x7a3160 (tail=8008352) MC=0x7a5b88
>
> Nov 20 01:21:17 [26671] DBG:db_mysql:db_mysql_do_prepared_query: set 
> values for the statement run
>
> Nov 20 01:21:17 [26671] DBG:db_mysql:db_mysql_val2bind: added val (0): 
> len=412; type=252; is_null=0
>
> Nov 20 01:21:17 [26671] DBG:db_mysql:db_mysql_val2bind: added val (1): 
> len=55; type=254; is_null=0
>
> Nov 20 01:21:17 [26671] DBG:db_mysql:db_mysql_val2bind: added val (2): 
> len=8; type=254; is_null=0
>
> Nov 20 01:21:17 [26671] DBG:db_mysql:db_mysql_val2bind: added val (3): 
> len=3; type=254; is_null=0
>
> Nov 20 01:21:17 [26671] DBG:db_mysql:db_mysql_val2bind: added val (4): 
> len=20; type=254; is_null=0
>
> Nov 20 01:21:17 [26671] DBG:db_mysql:db_mysql_val2bind: added val (5): 
> len=22; type=254; is_null=0
>
> Nov 20 01:21:17 [26671] DBG:db_mysql:db_mysql_val2bind: added val (6): 
> len=40; type=12; is_null=0
>
> Nov 20 01:21:17 [26671] DBG:db_mysql:db_mysql_val2bind: added val (7): 
> len=3; type=254; is_null=0
>
> Nov 20 01:21:17 [26671] DBG:db_mysql:db_mysql_val2bind: added val (8): 
> len=10; type=254; is_null=0
>
> Nov 20 01:21:17 [26671] DBG:db_mysql:db_mysql_val2bind: added val (9): 
> len=0; type=254; is_null=0
>
> Nov 20 01:21:17 [26671] DBG:db_mysql:db_mysql_do_prepared_query: doing 
> BIND_PARAM in...
>
> Nov 20 01:21:17 [26671] DBG:sl:sl_reply_error: error text is Server 
> error occurred (1/SL)
>
> Nov 20 01:21:17 [26671] DBG:core:parse_headers: flags=ffffffffffffffff
>
> Nov 20 01:21:17 [26671] DBG:core:check_ip_address: params 
> 77.xxx.xxx.100, 77.xxx.xxx.100, 0
>
> Nov 20 01:21:17 [26671] DBG:sl:run_sl_callbacks: callback id 0 entered
>
> Nov 20 01:21:17 [26671] DBG:core:parse_headers: flags=40
>
> Nov 20 01:21:17 [26671] DBG:siptrace:trace_sl_onreply_out: dest 
> [udp:77.xxx.xxx.100:5060]
>
> Nov 20 01:21:17 [26671] DBG:siptrace:trace_sl_onreply_out: storing info...
>
> Nov 20 01:21:17 [26671] DBG:db_mysql:has_stmt_ctx: ctx found for sip_trace
>
> Nov 20 01:21:17 [26671] DBG:db_mysql:db_mysql_do_prepared_query: 
> conn=0x7a3160 (tail=8008352) MC=0x7a5b88
>
> Nov 20 01:21:17 [26671] DBG:db_mysql:db_mysql_do_prepared_query: set 
> values for the statement run
>
> Nov 20 01:21:17 [26671] DBG:db_mysql:db_mysql_val2bind: added val (0): 
> len=438; type=252; is_null=0
>
> Nov 20 01:21:17 [26671] DBG:db_mysql:db_mysql_val2bind: added val (1): 
> len=55; type=254; is_null=0
>
> Nov 20 01:21:17 [26671] DBG:db_mysql:db_mysql_val2bind: added val (2): 
> len=8; type=254; is_null=0
>
> Nov 20 01:21:17 [26671] DBG:db_mysql:db_mysql_val2bind: added val (3): 
> len=3; type=254; is_null=0
>
> Nov 20 01:21:17 [26671] DBG:db_mysql:db_mysql_val2bind: added val (4): 
> len=20; type=254; is_null=0
>
> Nov 20 01:21:17 [26671] DBG:db_mysql:db_mysql_val2bind: added val (5): 
> len=22; type=254; is_null=0
>
> Nov 20 01:21:17 [26671] DBG:db_mysql:db_mysql_val2bind: added val (6): 
> len=40; type=12; is_null=0
>
> Nov 20 01:21:17 [26671] DBG:db_mysql:db_mysql_val2bind: added val (7): 
> len=3; type=254; is_null=0
>
> Nov 20 01:21:17 [26671] DBG:db_mysql:db_mysql_val2bind: added val (8): 
> len=10; type=254; is_null=0
>
> Nov 20 01:21:17 [26671] DBG:db_mysql:db_mysql_val2bind: added val (9): 
> len=0; type=254; is_null=0
>
> Nov 20 01:21:17 [26671] DBG:db_mysql:db_mysql_do_prepared_query: doing 
> BIND_PARAM in...
>
>  
>
> Brgds
>
> Erik
>
>
> -- 
> This message has been scanned for viruses and
> dangerous content by *MailScanner* <http://www.mailscanner.info/>, and is
> believed to be clean.
> ------------------------------------------------------------------------
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>   


-- 
Bogdan-Andrei Iancu
OpenSIPS Bootcamp
15 - 19 November 2010, Edison, New Jersey, USA
www.voice-system.ro




More information about the Users mailing list