On 10/13/2010 09:57 PM, "Nicolas Rüger" wrote:
Hey Marius,

thnaks again. I now did the following:

  git clone git://git.sip-router.org/sip-router kamailio
  cd kamailio
  git checkout -b 3.1 origin/3.1

  git cherry-pick 2f8f8e58

  make FLAVOUR=kamailio  include_modules="db_mysql perl" cfg
  make all
  make install

Picking the "cherry" worked without the "-depth 1". :)


BUT I still get an error when using userblacklistmodule:


  ERROR:<core>  [dtrie.c:132]: cannot insert non-numerical character
  ERROR: userblacklist [db.c:91]: could not insert values into trie.


Hello,

Are you sure that you rebuilt userblacklist module after the patch (you can go to modules_k/userblacklist and run make from there)? Did the patch applied without error? Also, have you explicitly enabled the alpha numerical match mode

modparam("userblacklist", "match_mode", 128)

in you cfg file?

Cheers
Marius

The username I use in userblacklist-table is "user04" and the prefix is 
"user03". Domain column is empty.

Any ideas why it's not working???


Thank you!!

Regards,

Nicolas






-------- Original-Nachricht --------
Datum: Wed, 13 Oct 2010 19:16:21 +0200
Von: Marius Zbihlei<marius.zbih...@1and1.ro>
An: "Nicolas Rüger"<nicolasrue...@gmx.de>
CC: "sr-users@lists.sip-router.org"<sr-users@lists.sip-router.org>
Betreff: Re: [SR-Users] userblacklist error using characters
Hello,
Sorry for the advice,  -depth 1 means no commit history which is fine :D
The patch I was referring is here
http://git.sip-router.org/cgi-bin/gitweb.cgi?p=sip-router;a=commitdiff;h=2f8f8e58a922adec440d47592d1ca24dbf05f29c
You can save it into a file (starting with the line diff --git
a/modules_k/userblacklist/README b/modules_k/userblacklist/README) and use the 
"patch"
utility to patch the module.
Then compile.
Marius

________________________________________
From: "Nicolas Rüger" [nicolasrue...@gmx.de]
Sent: Wednesday, October 13, 2010 5:46 PM
To: Marius Zbihlei
Cc: sr-users@lists.sip-router.org
Subject: Re: [SR-Users] userblacklist error using characters

Hey Marius,

thanks for the detailed answer but after

   git cherry-pick 2f8f8e58

I get the error:

   fatal: Cannot find '2f8f8e58'

Any ideas???

Thank you.

Regards,

Nicolas


patch from the master branch to 3.1 (local so don't worry) using

cd /usr/local/src/kamailio-3.1.0
rm -rf kamailio #start with a new fresh clone
git clone --depth 1 git://git.sip-router.org/sip-router kamailio
cd kamailio
git checkout -b 3.1 origin/3.1
#this is the new step
git cherry-pick 2f8f8e58


You should then see something like

Finished one cherry-pick.
[3.1 e4f7cd8] modules_k/userblacklist : extended userblacklist module so
also alphanumerical matches are possible
   5 files changed, 86 insertions(+), 27 deletions(-)


--
GRATIS! Movie-FLAT mit über 300 Videos.
Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome

_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

Reply via email to