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