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. Example

sip:gonzalo@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@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_usernamegonzalo58
alias_domaintest.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@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