[asterisk-users] invalid extension

Administrator TOOTAI admin at tootai.net
Mon Sep 7 15:43:38 CDT 2009


Miguel Molina a écrit :
> [...]
> The 'i' extension only works in applications like Background(), 
> WaitExten() and everything that uses DTMF to route extensions within a 
> context.
Well, from reading voip.org it's not really clear than ...
> [...] Because the call is not 
> accepted there's no need for a hangup (in a SIP environment).
>   
Well, I like when logs are clear ;-) and not have to guess :-)
> If you want to explicitly hangup calls using the dialplan, for your case 
> add a one-digit catch all and leave your good calls with a 2-digit minimum:
>
> exten => _X,1,NoOP(sorry, extension doesnt exist) ; all 1 digits exten
> exten => _X,n,Hangup	
>   
Did it but get 2 hangup! First calling 2 at domain.local

== Using SIP RTP CoS mark 5
    -- Executing [2 at from-guest:1] Goto("SIP/sip.tootai.net-084b1dc8", 
"h,1") in new stack
    -- Goto (from-guest,h,1)
    -- Executing [h at from-guest:1] Hangup("SIP/sip.tootai.net-084b1dc8", 
"") in new stack
  == Spawn extension (from-guest, h, 1) exited non-zero on 
'SIP/sip.tootai.net-084b1dc8'
    -- Executing [h at from-guest:1] Hangup("SIP/sip.tootai.net-084b1dc8", 
"") in new stack
  == Spawn extension (from-guest, h, 1) exited non-zero on 
'SIP/sip.tootai.net-084b1dc8'
 
Second calling h at domain.local

 == Using SIP RTP CoS mark 5
    -- Executing [h at from-guest:1] Hangup("SIP/sip.tootai.net-084c97b8", 
"") in new stack
  == Spawn extension (from-guest, h, 1) exited non-zero on 
'SIP/sip.tootai.net-084c97b8'
    -- Executing [h at from-guest:1] Hangup("SIP/sip.tootai.net-084c97b8", 
"") in new stack
  == Spawn extension (from-guest, h, 1) exited non-zero on 
'SIP/sip.tootai.net-084c97b8'

> exten => _XX.,1,Goto(s,1)		; accept exten LEN >1 numeric
>   
Here your calling a three or more digits ;-)
>
> That will be enough to hangup what you want to, adjusting it to your needs.
>   
I will leave with this :-) Many thanks for the informations.
-- 
Daniel



More information about the asterisk-users mailing list