[Spce-user] Forbid calls from peer

Ivan Milivojevic edesibe at gmail.com
Wed Sep 18 06:10:38 EDT 2013


Somethin like

$avp(s:acc_callee_user) = $avp(s:callee_user);
                $avp(s:acc_callee_domain) = $avp(s:callee_domain);
                # TODO: need to care about changing reason in accounting
from 404 to 480?

                route(ROUTE_ACC_FAILURE);


                if($rU=="no_such_number" && $avp(s:from_pstn) == 1)
                {
                        $(avp(s:announce_code)[*]) = 404;
                        $(avp(s:announce_reason)[*]) = "Not Found";
                } else
                {
$var(announce_handle) = "callee_offline";
                $var(announce_set) = $avp(s:callee_sound_set);
                        $(avp(s:announce_code)[*]) = 480;
                        $(avp(s:announce_reason)[*]) = "Offline";
                }
                route(ROUTE_EARLY_REJECT);


On Wed, Sep 18, 2013 at 11:41 AM, Ivan Milivojevic <edesibe at gmail.com>wrote:

> Hi Jon,
>
> I am asking for peers.I set already no_such_number but in thay way spce
> replies to trunks with 480, Offline.
> They are complaining because they are expecting 404 Not Found.
>
> I will try to find some solution to reply with 404 for those calls, i have
> already an idea.
>
> :)
>
> Thanks anyway.
>
> Regards,
> Ivan
>
>
> On Wed, Sep 18, 2013 at 11:14 AM, Jon Bonilla <jbonilla at sipwise.com>wrote:
>
>> El Fri, 13 Sep 2013 11:51:24 +0200
>> Ivan Milivojevic <edesibe at gmail.com> escribió:
>>
>> > Hi all,
>> >
>> > We are using no_such_number as Replacement pattern in 'Inbound Rewrite
>> > Rules for Callee' in order to deny calls from some trunks.
>> >
>> > In that way, trunks get 480 in replies from spce box.
>> > I am wondering is this a best way to deny inbound calls?
>> >
>> > Regards,
>> > Ivan
>>
>>
>> If subscribers you have NCOS levels and adm block lists.
>>
>> If peers there's no better way as peers are considered trusted. It could
>> be
>> possible to add ncos levels and adm block lists to peers too in case
>> someone is
>> willing to sponsor the development.
>>
>>
>> cheers,
>>
>> Jon
>>
>>
>> _______________________________________________
>> Spce-user mailing list
>> Spce-user at lists.sipwise.com
>> http://lists.sipwise.com/listinfo/spce-user
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sipwise.com/pipermail/spce-user_lists.sipwise.com/attachments/20130918/c756690e/attachment-0001.html>


More information about the Spce-user mailing list