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