Hi,
As per your Input , I have my below htable Entries,
| id | key_name | key_type | value_type | key_value | expires |
+----+----------+----------+------------+-----------+---------+
| 1 | 91 | 0 | 1 | India
| 0 |
I have executed the below command :
[root@zeodialer kamailio]# $sht(htable=>91)
-bash: syntax error near unexpected token `htable='
I am not Sure what I am missing? Guide me please
Thanks & Kind Regards,
*Logeshwaran G*
*"Be Hungry, Stay Foolish"*
On Mon, Sep 11, 2017 at 12:10 PM, Sebastian Damm <damm(a)sipgate.de> wrote:
Hi,
On Mon, Sep 11, 2017 at 8:26 AM, Logeshwaran G <logeshwarangs(a)gmail.com>
wrote:
Is there any way to use the Mapping technique in
kamailio.
For Example:
==========
Key = 91, Value = India
Key = 92, Value = Srilanka
How to store Key Value Pairs into kamailio and how to Retrieve?
You can use a htable for that and read it from DB on startup (or
trigger reload via RPC).
$sht(yourHtableName=>91) would give you India then.
HTH
Sebastian
_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users(a)lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users