[SR-Users] Purpose of table location_attrs

mayamatakeshi mayamatakeshi at gmail.com
Thu Jul 16 12:58:43 CEST 2015


Daniel,
understood. Thank you.

Regards,
Takeshi

On Thu, Jul 16, 2015 at 6:30 PM, Daniel-Constantin Mierla <miconda at gmail.com
> wrote:

>  Hello,
>
> the location_attrs table store extra attributes per contact record, which
> can be set in config file via XAVP.
>
> You need to add the tables with _attrs suffix corresponding to the name
> you use instead of 'location', using same structure as location_attrs. In
> your case should be k1_location_attrs and k2_location_attrs.
>
> Cheers,
> Daniel
>
>
> On 15/07/15 01:10, mayamatakeshi wrote:
>
> Hello,
> I need to prepare two kamailio instances accessing the same mysql db.
> They will write to different location tables so i use function calls like
> these:
>
>  Server1:
>   save("k1_location");
>   lookup("k1_location");
>
>  Server2:
>    save("k2_location");
>   lookup("k2_location");
>
>  This is working fine.
>
>  However, checking db, I can see there is also a table called
> location_attrs and I am not sure what is its purpose (is this documented?).
> Anyway, I suspect I should also set a separate copy of it for each
> kamailio instance, but I am not sure how to do it.
>
>  Regards,
> Takeshi
>
>
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing listsr-users at lists.sip-router.orghttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
>
> --
> Daniel-Constantin Mierlahttp://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
> Book: SIP Routing With Kamailio - http://www.asipto.com
>
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20150716/ff9116e4/attachment.html>


More information about the sr-users mailing list