Re: [SR-Users] DB select htable:mod-init doesn't work

2014-05-15 Thread Sebastian Damm
Hi Daniel, On Thu, May 15, 2014 at 4:10 PM, Daniel-Constantin Mierla wrote: > > I used this, because I found it in an example written by you. > http://by-miconda.blogspot.de/2009/12/best-of-new-in-kamailio-300-9.html > > Is there any other way I can initialize a hash with values from a > datab

Re: [SR-Users] DB select htable:mod-init doesn't work

2014-05-15 Thread Daniel-Constantin Mierla
er.org] *On Behalf Of *Sebastian Damm *Sent:* 15 May 2014 10:34 *To:* SIP Router - Kamailio (OpenSER) and SIP Express Router (SER) - Users Mailing List *Subject:* [SR-Users] DB select htable:mod-init doesn't work Hi, I'm trying to fill a hash table on startup in t

Re: [SR-Users] DB select htable:mod-init doesn't work

2014-05-15 Thread Sebastian Damm
te = 0, > insert_delayed = 0,* > > * affected_rows = 0, start_transaction = 0, end_transaction = 0, > abort_transaction = 0, query_lock = 0}* > > (gdb) > > > > Regards, > > Hugh > > > > *From:* sr-users-boun...@lists.sip-router.org [ > mailto:sr-users-

Re: [SR-Users] DB select htable:mod-init doesn't work

2014-05-15 Thread Daniel-Constantin Mierla
rs-boun...@lists.sip-router.org [mailto:sr-users-boun...@lists.sip-router.org] *On Behalf Of *Sebastian Damm *Sent:* 15 May 2014 10:34 *To:* SIP Router - Kamailio (OpenSER) and SIP Express Router (SER) - Users Mailing List *Subject:* [SR-Users] DB select htable:mod-init doesn't work Hi, I

Re: [SR-Users] DB select htable:mod-init doesn't work

2014-05-15 Thread Waite, Hugh
- Kamailio (OpenSER) and SIP Express Router (SER) - Users Mailing List Subject: [SR-Users] DB select htable:mod-init doesn't work Hi, I'm trying to fill a hash table on startup in the htable:mod-init event route. But it doesn't work. Kamailio doesn't start at all, but doesn'

Re: [SR-Users] DB select htable:mod-init doesn't work

2014-05-15 Thread Juha Heinanen
Sebastian Damm writes: > you're right, but if that was the problem, we should at least see the > second log line after the sql_query. $var(i) is used only after this. are you saying that sql_query() never returns? -- juha ___ SIP Express Router (SER)

Re: [SR-Users] DB select htable:mod-init doesn't work

2014-05-15 Thread Sebastian Damm
Hi Juha, you're right, but if that was the problem, we should at least see the second log line after the sql_query. $var(i) is used only after this. Any other hints? Best Regards, Sebastian On Thu, May 15, 2014 at 11:44 AM, Juha Heinanen wrote: > Sebastian Damm writes: > > > event_route[htab

[SR-Users] DB select htable:mod-init doesn't work

2014-05-15 Thread Juha Heinanen
Sebastian Damm writes: > event_route[htable:mod-init] { > xlog("L_NOTICE", "Loading Carrier domains into Hash table.\n"); > sql_query("ser", "select domain_name from carrier_domains", > "domains"); > xlog("L_NOTICE", "Loaded from database...\n"); > while($var(i)<$db

[SR-Users] DB select htable:mod-init doesn't work

2014-05-15 Thread Sebastian Damm
Hi, I'm trying to fill a hash table on startup in the htable:mod-init event route. But it doesn't work. Kamailio doesn't start at all, but doesn't print out an error in the log. This is what the route looks like: event_route[htable:mod-init] { xlog("L_NOTICE", "Loading Carrier domains in