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@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@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_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@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users