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

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

AstriCon 2009 - October 13 - 15 Phoenix, Arizona
Register Now: http://www.astricon.net

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to