<div dir="ltr">Hey Max,<div><br><div>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. </div><div>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.</div><div><br></div><div>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.</div><div class="gmail_extra"><br></div><div class="gmail_extra">Regards,</div><div class="gmail_extra">Sammy</div><div class="gmail_extra"><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Nov 2, 2015 at 8:05 AM, Max <span dir="ltr"><<a href="mailto:maxim.suraev@campus.tu-berlin.de" target="_blank">maxim.suraev@campus.tu-berlin.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi.<br>
<br>
I'd like to use Kamailio as a SIP proxy routing calls to upstream SIP provider.<br>
As far as I've understood the parameters I should set are:<br>
<br>
pstn.gw_ip = "" desc "PSTN GW Address"<br>
pstn.gw_port = "" desc "PSTN GW Port"<br>
<br>
The problem is that my upstream provider uses dynamic IP for its server. How can I<br>
use hostname instead of ip.<br>
<br>
>From what I see in route[PSTN] example it seems like it should just work if I use<br>
pstn.gw_ip = "sip.myprovider.lol" desc "My upstream SIP host"<br>
<br>
But if so - why the confusing name? And if not - how do I make it work? Is there<br>
pstn.gw_host or smth like that?<br>
<br>
regards,<br>
Max.<br>
<br>
_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div><br></div></div></div>