<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"Arial Narrow";
        panose-1:2 11 6 6 2 2 2 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EpostStil17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=NO-BOK link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><span lang=EN-US>Hello dear list.<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>I am currently working on a Automatic
attendant, and the core things work, but I think the loop function isn’t
working as expected.<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>I am testing this environment: a sip
internal call from 301 to 501.<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>The setup here is when 301 calls 501, and
301 doesn’t enter an extension, it will go in loop, 3 times, and then
hangup…Can’t get that working.<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>Could someone please help me?<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>Extensions.conf<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>[mainmenu]<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>exten => 501,1,Answer<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>exten => 501,n,Wait(2)<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>exten =>
501,n,Playback(velkommen_abacus)<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>exten => 501,n,Set(Loop=0)<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>exten => 501,n,While($[${Loop} < 3])<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>exten => 501,n,Background(tast123vent_)<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>exten => 501,n,WaitExten(5)<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>exten => 501,n,Set(Loop=$[${Loop}+1])<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>exten => 501,n,(LoopEnd),EndWhile<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>exten => 501,n,Hangup()<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>exten => 1,1,Playback(tt-weasels)<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>exten => 1,2,Dial(SIP/200,10,rg)<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>exten => 1,3,Hangup()<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>exten => 2,1,Playback(tt-monkeys)<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>exten => 2,n,Dial(SIP/302,60,rg)<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>exten => 2,n,Hangup()<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>exten => 3,1,Dial(SIP/402,60,rg)<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>exten => 3,n,Hangup<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>exten => 9,n,Hangup()<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>exten => i,1,Set(Loop=$[${Loop}+1])<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>exten => i,n,Goto(LoopEnd)<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>exten => t,1,Set(Loop=$[${Loop}+1])<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>exten => t,n,Goto(LoopEnd)<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>CLI Output<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>Connected to Asterisk 1.6.2.6 currently
running on asterisk (pid = 2467)<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>Verbosity is at least 3<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US> == Using SIP RTP TOS bits 184<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US> == Using SIP RTP CoS mark 5<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US> -- Executing
[501@phones:1] Answer("SIP/301-00000248", "") in new stack<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US> -- Executing [501@phones:2]
Wait("SIP/301-00000248", "2") in new stack<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US> -- Executing
[501@phones:3] Playback("SIP/301-00000248",
"velkommen_abacus") in new stack<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US> --
<SIP/301-00000248> Playing 'velkommen_abacus.slin' (language 'en')<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US> -- Executing
[501@phones:4] Set("SIP/301-00000248", "Loop=0") in new
stack<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US> -- Executing
[501@phones:5] While("SIP/301-00000248", "1") in new stack<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US> -- Executing
[501@phones:6] BackGround("SIP/301-00000248",
"tast123vent_") in new stack<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US> --
<SIP/301-00000248> Playing 'tast123vent_.slin' (language 'en')<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US> -- Executing
[501@phones:7] WaitExten("SIP/301-00000248", "5") in new
stack<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US> -- Timeout on
SIP/301-00000248, continuing...<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US> -- Executing
[501@phones:8] Set("SIP/301-00000248", "Loop=1") in new
stack<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>[Jun 18 10:38:16] WARNING[1692]: pbx.c:3680
pbx_extension_helper: No application '' for extension (phones, 501, 9)<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US> == Spawn extension (phones, 501, 9)
exited non-zero on 'SIP/301-00000248'<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>asterisk*CLI><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>sip.conf regarding sip 501<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>[501]<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>type=friend<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>secret=XXXXXX<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>host=dynamic<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>context=phones<o:p></o:p></span></p>
<p class=MsoNormal>mailbox=501@default
<o:p></o:p></p>
<p class=MsoNormal><span lang=EN-US>callerid=Sentralbord<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>qualify=yes<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='color:black'><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:9.0pt;font-family:"Arial Narrow","sans-serif";
color:#7F7F7F'>Med vennlig hilsen / Best regards</span><span lang=EN-US
style='color:black'><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:14.0pt;font-family:"Arial","sans-serif";
color:#7F7F7F'>Abacus IT AS</span><span lang=EN-US style='color:black'><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Arial Narrow","sans-serif";
color:#7F7F7F'>- din Visma Software Partner<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Arial Narrow","sans-serif";
color:#7F7F7F'>- your Visma Software Partner</span><span style='color:black'><o:p></o:p></span></p>
<p class=MsoNormal><span style='color:black'> <o:p></o:p></span></p>
<p class=MsoNormal><b><span style='font-size:9.0pt;font-family:"Arial Narrow","sans-serif";
color:#7F7F7F'>Tor Aksel Celasun</span></b><span style='color:black'><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Arial Narrow","sans-serif";
color:#7F7F7F'>Mobilnummer/cell phone: (+47) 900 15 103</span><span
style='color:black'><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Arial Narrow","sans-serif";
color:#7F7F7F'>Sentralbord/Support 4000 1850</span><span style='color:black'><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Arial Narrow","sans-serif";
color:#7F7F7F'><a href="mailto:aksel@abacus-it.no"><span style='color:blue'>aksel@abacus-it.no</span></a></span><span
style='color:black'><o:p></o:p></span></p>
<p class=MsoNormal><o:p> </o:p></p>
</div>
</body>
</html>