Re: [asterisk-users] doing dnsmgr_lookup for
On Thursday 31 May 2018 at 15:52:53, Jonas Kellens wrote: > Hello list > > is there a way to limit the number of dns lookups for 1 and the same host? > > I see on Asterisk CLI a flood of : > > [May 31 15:45:37]> doing dnsmgr_lookup for 'proxy1.sip.x2reg.be' > [May 31 15:45:37]> doing dnsmgr_lookup for 'proxy1.sip.x2reg.be' > [May 31 15:45:37]> doing dnsmgr_lookup for 'proxy1.sip.x2reg.be' > [May 31 15:45:37]> doing dnsmgr_lookup for 'proxy1.sip.x2reg.be' > [May 31 15:45:37]> doing dnsmgr_lookup for 'proxy1.sip.x2reg.be' > [May 31 15:45:37]> doing dnsmgr_lookup for 'proxy1.sip.x2reg.be' > [May 31 15:45:37]> doing dnsmgr_lookup for 'proxy1.sip.x2reg.be' > [May 31 15:45:37]> doing dnsmgr_lookup for 'proxy1.sip.x2reg.be' > [May 31 15:45:37]> doing dnsmgr_lookup for 'proxy1.sip.x2reg.be' > [May 31 15:45:37]> doing dnsmgr_lookup for 'proxy1.sip.x2reg.be' > [May 31 15:45:37]> doing dnsmgr_lookup for 'proxy1.sip.x2reg.be' > > I have several sip peer definitions (sip trunks) pointing at this same > host. Does it matter? So long as you have a local caching DNS server (for highest performance, on the Asterisk server itself, with /etc/resolv.conf pointing to 127.0.0.1 or ::1) the effect should not be noticeable. Antony. -- "Remember: the S in IoT stands for Security." - Jan-Piet Mens Please reply to the list; please *don't* CC me. -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- Check out the new Asterisk community forum at: https://community.asterisk.org/ New to Asterisk? Start here: https://wiki.asterisk.org/wiki/display/AST/Getting+Started asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
[asterisk-users] doing dnsmgr_lookup for
Hello list is there a way to limit the number of dns lookup's for 1 and the same host ? I see on Asterisk CLI a flood of : [May 31 15:45:37] > doing dnsmgr_lookup for 'proxy1.sip.x2reg.be' [May 31 15:45:37] > doing dnsmgr_lookup for 'proxy1.sip.x2reg.be' [May 31 15:45:37] > doing dnsmgr_lookup for 'proxy1.sip.x2reg.be' [May 31 15:45:37] > doing dnsmgr_lookup for 'proxy1.sip.x2reg.be' [May 31 15:45:37] > doing dnsmgr_lookup for 'proxy1.sip.x2reg.be' [May 31 15:45:37] > doing dnsmgr_lookup for 'proxy1.sip.x2reg.be' [May 31 15:45:37] > doing dnsmgr_lookup for 'proxy1.sip.x2reg.be' [May 31 15:45:37] > doing dnsmgr_lookup for 'proxy1.sip.x2reg.be' [May 31 15:45:37] > doing dnsmgr_lookup for 'proxy1.sip.x2reg.be' [May 31 15:45:37] > doing dnsmgr_lookup for 'proxy1.sip.x2reg.be' [May 31 15:45:37] > doing dnsmgr_lookup for 'proxy1.sip.x2reg.be' I have several sip peer definitions (sip trunks) pointing at this same host. Kind regards. -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- Check out the new Asterisk community forum at: https://community.asterisk.org/ New to Asterisk? Start here: https://wiki.asterisk.org/wiki/display/AST/Getting+Started asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Long extensions that contain dashes
On Tue, May 29, 2018 at 08:32:39PM -0700, David P wrote: > We would like to use 20-char extension values that use dashes and alphanums > after the first four digits. In order to handle these via pattern-matching, > how can I define a pattern that allows dashes? There seems to be no option > at http://the-asterisk-book.com/1.6/einleitung-regex.html#re > gular-expression-syntax However, when I try a period, it seems to match the > long suffix including the dashes. I want to know whether to depend on this > continuing to work. You should read some more up to date documentation I guess. https://wiki.asterisk.org/wiki/display/AST/Pattern+Matching mentions the significance of - in a character class and the way to escape. I'm to lazy to try this myself, but in any regexp parser I ever used a litteral - in a charclass is defined by simply putting it as the last character in the class (but above url leads me to think this doesn't work in asterisk): [0-9] matches 0,1,2,3,4,5,6,7,8 and 9 [09-] matchers 0,9 and - > Also, we're not sure whether our automated members can handle extensions > longer than 4 digits. I'd like to pass a substring of our > extension/destination_number in the call to Queue(). I couldn't find > documention of any Queue() option like this. Is it possible to control the > extension that the member receives? You are looking to modify the callerid? e.g.: Set(CALLERID(num)=${CALLERID(num):4}) -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- Check out the new Asterisk community forum at: https://community.asterisk.org/ New to Asterisk? Start here: https://wiki.asterisk.org/wiki/display/AST/Getting+Started asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users