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.
Cheers,
Charles
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:
>> <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@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.