Hey Max, You should know that pstn.gw_ip is not a keyword in Kamailio and it could've been pstn.lol_gw or anything. What really matters is that you know where this gw_ip is being used in configuration. Somewhere in the kamailio.cfg you'll see a PSTN route which will be doing some RURI checks and then checking is pstn.gw_ip is not empty, and after that it just modifies the RURI to contain this variable "pstn.gw_ip" value in the Request Domain part so when t_relay() is called the call exits out to that IP or Host.
You should search up on kamailio about DNS hostname auto-resolution and if your provider has DNS SRV working how Kamailio will work with it. Regards, Sammy On Mon, Nov 2, 2015 at 8:05 AM, Max <maxim.sur...@campus.tu-berlin.de> wrote: > Hi. > > I'd like to use Kamailio as a SIP proxy routing calls to upstream SIP > provider. > As far as I've understood the parameters I should set are: > > pstn.gw_ip = "" desc "PSTN GW Address" > pstn.gw_port = "" desc "PSTN GW Port" > > The problem is that my upstream provider uses dynamic IP for its server. > How can I > use hostname instead of ip. > > From what I see in route[PSTN] example it seems like it should just work > if I use > pstn.gw_ip = "sip.myprovider.lol" desc "My upstream SIP host" > > But if so - why the confusing name? And if not - how do I make it work? Is > there > pstn.gw_host or smth like that? > > regards, > Max. > > _______________________________________________ > 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 >
_______________________________________________ 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