[asterisk-users] How to limit extension to allow only internal calls

Jared Smith jsmith at digium.com
Mon Jun 2 23:01:39 CDT 2008


On Mon, 2008-06-02 at 17:53 -0700, Steve Edwards wrote:
> Also note that something as obtuse as:
> 
>  	exten = _2[1-4]00,1,		dial(${SERVICE-PHONE-${EXTEN:1:1}})
> 
> does not quite work because _2xxx is evaluated before _2[1-4]00 -- go 
> figure :)

That should not be the case, but you're right... something isn't as it
should be here.

Zwooop...  (That's the sound of me running off to the lab to test this
one)

So, it seems obvious to me that this is a bug.  I've posted more
information and an explanation of what I think is going wrong in the bug
tracker, as well as a proposed patch for the Asterisk 1.4 brach, trunk,
and the 1.6.0 branch.

See http://bugs.digium.com/view.php?id=12777 for more details.

-- 
Jared Smith
Training Manager
Digium, Inc.




More information about the asterisk-users mailing list