Hi<br>I believe that<br><span>exten =>
s,7,GotoIf($[${trips}=4]?9999,8)<br><br>the , should be :<br></span><br><div><span class="gmail_quote">On 10/24/07, <b class="gmail_sendername">Phil Knighton</b> <<a href="mailto:phil.knighton@mjog.com">phil.knighton@mjog.com
</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div style="font-size: 10pt; color: rgb(0, 0, 0); font-family: Tahoma;" vlink="#990000" alink="#00ff00" link="#0000ff" bgcolor="#ffffff">
<div><span>Hi</span></div>
<div><span></span> </div>
<div><span>I have a situation where I want to be able
to count how many times a caller goes round a loop of "Please hold...", "please
continue to hold". I have found an example on voip-info but I can't get it
to work. Not sure if I've got some syntax wrong somewhere? All that
happens at the moment, is I hit is the playback of "som-debug" at 9999. Any
ideas would be appreciated!</span></div>
<div><span></span> </div>
<div><span>extensions.conf:</span></div>
<div><span></span> </div>
<div><span>[so-mainmenu]<br>exten =>
s,1,Answer<br>exten => s,2,Set(trips=1)<br>exten =>
s,3,SetMusicOnHold(default)<br>exten => s,4,Set(TIMEOUT(digit)=5)<br>exten
=> s,5,Set(TIMEOUT(response)=10)<br>exten =>
s,6,Background(softopt/som-mainmenu)</span></div>
<div><span>exten =>
s,7,GotoIf($[${trips}=4]?9999,8)<br>exten => s,8,WaitExten(5)</span><span><br>exten => s,9,Wait(5)<br>exten =>
1,1,Goto(so-sandm,s,1)<br>exten => 2,1,Goto(so-support,s,1)<br>exten =>
3,1,Goto(so-accbill,s,1)<br>exten => 4,1,Goto(so-switchboard,s,1)<br>exten
=> 5,1,Goto(so-silentdial),s,1)<br>exten =>
s,10,Background(softopt/som-mainmenuretry)<br>exten => s,11,Wait(1)<br>exten
=> s,12,Background(softopt/som-mainmenuopts)<br>exten =>
s,13,Goto(s,7)</span></div>
<div><span>exten =>
9999,1,Playback(softopt/som-debug)<br>exten => 9999,2,Hangup()<br>exten =>
i,1,Set(trips=$[${trips} + 1])<br>exten => i,2,Goto(s,7)</span></div>
<div> </div>
<div><span>Cheers</span></div>
<div><span></span> </div>
<div><span>Phil</span></div>
<div> </div>
<div>Phil Knighton</div>
<div><span>Soft Option
Technologies</span></div></div>
<br>_______________________________________________<br>--Bandwidth and Colocation Provided by <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.api-digital.com--" target="_blank">http://www.api-digital.com--
</a><br><br>asterisk-users mailing list<br>To UNSUBSCRIBE or update options visit:<br> <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">
http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></blockquote></div><br>