<div dir="ltr">I click sent by error<br><div><br>         $avp(s:acc_callee_user) = $avp(s:callee_user);<br>                $avp(s:acc_callee_domain) = $avp(s:callee_domain);<br>                # TODO: need to care about changing reason in accounting from 404 to 480?<br>
<br>        # ivan added for block inbound calls from trunk<br>                route(ROUTE_ACC_FAILURE);<br><br>                if($rU=="no_such_number" && $avp(s:from_pstn) == 1)<br>                {<br>
                        $var(announce_handle) = "callee_unknown";<br>                        $var(announce_set) = $avp(s:callee_sound_set);<br>                        $(avp(s:announce_code)[*]) = 404;<br>                        $(avp(s:announce_reason)[*]) = "Not Found";<br>
                } else<br>                {<br>                        $var(announce_handle) = "callee_offline";<br>                        $var(announce_set) = $avp(s:callee_sound_set);<br>                        $(avp(s:announce_code)[*]) = 480;<br>
                        $(avp(s:announce_reason)[*]) = "Offline";<br>                }<br>                route(ROUTE_EARLY_REJECT);<br>        }<br><br><br></div><div>this is the correct one<br><br>regards<br>i<br>
</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Sep 18, 2013 at 12:10 PM, Ivan Milivojevic <span dir="ltr"><<a href="mailto:edesibe@gmail.com" target="_blank">edesibe@gmail.com</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">Somethin like<br><br>$avp(s:acc_callee_user) = $avp(s:callee_user);<br>                $avp(s:acc_callee_domain) = $avp(s:callee_domain);<br>
                # TODO: need to care about changing reason in accounting from 404 to 480?<br>
                <br>                route(ROUTE_ACC_FAILURE);<br>               <br>                <br>                if($rU=="no_such_number" && $avp(s:from_pstn) == 1)<br>                {<br>                        $(avp(s:announce_code)[*]) = 404;<br>

                        $(avp(s:announce_reason)[*]) = "Not Found";<br>                } else<br>                {<br> $var(announce_handle) = "callee_offline";<br>                $var(announce_set) = $avp(s:callee_sound_set);<br>

                        $(avp(s:announce_code)[*]) = 480;<br>                        $(avp(s:announce_reason)[*]) = "Offline";<br>                }<br>                route(ROUTE_EARLY_REJECT);<br></div><div class="HOEnZb">
<div class="h5"><div class="gmail_extra">
<br><br><div class="gmail_quote">On Wed, Sep 18, 2013 at 11:41 AM, Ivan Milivojevic <span dir="ltr"><<a href="mailto:edesibe@gmail.com" target="_blank">edesibe@gmail.com</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><div><div><div><div>Hi Jon,<br><br></div>I am asking for peers.I set already no_such_number but in thay way spce replies to trunks with 480, Offline.<br></div>They are complaining because they are expecting 404 Not Found.<br>


<br></div>I will try to find some solution to reply with 404 for those calls, i have already an idea.<br><br>:)<br><br></div><div>Thanks anyway.<br></div><div><br></div>Regards,<br></div>Ivan <br></div><div class="gmail_extra">


<br><br><div class="gmail_quote"><div><div>On Wed, Sep 18, 2013 at 11:14 AM, 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 Fri, 13 Sep 2013 11:51:24 +0200<br>
Ivan Milivojevic <<a href="mailto:edesibe@gmail.com" target="_blank">edesibe@gmail.com</a>> escribió:<br>
<div><div><br>
> Hi all,<br>
><br>
> We are using no_such_number as Replacement pattern in 'Inbound Rewrite<br>
> Rules for Callee' in order to deny calls from some trunks.<br>
><br>
> In that way, trunks get 480 in replies from spce box.<br>
> I am wondering is this a best way to deny inbound calls?<br>
><br>
> Regards,<br>
> Ivan<br>
<br>
<br>
</div></div>If subscribers you have NCOS levels and adm block lists.<br>
<br>
If peers there's no better way as peers are considered trusted. It could be<br>
possible to add ncos levels and adm block lists to peers too in case someone is<br>
willing to sponsor the development.<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>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>