[asterisk-users] invalid extension
Administrator TOOTAI
admin at tootai.net
Mon Sep 7 12:08:53 CDT 2009
Hello,
with Asterisk 1.6.1.6 I try to hangup a call if called extension is not
existing. For this purpose I would use the internal i extension but
seems not to work.
[MyContext]
exten => s,1,NoOp(Call is treated as it should)
exten => s,n,NoOp(next step)
exten => s,n,NoOp(aso ...)
exten => _[a-zA-Z].,1,Goto(s,1) ; accept exten LEN >1 alpha
exten => _X.,1,Goto(s,1) ; accept exten LEN >1 numeric
exten => i,1,NoOP(sorry, extension doesnt exist) ; all 1 digits exten
exten => i,n,Hangup ; refused, end of call
What I have when calling a one digit extension -in this case h- is:
== Using SIP RTP CoS mark 5
[Sep 7 18:51:03] NOTICE[6084]: chan_sip.c:18523 handle_request_invite:
Call from '' to extension 'h' rejected because extension not found.
== Using SIP RTP CoS mark 5
Should it not go to i extension? If I call the i or s extension it's
going well. Am I missing something?
--
Daniel
More information about the asterisk-users
mailing list