<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns:o = "urn:schemas-microsoft-com:office:office" xmlns:st1 =
"urn:schemas-microsoft-com:office:smarttags"><HEAD><TITLE>MJogMain4 Stationery</TITLE>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16544" name=GENERATOR></HEAD>
<BODY style="FONT-SIZE: 10pt; COLOR: #000000; FONT-FAMILY: Tahoma" vLink=#990000
aLink=#00ff00 link=#0000ff bgColor=#ffffff background="">
<DIV><SPAN class=028451410-24102007>Hi</SPAN></DIV>
<DIV><SPAN class=028451410-24102007></SPAN> </DIV>
<DIV><SPAN class=028451410-24102007>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 class=028451410-24102007></SPAN> </DIV>
<DIV><SPAN class=028451410-24102007>extensions.conf:</SPAN></DIV>
<DIV><SPAN class=028451410-24102007></SPAN> </DIV>
<DIV><SPAN class=028451410-24102007>[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 class=028451410-24102007>exten =>
s,7,GotoIf($[${trips}=4]?9999,8)<BR>exten => s,8,WaitExten(5)</SPAN><SPAN
class=028451410-24102007><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 class=028451410-24102007>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 class=028451410-24102007>Cheers</SPAN></DIV>
<DIV><SPAN class=028451410-24102007></SPAN> </DIV>
<DIV><SPAN class=028451410-24102007>Phil</SPAN></DIV>
<DIV> </DIV>
<DIV>Phil Knighton</DIV>
<DIV><SPAN class=028451410-24102007>Soft Option
Technologies</SPAN></DIV></BODY></HTML>