Sorry for the reply so quick,<div>I should mention I'm running on 10.9.0</div><div><br><div class="gmail_quote">On Tue, Oct 23, 2012 at 3:15 PM, Cody Harris <span dir="ltr"><<a href="mailto:qbasicer@gmail.com" target="_blank">qbasicer@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">l can't see to get the Lua extension matching to work:<div><br></div><div><div>[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'.</div>
</div><div><br></div><div><div>extensions = {}</div><div>extensions.luaentry = {}</div><div>extensions.luaentry["_NXX"] = function(c,e)</div><div> return app.goto("ael-dial-exten", e, 1);</div>
<div> end</div></div><div><br></div><div><br></div><div>Shouldn't _NXX match 107?</div><div><br></div><div>I also tried:</div><div><br></div><div><div>extensions = {</div><div> ["luaentry"] = {</div>
<div> ["NXX"] = function(c,e)</div><div> app.verbose("Redirecting to internal extension")</div><div> return app.goto("ael-dial-exten", e, 1);</div>
<div> end;</div><div> ["_1NXXNXXXXXX"] = function(c,e)</div><div> internalDialOut(e)</div><div> end;</div><div> ["_NXXNXXXXXX"] = function(c,e)</div>
<div> internalDialOut("1"..e)</div><div> end;</div><div> i = function()</div><div> app.playback("invalid")</div><div> app.hangup()</div>
<div> end;</div><div> };</div><div>};</div></div><div><br></div><div>And that didn't work either.</div><div><br></div><div>Any tips or tricks?</div><div><br></div><div>My users.conf looks like:</div>
<div><br></div><div><div>[503]</div><div>fullname = Cody Harris</div><div>email = <a href="mailto:qbasicer@gmail.com" target="_blank">qbasicer@gmail.com</a></div><div>secret = XXXXXX</div><div>vmsecret = XXXX</div><div>context = luaentry</div>
<div>hasvoicemail = yes</div><div>callwaiting = yes</div><div>hasip = yes</div><div>qualify=yes</div><div>nat=yes</div><div>host=dynamic</div><div>canreinvite=no</div></div><div><br></div>
</blockquote></div><br></div>