[SR-Users] htable not visible in another thread

Charles Chance charles.chance at sipcentric.com
Thu Mar 22 21:56:01 CET 2018


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 <kjeld.flarup at liberalismen.dk>
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
> <https://maps.google.com/?q=Sofienlundvej+6B,+7560+Hjerm&entry=gmail&source=g>,
> 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:
> >> <script>: Suspended transaction sht(vtp=>join::004540294149) =
> >> [23690:1238111367]
> >>
> >> But in my register thread nothing is read
> >>
> >> xlog("L_ALERT","sht(vtp=>join::$tU) = $sht(vtp=>join::$tU)\n");
> >>      Mar 19 23:36:31 raspberrypi /usr/sbin/kamailio[2114]: ALERT:
> >> <script>: sht(vtp=>join::004540294149) = <null>
> >>
> >> # -------- htable params --------------
> >> modparam("htable", "db_url", DBURL)
> >> modparam("htable", "htable",
> >> "vtp=>size=10;autoexpire=120;dbtable=htable;dbmode=1")
> >> modparam("htable", "htable", "a=>size=6;")
> >>
> >> I never see any data in htable in the database.
> >>
> >> What am I doing wrong?
> >>
>
>
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
-- 
*Charles Chance*
Managing Director

t. 0330 120 1200    m. 07932 063 891

-- 
Sipcentric Ltd. Company registered in England & Wales no. 7365592. Registered 
office: Faraday Wharf, Innovation Birmingham Campus, Holt Street, 
Birmingham Science Park, Birmingham B7 4BB.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20180322/308d0929/attachment.html>


More information about the sr-users mailing list