Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

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


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
r_o_l_a_n_d at hotmail...
Guest





PostPosted: Wed May 28, 2008 7:45 am    Post subject: [asterisk-users] pbx.c:2494 __ast_pbx_run: Invalid extension Reply with quote

Hello all,

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.. and sometimes even just "1"
please see the following error as well as my sip.conf and extensions.conf
CLI sip debugging ERROR:


-- Executing [120 at spa:1] Goto("SIP/101-b5f65a78", "sipura-line|120|1") in new stack
-- Goto (sipura-line,120,1)
-- Executing [120 at sipura-line:1] Answer("SIP/101-b5f65a78", "") in new stack
-- Executing [120 at sipura-line:2] Playback("SIP/101-b5f65a78", "silence/1") in new stack
-- <SIP/101-b5f65a78> Playing 'silence/1' (language 'en')
-- Executing [120 at sipura-line:3] BackGround("SIP/101-b5f65a78", "simzy") in new stack
-- <SIP/101-b5f65a78> Playing 'simzy' (language 'en')
-- Executing [120 at sipura-line:4] WaitExten("SIP/101-b5f65a78", "5") in new stack
[May 28 14:41:25] WARNING[13091]: pbx.c:2494 __ast_pbx_run: Invalid extension '10', but no rule 'i' in context 'sipura-line'

sip.conf

[100]

secret=1234
allow=all
host=dynamic
type=friend
context=sipura-line


[101]

secret=1234
allow=all
host=dynamic
type=friend
context=spa


[102]

secret=1234
allow=all
host=dynamic
type=friend
context=spa


[103]

secret=1234
allow=all
host=dynamic
type=friend
context=spa

[120]

secret=1234
allow=all
host=dynamic
type=friend
context=sipura-line


[105]

secret=1234
allow=all
host=dynamic
type=friend
context=sipura-line

extensions.conf:


[sipura-line]

exten => 120,1,Answer() ; Answer inbound calls
exten => 120,2,Playback(silence/1)
exten => 120,3,Background(simzy) ; input an extension
exten => 120,n,WaitExten(5) ; Adjust wait, default 5 sec
exten => 120,n,Goto(spa,${EXTEN}@192.168.0.111:5061,1) ; Goto the correct extension
exten => 120,n,Hangup() ; End the call

[spa]

exten =>_120,1,GoTo(sipura-line,${EXTEN},1)
Exten => _1XX,1,Dial(SIP/${EXTEN})
exten => _0.,1,Dial(SIP/101/${EXTEN:1})
exten => _1X.,1,Dial(SIP/${EXTEN}@192.168.0.111:5061)


_________________________________________________________________
News, entertainment and everything you care about at Live.com. Get it now!
http://www.live.com/getstarted.aspx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080528/b2949a11/attachment.htm
Back to top
sherwood.mcgowan at gm...
Guest





PostPosted: Wed May 28, 2008 8:26 am    Post subject: [asterisk-users] pbx.c:2494 __ast_pbx_run: Invalid extension Reply with quote

RoLaNd RoLaNd wrote:
Quote:
Hello all,

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.. and sometimes even
just "1"
please see the following error as well as my sip.conf and extensions.conf


CLI sip debugging ERROR:


-- Executing [120 at spa:1] Goto("SIP/101-b5f65a78",
"sipura-line|120|1") in new stack
-- Goto (sipura-line,120,1)
-- Executing [120 at sipura-line:1] Answer("SIP/101-b5f65a78", "") in
new stack
-- Executing [120 at sipura-line:2] Playback("SIP/101-b5f65a78",
"silence/1") in new stack
-- <SIP/101-b5f65a78> Playing 'silence/1' (language 'en')
-- Executing [120 at sipura-line:3] BackGround("SIP/101-b5f65a78",
"simzy") in new stack
-- <SIP/101-b5f65a78> Playing 'simzy' (language 'en')
-- Executing [120 at sipura-line:4] WaitExten("SIP/101-b5f65a78",
"5") in new stack
[May 28 14:41:25] WARNING[13091]: pbx.c:2494 __ast_pbx_run: Invalid
extension '10', but no rule 'i' in context 'sipura-line'

sip.conf

[100]

secret=1234
allow=all
host=dynamic
type=friend
context=sipura-line


[101]

secret=1234
allow=all
host=dynamic
type=friend
context=spa


[102]

secret=1234
allow=all
host=dynamic
type=friend
context=spa


[103]

secret=1234
allow=all
host=dynamic
type=friend
context=spa

[120]

secret=1234
allow=all
host=dynamic
type=friend
context=sipura-line


[105]

secret=1234
allow=all
host=dynamic
type=friend
context=sipura-line

extensions.conf:


[sipura-line]

exten => 120,1,Answer() ; Answer inbound calls
exten => 120,2,Playback(silence/1)
exten => 120,3,Background(simzy) ; input an extension
exten => 120,n,WaitExten(5) ; Adjust wait, default 5 sec
exten => 120,n,Goto(spa,${EXTEN}@192.168.0.111:5061,1) ; Goto the
correct extension
exten => 120,n,Hangup() ; End the call

[spa]

exten =>_120,1,GoTo(sipura-line,${EXTEN},1)
Exten => _1XX,1,Dial(SIP/${EXTEN})
exten => _0.,1,Dial(SIP/101/${EXTEN:1})
exten => _1X.,1,Dial(SIP/${EXTEN}@192.168.0.111:5061)


------------------------------------------------------------------------
Get news, entertainment and everything you care about at Live.com.
Check it out! <http://www.live.com/getstarted.aspx%20>
------------------------------------------------------------------------

_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
Adjust your WaitExten()'s wait time, it's apparently needing longer to
pick it up.
Back to top
jsmith at digium.com
Guest





PostPosted: Wed May 28, 2008 8:56 am    Post subject: [asterisk-users] pbx.c:2494 __ast_pbx_run: Invalid extension Reply with quote

On Wed, 2008-05-28 at 15:45 +0300, RoLaNd RoLaNd wrote:
Quote:
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.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services