<div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><div>Hello Daniel,<br>     Thank you for the reply. I'm quite new to the sip world, and not sure how to change the config file. The pstn part of the config file is as follows:<br>   <span style="background-color: rgb(192, 192, 192);">#!ifdef WITH_PSTN<br>        if (strempty($sel(cfg_get.pstn.gw_ip))) {<br>                xlog("SCRIPT: PSTN routing enabled but pstn.gw_ip not defined\n");<br>                return;<br>        }<br>        if(!($rU=~"^(\+|00)[1-9][0-9]{3,20}$")) return;<br><br>        if(from_uri!=myself && src_ip!=104.199.152.250) {<br>                sl_send_reply("403", "Not Allowed haha");<br>                exit;<br>        }<br><br>        if (strempty($sel(cfg_get.pstn.gw_port))) {<br>                $ru = "sip:" + $rU + "@" + $sel(cfg_get.pstn.gw_ip);<br>        } else {<br>                $ru = "sip:" + $rU + "@" + $sel(cfg_get.pstn.gw_ip) + ":"<br>                                        + $sel(cfg_get.pstn.gw_port);<br>        }<br><br>        route(RELAY);<br>        exit;<br>#!endif</span><br><br>Can you help me do the modification? Thank you.<br><br>Cheers,<br>Jesse<br></div><div id="divNeteaseMailCard"></div><br>At 2017-06-06 15:36:22, "Daniel-Constantin Mierla" <miconda@gmail.com> wrote:<br> <blockquote id="isReplyContent" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
  
    
  
  
    <p>Hello,</p>
    <p>if you set r-uri to a UDP address, then you can just use
      t_relay(), and everything needed should be done by kamailio. Be
      sure you do record_route()/loose_route(), so the requests within
      dialog are also routed properly.</p>
    <p>Cheers,<br>
      Daniel<br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 06.06.17 08:50, ÕÔ¹ú½Ü wrote:<br>
    </div>
    <blockquote cite="mid:439882a5.7cda.15c7c2baac5.Coremail.zhaoguojie2010@163.com" type="cite">
      <div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial">
        <div>Hi everyone,<br>
               I have a kamailio server with TLS enabled. I need to
          forword UAC request to a PSTN gateway which only support UDP.
          Is it possible that kamailio can translate this with proper
          configuration? How can i do this?<br>
          <br>
          many thanks<br>
          Jesse<br>
        </div>
      </div>
      <br>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a>
Kamailio Advanced Training - <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
Kamailio World Conference - <a class="moz-txt-link-abbreviated" href="http://www.kamailioworld.com">www.kamailioworld.com</a></pre>
  

</blockquote></div><br><br><span title="neteasefooter"><p> </p></span>