Re: [SR-Users] htable not visible in another thread

2018-03-22 Thread Charles Chance
Hello,

Just to add, if you do need to share htable entries between instances at
runtime, then you can do so by enabling DMQ replication.

http://www.kamailio.org/docs/modules/stable/modules/htable.html#htable.p.enable_dmq

Cheers,

Charles


On Thu, 22 Mar 2018 at 20:36, Kjeld Flarup 
wrote:

> Thanks for the clarification.
>
> I just was confused by the db_url parameter in the configuration.
>
> And that also explains why it didn't work for me, because I have two
> Kamailio's running in my setup, and the other thread was on another
> kamailio.
>
> I found a way to make both threads run on the same Kamailio.
>
>  Med Liberalistiske Hilsner --
> Civilingeniør, Kjeld Flarup - Mit sind er mere åbent end min tegnebog
> Sofienlundvej 6B, 7560 Hjerm
> ,
> Tlf: 40 29 41 49
> Den ikke akademiske hjemmeside for liberalismen - www.liberalismen.dk
>
> On 03/22/2018 09:58 AM, Daniel-Constantin Mierla wrote:
> > Hello,
> >
> > htable is not writing to database at runtime, keeps everything in
> > memory. You should use kamctl rpc htable.dump ... in order to see what
> > is inside a htable.
> >
> > Cheers,
> > Daniel
> >
> >
> > On 19.03.18 23:45, Kjeld Flarup wrote:
> >> Im trying to do a t_suspend, but cant get htable to work
> >>
> >> I save to $sht
> >>
> >> $sht(vtp=>join::$rU) = "" + $T(id_index) + ":" + $T(id_label);
> >> xlog( "L_ALERT", "Suspended transaction sht(vtp=>join::$rU) =
> >> [$sht(vtp=>join::$rU)]\n" );
> >>
> >>  Mar 19 23:36:28 raspberrypi /usr/sbin/kamailio[2167]: ALERT:
> >> 

Re: [SR-Users] htable not visible in another thread

2018-03-22 Thread Kjeld Flarup

Thanks for the clarification.

I just was confused by the db_url parameter in the configuration.

And that also explains why it didn't work for me, because I have two 
Kamailio's running in my setup, and the other thread was on another 
kamailio.


I found a way to make both threads run on the same Kamailio.

 Med Liberalistiske Hilsner --
   Civilingeniør, Kjeld Flarup - Mit sind er mere åbent end min tegnebog
   Sofienlundvej 6B, 7560 Hjerm, Tlf: 40 29 41 49
   Den ikke akademiske hjemmeside for liberalismen - www.liberalismen.dk

On 03/22/2018 09:58 AM, Daniel-Constantin Mierla wrote:

Hello,

htable is not writing to database at runtime, keeps everything in
memory. You should use kamctl rpc htable.dump ... in order to see what
is inside a htable.

Cheers,
Daniel


On 19.03.18 23:45, Kjeld Flarup wrote:

Im trying to do a t_suspend, but cant get htable to work

I save to $sht

$sht(vtp=>join::$rU) = "" + $T(id_index) + ":" + $T(id_label);
xlog( "L_ALERT", "Suspended transaction sht(vtp=>join::$rU) =
[$sht(vtp=>join::$rU)]\n" );

     Mar 19 23:36:28 raspberrypi /usr/sbin/kamailio[2167]: ALERT:

Re: [SR-Users] htable not visible in another thread

2018-03-22 Thread Daniel-Constantin Mierla
Hello,

htable is not writing to database at runtime, keeps everything in
memory. You should use kamctl rpc htable.dump ... in order to see what
is inside a htable.

Cheers,
Daniel


On 19.03.18 23:45, Kjeld Flarup wrote:
> Im trying to do a t_suspend, but cant get htable to work
>
> I save to $sht
>
> $sht(vtp=>join::$rU) = "" + $T(id_index) + ":" + $T(id_label);
> xlog( "L_ALERT", "Suspended transaction sht(vtp=>join::$rU) =
> [$sht(vtp=>join::$rU)]\n" );
>
>     Mar 19 23:36:28 raspberrypi /usr/sbin/kamailio[2167]: ALERT:
> 

[SR-Users] htable not visible in another thread

2018-03-19 Thread Kjeld Flarup

Im trying to do a t_suspend, but cant get htable to work

I save to $sht

$sht(vtp=>join::$rU) = "" + $T(id_index) + ":" + $T(id_label);
xlog( "L_ALERT", "Suspended transaction sht(vtp=>join::$rU) = 
[$sht(vtp=>join::$rU)]\n" );


    Mar 19 23:36:28 raspberrypi /usr/sbin/kamailio[2167]: ALERT: