Hello<br><br>I am not able to dial to pstn with kamailio, the call is routed to my pstn-gw(asterisk), but the final phone rings 4 or 5 seconds and then it is hanged up.<br>My outbound route is:<br>route[PSTN] {<br>        if (strempty($sel(cfg_get.pstn.gw_ip))) {<br>


                xlog(&quot;SCRIPT: PSTN rotuing enabled but pstn.gw_ip not defined\n&quot;);<br>                return;<br>        }<br>        if(from_uri!=myself) {<br>
                sl_send_reply(&quot;403&quot;, &quot;Not Allowed&quot;);<br>                exit;<br>        }<br>        route(TOASTERISK);<br>        exit;<br>        return;<br>}<br><br><br>route[TOASTERISK] {<br>sl_send_reply(&quot;100&quot;,&quot;Trying&quot;);<br>


uac_replace_from(&quot;$fn&quot;,&quot;sip:$fn@$fd&quot;);<br>route(NATMANAGE);<br>ds_select_dst(&quot;1&quot;,&quot;4&quot;);<br>t_on_failure(&quot;1&quot;);<br>t_relay();<br>}<br><br><br>failure_route[1] {<br>ds_mark_dst(&quot;i&quot;);<br>


if (!ds_next_dst()) {<br>                t_reply(&quot;503&quot;, &quot;Service unavailable: no more dst&quot;);<br>                exit;<br>}<br>route(TOASTERISK);<br>}<br><br>With a traffic capture i can see the traffic returning to my kamailio server.<br>

<br>Any suggestion will be appreciated.<br><br>