[asterisk-users] pbx.c:2494 __ast_pbx_run: Invalid extension

Jared Smith jsmith at digium.com
Wed May 28 08:56:13 CDT 2008


On Wed, 2008-05-28 at 15:45 +0300, RoLaNd RoLaNd wrote:
> im having trouble directing incoming calls to specific extensions
> after the WAITEXTEN rule has been executed.
> for example when i call in and asterisk picks up, i hear the msg.. if
> try to call 105 for example, it just takers 10.. 

That's because both Background() and WaitExten() look for an extension
that matches the dialed digits *in the current context*.  In your case,
Asterisk sees the 1 and since there are extensions in the [sipura-line]
context that start with 1, it waits for more digits.  Then you press 0,
and Asterisk says "Hey, there aren't any extensions in this context that
begin with 1 and then 0", and treats it as an invalid extension.

The easiest way to fix the problem is to add a line that says "include
=> spa" in the [sipura-line] context.  This tells Asterisk to look in
the [spa] context if it can't find anything that matches in the
[sipura-line] context.


-- 
Jared Smith
Training Manager
Digium, Inc.




More information about the asterisk-users mailing list