<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Dear Eric,
<p>You are totally right,&nbsp; I already know the information below&nbsp;
but I don't know why I couldn't see them, I certainly need a vacation,
anyway it worked like charm.
<p>Thx
<br>MAG
<p>Eric \"ManxPower\" Wieling wrote:
<blockquote TYPE=CITE>Mohamed A. Gombolaty wrote:
<br>> Dear All,
<br>>
<br>> I have this question regarding goto command, I amusing Asterisk cvs
head
<br>> version, and I am trying to put a goto statement to send the user
to
<br>> another extension that contains the extension he is dialing&nbsp;
here is how I
<br>> am doing it :
<br>>
<br>> exten => 2x.,1,setgroup(outgoing)
<br>> exten => 2x,2,checkgroup(2)
<br>> exten => 2x.,3,goto(another-context, ${EXTEN},1)
<br>> exten => 2x.,104,hangup
<br>>
<br>> but the result is always it hangs up I don't know if this goto statement
is
<br>> correct or not, can anyone lead me to the right way to make this
statement?
<p>First of all patterns must start with _
<p>exten => _2X.,1,setgroup(outgoing)
<p>Second you are using different patterns
<p>exten => _2X.,1,setgroup(outgoing)
<p>Is NOT the same as
<p>exten => _2X,2,checkgroup(2)
<p>The first pattern is _2X. the second pattern is _2X
<p>Third, do not put spaces after commas.
<p>Try this:
<p>exten => _2X.,1,SetGroup(outgoing)
<br>exten => _2X.,2,CheckGroup(2)
<br>exten => _2X.,3,Goto(another-context,${EXTEN},1)
<br>exten => _2X.,104,Hangup
<br>_______________________________________________
<br>--Bandwidth and Colocation sponsored by Easynews.com --
<p>Asterisk-Users mailing list
<br>Asterisk-Users@lists.digium.com
<br><a href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a>
<br>To UNSUBSCRIBE or update options visit:
<br>&nbsp;&nbsp; <a href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a></blockquote>

<pre>--&nbsp;
Thx
MAG</pre>
&nbsp;</html>