[SR-Users] Kamailio DB lookup

Daniel-Constantin Mierla miconda at gmail.com
Fri Nov 4 10:05:05 CET 2016


Hello,

it's not very clear for me what you try to achieve. Do you get the call
via TLS and want to forward to another server via a different hostname
also using TLS?

In alias_db module, the alias record is matching in coming r-uri and it
is translated to user record.

Cheers,
Daniel


On 04/11/16 09:58, Gonzalo Gasca Meza wrote:
> Hi Kamailions,
>
> Kamailio 4.3 will receive calls (SIP TLS) for users in this domain:
> *sip.parzee.io <http://sip.parzee.io>. *Example
>
> sip:gonzalo at sip.parzee.io <mailto:sip%3Agonzalo at sip.parzee.io>
>
> When call is received by Kamailio I need to overwrite R-URI and
> transport. 
> I should keep a mapping per user. ( gonzalo -> gonzalo58)
>
>
> Example.
>
> sip:gonzalo58 at test.external.com
> <mailto:sip%3Agonzalo58 at test.external.com>;transport=tls
>
> I started looking into *dbaliases* table in LOCATION.
>
>
> #!ifdef WITH_ALIASDB
>         # search in DB-based aliases
>         if(alias_db_lookup("dbaliases"))
>                 route(SIPOUT);
>     #!endif
>
> In dbaliases table I see 4 columns. Is the following configuration
> correct?
>
> *alias_username*: gonzalo58
> *alias_domain*: test.external.com <http://test.external.com>;transport=tls
> *username*: gonzalo
> *domain*: sip.parzee.io <http://sip.parzee.io>
>
> Thanks
>
> -Gonzalo
>
>
> _______________________________________________
> 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

-- 
Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Kamailio Advanced Training, Berlin, Nov 28-30, 2016 - http://www.asipto.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20161104/dfb656d6/attachment.html>


More information about the sr-users mailing list