Hello, i am having an issue with the DENY permit thingy in the Extensions.conf whenever i use the permit deny , all the calls coming from another sip-trunk to my asterisk ,start to fail & doesn't use the Extensions dial plans that i created my context contain the following: [context1] ..... host=1.2.3.4 permit=1.2.3.4/255.255.255.255 deny=0.0.0.0/0.0.0.0 .. can anyone explain why its failing? P.S; calls from extension created on the ASterisk works fine even when permit\deny is used or not Best regards, Hussein K -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20111011/eea7300c/attachment.htm>
Permit deny in your example applies only to incoming calls to Asterisk from the device which authenticates as "context1". A very illogical name for a SIP peer/user/friend, but I've seen stranger things. -----Original Message----- From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of hussein korbani Sent: Tuesday, October 11, 2011 4:15 PM To: asterisk-users at lists.digium.com Subject: [asterisk-users] permit -- deny not working Hello, i am having an issue with the DENY permit thingy in the Extensions.conf whenever i use the permit deny , all the calls coming from another sip-trunk to my asterisk ,start to fail & doesn't use the Extensions dial plans that i created my context contain the following: [context1] ..... host=1.2.3.4 permit=1.2.3.4/255.255.255.255 deny=0.0.0.0/0.0.0.0 .. can anyone explain why its failing? P.S; calls from extension created on the ASterisk works fine even when permit\deny is used or not Best regards, Hussein K
I do not know if order is important but I always deny all then permit what I want to permit. -- Jim Dickenson mailto:dickenson at cfmc.com CfMC http://www.cfmc.com/ On Oct 11, 2011, at 1:15 PM, hussein korbani wrote:> Hello, > > i am having an issue with the DENY permit thingy in the Extensions.conf > > whenever i use the permit deny , all the calls coming from another sip-trunk to my asterisk ,start to fail & doesn't use the Extensions dial plans that i created > > my context contain the following: > [context1] > ..... > host=1.2.3.4 > permit=1.2.3.4/255.255.255.255 > deny=0.0.0.0/0.0.0.0 > .. > > > can anyone explain why its failing? > P.S; calls from extension created on the ASterisk works fine even when permit\deny is used or not > > > Best regards, > > Hussein K > -- > _____________________________________________________________________ > -- 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-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20111011/5bdab399/attachment.htm>
According to this http://www.voip-info.org/wiki/view/Asterisk+sip+permit-deny-mask you are only allowing traffic In from 1.2.3.4. From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of hussein korbani Sent: Tuesday, October 11, 2011 3:15 PM To: asterisk-users at lists.digium.com Subject: [asterisk-users] permit -- deny not working Hello, i am having an issue with the DENY permit thingy in the Extensions.conf whenever i use the permit deny , all the calls coming from another sip-trunk to my asterisk ,start to fail & doesn't use the Extensions dial plans that i created my context contain the following: [context1] ..... host=1.2.3.4 permit=1.2.3.4/255.255.255.255 deny=0.0.0.0/0.0.0.0 .. can anyone explain why its failing? P.S; calls from extension created on the ASterisk works fine even when permit\deny is used or not Best regards, Hussein K -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20111011/01294ab1/attachment.htm>
On Tue, Oct 11, 2011 at 3:15 PM, hussein korbani <h.korbani at gmail.com>wrote:> Hello, > > i am having an issue with the DENY permit thingy in the Extensions.conf > > whenever i use the permit deny , all the calls coming from another > sip-trunk to my asterisk ,start to fail & doesn't use the Extensions dial > plans that i created > > my context contain the following: > [context1] > ..... > host=1.2.3.4 > permit=1.2.3.4/255.255.255.255 > deny=0.0.0.0/0.0.0.0 > >This doesn't belong in extensions.conf, this belongs in either sip.conf or iax.conf, depending on the type of technology you use to bring this connection into your asterisk system. -- Thanks, --Warren Selby, dCAP http://www.SelbyTech.com <http://www.selbytech.com> -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20111011/2f18fb6a/attachment.htm>
Hi, It was already answered... You must always deny before allow. Regards, Carlos -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20111011/0ed4cbff/attachment.htm>