[asterisk-users] Can't get Lua Pattern Matching to work

2012-10-23 Thread Cody Harris
l can't see to get the Lua extension matching to work: [Oct 23 19:13:12] NOTICE[4288]: chan_sip.c:23577 handle_request_invite: Call from 'user' (XXX.XXX.XXX.XXX:33962) to extension '107' rejected because extension not found in context 'luaentry'. extensions = {} extensions.luaentry = {}

Re: [asterisk-users] Can't get Lua Pattern Matching to work

2012-10-23 Thread Cody Harris
Sorry for the reply so quick, I should mention I'm running on 10.9.0 On Tue, Oct 23, 2012 at 3:15 PM, Cody Harris qbasi...@gmail.com wrote: l can't see to get the Lua extension matching to work: [Oct 23 19:13:12] NOTICE[4288]: chan_sip.c:23577 handle_request_invite: Call from 'user'

Re: [asterisk-users] Can't get Lua Pattern Matching to work

2012-10-23 Thread Danny Nicholas
: [asterisk-users] Can't get Lua Pattern Matching to work Sorry for the reply so quick, I should mention I'm running on 10.9.0 On Tue, Oct 23, 2012 at 3:15 PM, Cody Harris qbasi...@gmail.com wrote: l can't see to get the Lua extension matching to work: [Oct 23 19:13:12] NOTICE[4288

Re: [asterisk-users] Can't get Lua Pattern Matching to work

2012-10-23 Thread Christopher Harrington
[mailto: asterisk-users-boun...@lists.digium.com] *On Behalf Of *Cody Harris *Sent:* Tuesday, October 23, 2012 2:17 PM *To:* asterisk-users@lists.digium.com *Subject:* Re: [asterisk-users] Can't get Lua Pattern Matching to work Shouldn't _NXX match 107?** ** -- ** -Chris Harrington

Re: [asterisk-users] Can't get Lua Pattern Matching to work

2012-10-23 Thread Richard Mudgett
l can't see to get the Lua extension matching to work: [Oct 23 19:13:12] NOTICE[4288]: chan_sip.c:23577 handle_request_invite: Call from 'user' (XXX.XXX.XXX.XXX:33962) to extension '107' rejected because extension not found in context 'luaentry'. extensions = {}

Re: [asterisk-users] Can't get Lua Pattern Matching to work

2012-10-23 Thread Danny Nicholas
:31 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] Can't get Lua Pattern Matching to work On Tue, Oct 23, 2012 at 2:18 PM, Danny Nicholas da...@debsinc.com wrote: _NXX is only going to match a 3 digit number. I think you need _NXX. For this case

Re: [asterisk-users] Can't get Lua Pattern Matching to work

2012-10-23 Thread Christopher Harrington
On Tue, Oct 23, 2012 at 2:34 PM, Danny Nicholas da...@debsinc.com wrote: Nope – see page 138 of the Asterisk manual – N matches 2-9 and X matches 0-9 so the N excludes numbers starting with 0 or 1. ** Ah, sorry, I was thrown off by you suggesting _NXX. which wouldn't have matched either.

Re: [asterisk-users] Can't get Lua Pattern Matching to work

2012-10-23 Thread Cody Harris
Ah great, thanks guys for the help! I have it working now! On Tue, Oct 23, 2012 at 3:37 PM, Christopher Harrington ch...@acsdi.comwrote: On Tue, Oct 23, 2012 at 2:34 PM, Danny Nicholas da...@debsinc.com wrote: Nope – see page 138 of the Asterisk manual – N matches 2-9 and X matches 0-9 so