[asterisk-users] simple dialplan question

Danny Nicholas danny at debsinc.com
Wed Apr 28 12:23:51 CDT 2010


It seems to me that you're doing this the "hard way".  How about this:
[context]
exten => _.,1,Set(GROUP()=1)
exten => _.,n,Goto(${EXTEN},1)

exten => sipprovider.nocredit,1,NoOp(No credit left)

If I'm wrong (happens every once in a while), Google Asterisk 302 redirect.

-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Vieri
Sent: Wednesday, April 28, 2010 12:14 PM
To: asterisk-users at lists.digium.com
Subject: [asterisk-users] simple dialplan question

Sorry for the simple question.

I'm trying to match "sipprovider.nocredit" but the following doesn't execute
NoOp (it runs "context" but not "context-custom"). What am I doing wrong?

[context]
include => context-custom
exten => _.,1,Set(GROUP()=1)
exten => _.,n,Goto(destcontext,${EXTEN},1)

[context-custom]
exten => sipprovider.nocredit,1,NoOp(No credit left)

Thanks

Vieri



      

-- 
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

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




More information about the asterisk-users mailing list