[OpenSIPS-Users] Help with sip trace errors please
    opensipslist at encambio.com 
    opensipslist at encambio.com
       
    Wed Dec  9 19:16:32 CET 2009
    
    
  
Hello Bogdan,
On wed., dec 09, 2009, Bogdan-Andrei Iancu wrote:
>Field 0 is the "msg" field (used as DB_BLOB by siptrace) should be
>"STR" to work, but I already see it is set at string in your table
>definition... so I looked for a bug and found one in the db_text
>module - if you update from SVN, it should be ok.
>
That is great news, but sadly I might have been able to find and
correct the problem myself if the variable naming was not so cryptic.
But thanks to you indeed, the problem is solved. I've tested your
revision 6382:
Index: modules/db_text/dbt_lib.c
diff -Nau modules/db_text/dbt_lib.c.orig modules/db_text/dbt_lib.c
--- modules/db_text/dbt_lib.c.orig  2009-10-16 02:35:15.000000000 +0200
+++ modules/db_text/dbt_lib.c   2009-12-09 18:14:52.707887067 +0100
@@ -446,7 +446,7 @@
            if(_t0==DB_STRING || _t0==DB_BLOB)
                return 0;
        case DB_BLOB:
-           if(_t0==DB_STR)
+           if(_t0==DB_STR || _t0==DB_STRING)
                return 0;
        case DB_BITMAP:
            if (_t0==DB_INT)
...and it works.
Regards,
Brian
    
    
More information about the Users
mailing list