[SR-Users] Kamailio DB lookup

Gonzalo Gasca Meza gascagonzalo at gmail.com
Fri Nov 4 09:58:48 CET 2016


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20161104/df439d03/attachment.html>


More information about the sr-users mailing list