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...@domain.local

== Using SIP RTP CoS mark 5
    -- Executing [...@from-guest:1] Goto("SIP/sip.tootai.net-084b1dc8", 
"h,1") in new stack
    -- Goto (from-guest,h,1)
    -- Executing [...@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 [...@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...@domain.local

 == Using SIP RTP CoS mark 5
    -- Executing [...@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 [...@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

_______________________________________________
-- 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