<div class="gmail_extra"><blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<span style>If it only match on host field, why are multiple permit field allowed? And for what they are usable then?</span> </blockquote><div class="gmail_extra"><br></div><div class="gmail_extra">Peers are matched against IPs in "host" field, however the permit/deny fields restricts the peers in case host=dynamic. That's what I've learned so far.</div>
<div class="gmail_extra"><br></div><div class="gmail_extra">But for OP I think he definitely needs to define multiple peers for all incoming IPs inorder to goto the correct context and match the desired extension.</div><br>
<div class="gmail_quote">On Tue, Apr 24, 2012 at 5:06 PM, Administrator TOOTAI <span dir="ltr"><<a href="mailto:admin@tootai.net" target="_blank">admin@tootai.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Le 24/04/2012 12:37, SamyGo a écrit :<div class="im"><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Thats not gonna work TOOTAi,<br>
that's just ACL thing you wrote. The peer IP is only going to be matched against the host= field.<br>
correct me if I'm wrong on this.<br>
</blockquote>
<br></div>
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):<br>
<br>
[MyTelco]<br>
type=peer<br>
host=<a href="http://sip.mytelco.com" target="_blank">sip.mytelco.com</a> ;to place call to<br>
deny=<a href="http://0.0.0.0/0.0.0.0" target="_blank">0.0.0.0/0.0.0.0</a> ;deny all incoming IPs<br>
permit=<a href="http://1.2.3.4/255.255.255.255" target="_blank">1.2.3.4/255.255.255.255</a> ;but not this one<br>
permit=<a href="http://5.6.7.8/255.255.255.240" target="_blank">5.6.7.8/255.255.255.240</a> ;but not for this subnet<br>
<br>
If it only match on host field, why are multiple permit field allowed? And for what they are usable then?<br>
<br>
Anyway, from other threads I saw it seems that your right ... my questions stays open ;-)<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
<br>
<br>
<br>
On Tue, Apr 24, 2012 at 3:14 PM, Administrator TOOTAI <<a href="mailto:admin@tootai.net" target="_blank">admin@tootai.net</a> <mailto:<a href="mailto:admin@tootai.net" target="_blank">admin@tootai.net</a>>> wrote:<br>
<br>
Le 24/04/2012 09:56, SamyGo a écrit :<br>
<br>
I wonder if anyone from asterisk development can tell about<br>
putting a subet in *host=<a href="http://192.168.2.0/26" target="_blank">192.168.2.0/26</a><br></div>
<<a href="http://192.168.2.0/26" target="_blank">http://192.168.2.0/26</a>> <<a href="http://192.168.2.0/26" target="_blank">http://192.168.2.0/26</a>> *field.<div class="im"><br>
<br>
I fear you may need to declare peers for those ~20 IPs in<br>
worst case.<br>
<br>
[MyTelco]<br>
...<br></div>
deny=<a href="http://0.0.0.0/0.0.0.0" target="_blank">0.0.0.0/0.0.0.0</a> <<a href="http://0.0.0.0/0.0.0.0" target="_blank">http://0.0.0.0/0.0.0.0</a>><br>
permit=<a href="http://1.2.3.4/255.255.240" target="_blank">1.2.3.4/255.255.240</a> <<a href="http://1.2.3.4/255.255.240" target="_blank">http://1.2.3.4/255.255.240</a>><br>
permit=<a href="http://4.5.6.7/255.255.255" target="_blank">4.5.6.7/255.255.255</a> <<a href="http://4.5.6.7/255.255.255" target="_blank">http://4.5.6.7/255.255.255</a>><br>
permit= ...<br>
<br>
<a href="http://www.voip-info.org/wiki/" target="_blank">http://www.voip-info.org/wiki/</a> view/Asterisk+sip+permit-deny- mask<div class="im"><br>
<<a href="http://www.voip-info.org/wiki/view/Asterisk+sip+permit-deny-mask" target="_blank">http://www.voip-info.org/<u></u>wiki/view/Asterisk+sip+permit-<u></u>deny-mask</a>><br>
<br>
<br>
On Tue, Apr 24, 2012 at 12:38 PM, Olivier CALVANO<br>
<<a href="mailto:o.calvano@gmail.com" target="_blank">o.calvano@gmail.com</a> <mailto:<a href="mailto:o.calvano@gmail.com" target="_blank">o.calvano@gmail.com</a>><br></div><div class="im">
<mailto:<a href="mailto:o.calvano@gmail.com" target="_blank">o.calvano@gmail.com</a> <mailto:<a href="mailto:o.calvano@gmail.com" target="_blank">o.calvano@gmail.com</a>>>> wrote:<br>
<br>
Hi Sammy,<br>
<br>
Yes my telco have a lot of IP, i receive a call from ~20 ip ..<br>
I can't put a subnet ?<br>
<br>
best regards<br>
<br>
Le 23 avril 2012 07:57, SamyGo <<a href="mailto:govoiper@gmail.com" target="_blank">govoiper@gmail.com</a><br>
<mailto:<a href="mailto:govoiper@gmail.com" target="_blank">govoiper@gmail.com</a>><br></div>
<mailto:<a href="mailto:govoiper@gmail.com" target="_blank">govoiper@gmail.com</a> <mailto:<a href="mailto:govoiper@gmail.com" target="_blank">govoiper@gmail.com</a>>>> a<div><div class="h5"><br>
écrit :<br>
<br>
> Hi,<br>
><br>
>> No matching peer for '+331MYCLID' from '84.xx.xx.72:5060'<br>
><br>
><br>
> This line is telling you everything. The peer you've declared<br>
isn't being<br>
> matched for the incoming call and hence it tries to look in<br>
"default"<br>
> context (I assume allowguest=yes in your sip.conf)<br>
><br>
> Make sure that your peer is matched, since you've qualify=yes<br>
defined<br>
> execute the command "sip show peer Trunk-Telco" in asterisl CLI<br>
and see the<br>
> status of the peer.<br>
><br>
> What I'm guessing is that the telco has multiple IPs to send you<br>
calls and<br>
> the incoming call isn't coming from the IP you've declared in<br>
your sip<br>
> telco-trunk section. I don't think we can set a subnet in<br>
> host=87.XX.XX.XX/28 parameter.!!<br>
><br>
> Regards,<br>
> Sammy.<br>
><br>
<br>
--<br>
______________________________<br>
______________________________ _________<br>
-- Bandwidth and Colocation Provided by<br>
<a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar<br>
every Thurs:<br>
<a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/" target="_blank">http://lists.digium.com/</a> mailman/listinfo/asterisk- users<br></div></div>
<<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/<u></u>mailman/listinfo/asterisk-<u></u>users</a>><br>
<br>
<br>
<br>
<br>
--<br>
______________________________ ______________________________<div class="im"><br>
_________<br>
-- Bandwidth and Colocation Provided by<br>
<a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every<br>
Thurs:<br>
<a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/" target="_blank">http://lists.digium.com/</a> mailman/listinfo/asterisk- users<br></div>
<<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/<u></u>mailman/listinfo/asterisk-<u></u>users</a>><br>
<br>
<br>
--<br>
______________________________ ______________________________<div class="im"><br>
_________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
<a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/" target="_blank">http://lists.digium.com/</a> mailman/listinfo/asterisk- users<br>
<<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/<u></u>mailman/listinfo/asterisk-<u></u>users</a>><br>
<br>
<br>
<br>
<br>
--<br>
______________________________<u></u>______________________________<u></u>_________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
<a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/<u></u>mailman/listinfo/asterisk-<u></u>users</a><br>
</div></blockquote><div class="HOEnZb"><div class="h5">
<br>
--<br>
______________________________<u></u>______________________________<u></u>_________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
<a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/<u></u>mailman/listinfo/asterisk-<u></u>users</a><br>
</div></div></blockquote></div><br></div>