<div dir="ltr">Guys, thanks for the direction.<div><br></div><div>Yes, lazy old me decided to actually read the file contents.... looked at the proxy log file messages and compared it with the proxy.cfg template as suggested. Found the line by searching the 404s... made the change with a new custom template and ngcpcfg apply</div>

<div><br></div><div>All went well and doing a ngrep-sip showed the correct reply.</div><div><br></div><div>I'm starting to get the hang of hacking the config files and the structure of the files a bit more.</div><div>

<br></div><div>Thanks again!</div><div><br></div><div><br></div><div class="gmail_extra"><div class="gmail_quote">On Wed, Jul 24, 2013 at 7:25 PM, Lorenzo Mangani <span dir="ltr"><<a href="mailto:lorenzo.mangani@gmail.com" target="_blank">lorenzo.mangani@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hey Martin,<div><br></div><div>A good approach for you to understand what to change on your own would be to watch the logs as this specific condition happens (inbound call to non existing user, etc) and note the specific messages there - using those, trace the strings back the relevant areas within the template configuration. This way you can quickly get (closer) to the specific section of the scripts where to experiment with your condition and your changes (after performing a backup no less) and learn more about the systems internals as you progress - it's not too complex if you follow the handbook where this is explained, and use the extremely well commented logic the guys implemented in the templates -  just my 2 euro cents.</div>



<div><div><span style="font-family:arial,sans-serif"><span style="font-family:Arial"><div style="font-size:13px;color:rgb(119,119,119)"><font><span style="font-family:Arial;color:rgb(119,119,119)"><br>

</span></font></div><div style="font-size:13px;color:rgb(119,119,119)"><font><span style="font-family:Arial;color:rgb(119,119,119)">Best.</span></font></div><div style="font-size:13px;color:rgb(119,119,119)"><font><span style="font-family:Arial;color:rgb(119,119,119)"><br>



</span></font></div><div style="font-size:13px"><font color="#666666"><span style="font-family:Arial">Lorenzo Mangani</span></font></div><div style="font-size:13px"><font color="#666666"><div style="font-size:x-small"><br>



</div><div style="font-size:x-small">HOMER DEV TEAM</div></font></div><div style="font-size:x-small"><font size="1" color="#666666"><span style="font-family:Arial">QXIP - Capture Engineering</span></font></div><div style="font-size:x-small">



<br></div></span></span></div><div><div class="h5"><br><div class="gmail_quote">On Wed, Jul 24, 2013 at 10:26 AM, Martin Wong <span dir="ltr"><<a href="mailto:martin.wong@binaryelements.com.au" target="_blank">martin.wong@binaryelements.com.au</a>></span> wrote:<br>



<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Apologies ... before I stuff it up, is it possible for you to let me know where exactly to change in the proxy.cfg? Aiming for a return of 503 when an inbound call comes in and there's no such subscriber / alias number </div>





<div><br></div><div>Thanks</div></div><div class="gmail_extra"><br clear="all"><div><div dir="ltr">Martin Wong<div>Director@Binary Elements</div><div><a href="http://www.binaryelements.com.au" target="_blank">http://www.binaryelements.com.au</a></div>





<div>Tel: <a href="tel:03%209020%207900" value="+61390207900" target="_blank">03 9020 7900</a></div><div>DID: <a href="tel:03%209020%207907" value="+61390207907" target="_blank">03 9020 7907</a></div><div>Mob: <a href="tel:0405%20817%20796" value="+31405817796" target="_blank">0405 817 796</a><br>

</div></div></div>
<br><br><div class="gmail_quote"><div><div>On Wed, Jul 24, 2013 at 6:14 PM, Jon Bonilla <span dir="ltr"><<a href="mailto:jbonilla@sipwise.com" target="_blank">jbonilla@sipwise.com</a>></span> wrote:<br></div>

</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>

El Wed, 24 Jul 2013 15:38:31 +1000<br>
Martin Wong <<a href="mailto:martin.wong@binaryelements.com.au" target="_blank">martin.wong@binaryelements.com.au</a>> escribió:<br>
<div><div><br>
> Hi guys, is there a way to respond back with a 503 instead of a 404 when<br>
> there is no such number in the SPCE?<br>
><br>
> Just that our provider would need this code to determine to move to another<br>
> IP address to route calls in.<br>
><br>
<br>
<br>
</div></div>You would need to create a customtt template as described in the Handbook.<br>
<br>
Check for 404 in /etc/ngcp-config/templates/etc/kamailio/proxy and replace the<br>
return codes with the ones you need.<br>
<br>
<br>
cheers,<br>
<br>
Jon<br>
<br>
<br></div></div>_______________________________________________<br>
Spce-user mailing list<br>
<a href="mailto:Spce-user@lists.sipwise.com" target="_blank">Spce-user@lists.sipwise.com</a><br>
<a href="http://lists.sipwise.com/listinfo/spce-user" target="_blank">http://lists.sipwise.com/listinfo/spce-user</a><br>
<br></blockquote></div><br></div>
<br>_______________________________________________<br>
Spce-user mailing list<br>
<a href="mailto:Spce-user@lists.sipwise.com" target="_blank">Spce-user@lists.sipwise.com</a><br>
<a href="http://lists.sipwise.com/listinfo/spce-user" target="_blank">http://lists.sipwise.com/listinfo/spce-user</a><br>
<br></blockquote></div><br></div></div></div>
</blockquote></div><br></div></div>