[SR-Users] Kamailio DB lookup

Alberto Llamas albertollamaso at gmail.com
Fri Nov 4 11:38:37 CET 2016


Hi Gonzalo,

I think you are doing wrong setting 'transport=tls' in the alias_domain.
You should implement a combination of aliasdb and checking for protocol as
below:

*alias_username*: gonzalo58
*alias_domain*: test.external.com
*username*: gonzalo
*domain*: sip.parzee.io



In kamailio's script (example):

#!ifdef WITH_ALIASDB
# search in DB-based aliases
if(proto==TLS)
{
if(alias_db_lookup("dbaliases")) {
route(SIPOUT);
}
}
#!endif




Regards,

On Fri, Nov 4, 2016 at 9:58 AM, Gonzalo Gasca Meza <gascagonzalo at gmail.com>
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
>
> 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;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;transport=tls
> *username*: gonzalo
> *domain*: 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
>
>


-- 
Alberto Llamas
Phone: +1-786-805-6003
Telecommunications Engineer
Digium Certified Asterisk Professional (dCap)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20161104/6429e943/attachment.html>


More information about the sr-users mailing list