[SR-Users] htable not visible in another thread

Daniel-Constantin Mierla miconda at gmail.com
Thu Mar 22 09:58:15 CET 2018


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?
>

-- 
Daniel-Constantin Mierla
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - April 16-18, 2018, Berlin - www.asipto.com
Kamailio World Conference - May 14-16, 2018 - www.kamailioworld.com




More information about the sr-users mailing list