Le 24/04/2012 12:37, SamyGo a écrit :
Thats not gonna work TOOTAi,
that's just ACL thing you wrote. The peer IP is only going to be matched against the host= field.
correct me if I'm wrong on this.

Well from the permit-deny-mask link it say that it works on type=user or type=peer. As type=peer can also be used for users, I would expect that something like (without being registred):

[MyTelco]
type=peer
host=sip.mytelco.com                                ;to place call to
deny=0.0.0.0/0.0.0.0                                  ;deny all incoming IPs
permit=1.2.3.4/255.255.255.255               ;but not this one
permit=5.6.7.8/255.255.255.240               ;but not for this subnet

If it only match on host field, why are multiple permit field allowed? And for what they are usable then?

Anyway, from other threads I saw it seems that your right ... my questions stays open ;-)




On Tue, Apr 24, 2012 at 3:14 PM, Administrator TOOTAI <[email protected] <mailto:[email protected]>> wrote:

    Le 24/04/2012 09:56, SamyGo a écrit :

        I wonder if anyone from asterisk development can tell about
        putting a subet in *host=192.168.2.0/26
        <http://192.168.2.0/26> <http://192.168.2.0/26> *field.

        I fear you may need to declare peers for those ~20 IPs in
        worst case.

    [MyTelco]
    ...
    deny=0.0.0.0/0.0.0.0 <http://0.0.0.0/0.0.0.0>
    permit=1.2.3.4/255.255.240 <http://1.2.3.4/255.255.240>
    permit=4.5.6.7/255.255.255 <http://4.5.6.7/255.255.255>
    permit= ...

    http://www.voip-info.org/wiki/ view/Asterisk+sip+permit-deny- mask
    <http://www.voip-info.org/wiki/view/Asterisk+sip+permit-deny-mask>


        On Tue, Apr 24, 2012 at 12:38 PM, Olivier CALVANO
        <[email protected] <mailto:[email protected]>
        <mailto:[email protected] <mailto:[email protected]>>> wrote:

           Hi Sammy,

           Yes my telco have a lot of IP, i receive a call from ~20 ip ..
           I can't put a subnet ?

           best regards

           Le 23 avril 2012 07:57, SamyGo <[email protected]
        <mailto:[email protected]>
        <mailto:[email protected] <mailto:[email protected]>>> a
        écrit :

        > Hi,
        >
        >> No matching peer for '+331MYCLID' from '84.xx.xx.72:5060'
        >
        >
        > This line is telling you everything. The peer you've declared
           isn't being
        > matched for the incoming call and hence it tries to look in
           "default"
        > context (I assume allowguest=yes in your sip.conf)
        >
        > Make sure that your peer is matched, since you've qualify=yes
           defined
        > execute the command "sip show peer Trunk-Telco" in asterisl CLI
           and see the
        > status of the peer.
        >
        > What I'm guessing is that the telco has multiple IPs to send you
           calls and
        > the incoming call isn't coming from the IP you've declared in
           your sip
        > telco-trunk section. I don't think we can set a subnet in
        > host=87.XX.XX.XX/28 parameter.!!
        >
        > Regards,
        > Sammy.
        >

           --
           ______________________________
        ______________________________ _________
           -- Bandwidth and Colocation Provided by
        http://www.api-digital.com --
           New to Asterisk? Join us for a live introductory webinar
        every Thurs:
        http://www.asterisk.org/hello

           asterisk-users mailing list
           To UNSUBSCRIBE or update options visit:
        http://lists.digium.com/ mailman/listinfo/asterisk- users
        <http://lists.digium.com/mailman/listinfo/asterisk-users>




        --
        ______________________________ ______________________________
        _________
        -- Bandwidth and Colocation Provided by
        http://www.api-digital.com --
        New to Asterisk? Join us for a live introductory webinar every
        Thurs:
        http://www.asterisk.org/hello

        asterisk-users mailing list
        To UNSUBSCRIBE or update options visit:
        http://lists.digium.com/ mailman/listinfo/asterisk- users
        <http://lists.digium.com/mailman/listinfo/asterisk-users>


    --
    ______________________________ ______________________________
    _________
    -- Bandwidth and Colocation Provided by http://www.api-digital.com --
    New to Asterisk? Join us for a live introductory webinar every Thurs:
    http://www.asterisk.org/hello

    asterisk-users mailing list
    To UNSUBSCRIBE or update options visit:
    http://lists.digium.com/ mailman/listinfo/asterisk- users
    <http://lists.digium.com/mailman/listinfo/asterisk-users>




--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
                http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
    http://lists.digium.com/mailman/listinfo/asterisk-users

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
              http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to