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("SCRIPT: PSTN rotuing enabled but pstn.gw_ip not defined\n");<br> return;<br> }<br> if(from_uri!=myself) {<br>
sl_send_reply("403", "Not Allowed");<br> exit;<br> }<br> route(TOASTERISK);<br> exit;<br> return;<br>}<br><br><br>route[TOASTERISK] {<br>sl_send_reply("100","Trying");<br>
uac_replace_from("$fn","sip:$fn@$fd");<br>route(NATMANAGE);<br>ds_select_dst("1","4");<br>t_on_failure("1");<br>t_relay();<br>}<br><br><br>failure_route[1] {<br>ds_mark_dst("i");<br>
if (!ds_next_dst()) {<br> t_reply("503", "Service unavailable: no more dst");<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>