[SR-Users] Map Technique(Key value pair) in kamailio

Sebastian Damm damm at sipgate.de
Mon Sep 11 08:40:22 CEST 2017


Hi,

On Mon, Sep 11, 2017 at 8:26 AM, Logeshwaran G <logeshwarangs at 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



More information about the sr-users mailing list