[OpenSIPS-Users] syntax issue

erik pepermans cpu1 at telenet.be
Sat Nov 20 01:44:34 CET 2010


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, and is
believed to be clean.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20101120/11cf1fda/attachment.htm>


More information about the Users mailing list