[Asterisk-Users] Goto command question

Mohamed A. Gombolaty mgombolaty at noorgroup.net
Mon Oct 17 07:14:34 MST 2005


Dear Eric,

You are totally right,  I already know the information below  but I don't know
why I couldn't see them, I certainly need a vacation, anyway it worked like
charm.

Thx
MAG

Eric \"ManxPower\" Wieling wrote:

> Mohamed A. Gombolaty wrote:
> > Dear All,
> >
> > I have this question regarding goto command, I amusing Asterisk cvs head
> > version, and I am trying to put a goto statement to send the user to
> > another extension that contains the extension he is dialing  here is how I
> > am doing it :
> >
> > exten => 2x.,1,setgroup(outgoing)
> > exten => 2x,2,checkgroup(2)
> > exten => 2x.,3,goto(another-context, ${EXTEN},1)
> > exten => 2x.,104,hangup
> >
> > but the result is always it hangs up I don't know if this goto statement is
> > correct or not, can anyone lead me to the right way to make this statement?
>
> First of all patterns must start with _
>
> exten => _2X.,1,setgroup(outgoing)
>
> Second you are using different patterns
>
> exten => _2X.,1,setgroup(outgoing)
>
> Is NOT the same as
>
> exten => _2X,2,checkgroup(2)
>
> The first pattern is _2X. the second pattern is _2X
>
> Third, do not put spaces after commas.
>
> Try this:
>
> exten => _2X.,1,SetGroup(outgoing)
> exten => _2X.,2,CheckGroup(2)
> exten => _2X.,3,Goto(another-context,${EXTEN},1)
> exten => _2X.,104,Hangup
> _______________________________________________
> --Bandwidth and Colocation sponsored by Easynews.com --
>
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users

--
Thx
MAG


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20051017/cc249c31/attachment.htm


More information about the asterisk-users mailing list