<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 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"Courrier New";
        panose-1:0 0 0 0 0 0 0 0 0 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        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.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></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="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">I have a hotdesking environment at my main office, and up until today, the GotoIf that jumps straight to voicemail if a user isn’t log in was working just fine by label. Today, I deployed DUNDi to a satellite office, and now the GotoIf
isn’t jumping to the right place. If I replace the label with a priority number, it jumps correctly. Alternatively, if I disable the switch statement for DUNDi, it jumps correctly. But with the DUNDi switch in service and the named label to jump to, it
gives me this error:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;font-family:"Courrier New"">[May 30 13:57:24]
<span style="color:#7F4040">WARNING</span>[6654]: <span style="color:#7F7F7F">pbx.c</span>:<span style="color:#7F7F7F">10747</span>
<span style="color:#7F7F7F">pbx_parseable_goto</span>: Priority 'not_logged_in' must be a number > 0, or valid label<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Dialplan snippets as follows:<o:p></o:p></p>
<p class="MsoNormal">[hotdesk] ;phones dial here<o:p></o:p></p>
<p class="MsoNormal">include => hotdesk_outbound<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">[hotdesk_outbound]<o:p></o:p></p>
<p class="MsoNormal">exten => _X.,1,NoOp()<o:p></o:p></p>
<p class="MsoNormal">same => n,Set(LOCATION=${CUT(CHANNEL,/,2)})<o:p></o:p></p>
<p class="MsoNormal">same => n,Set(LOCATION=${CUT(LOCATION,-,1)})<o:p></o:p></p>
<p class="MsoNormal">same => n,Set(WHO=${HOTDESK_PHONE_STATUS(${LOCATION})})<o:p></o:p></p>
<p class="MsoNormal">same => n,GotoIf($[${ISNULL(${WHO})}]?internal,${EXTEN},1)<o:p></o:p></p>
<p class="MsoNormal">same => n,Set(${WHO}_CID_NAME=${HOTDESK_INFO(cid_name,${WHO})})<o:p></o:p></p>
<p class="MsoNormal">same => n,Set(${WHO}_CID_NUMBER=${HOTDESK_INFO(cid_number,${WHO})})<o:p></o:p></p>
<p class="MsoNormal">same => n,Set(${WHO}_CONTEXT=${HOTDESK_INFO(defaultcontext,${WHO})})<o:p></o:p></p>
<p class="MsoNormal">same => n,Set(${WHO}_VMCONTEXT=${HOTDESK_INFO(vmcontext,${WHO})})<o:p></o:p></p>
<p class="MsoNormal">same => n,Set(GROUP(activecallers)=${WHO})<o:p></o:p></p>
<p class="MsoNormal">same => n,NoOp(Who: ${WHO} Calls: ${GROUP_COUNT(${WHO}@activecallers)})<o:p></o:p></p>
<p class="MsoNormal">same => n,Set(DEVICE_STATE(Custom:${WHO})=INUSE)<o:p></o:p></p>
<p class="MsoNormal">same => n,Set(CALLERID(name)=${${WHO}_CID_NAME})<o:p></o:p></p>
<p class="MsoNormal">same => n,Set(CALLERID(num)=${${WHO}_CID_NUMBER})<o:p></o:p></p>
<p class="MsoNormal">same => n,Goto(${${WHO}_CONTEXT},${EXTEN},1)<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">[outbound-context]<o:p></o:p></p>
<p class="MsoNormal">include => internal-privledged<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">[internal-privledged]<o:p></o:p></p>
<p class="MsoNormal">include => internal<o:p></o:p></p>
<p class="MsoNormal">switch => DUNDi/peer<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">[internal]<o:p></o:p></p>
<p class="MsoNormal">exten => _3XX,1,NoOp()<o:p></o:p></p>
<p class="MsoNormal">same => n,Set(E=${EXTEN})<o:p></o:p></p>
<p class="MsoNormal">same => n,Set(${E}_VMCONTEXT=${HOTDESK_INFO(vmcontext,${E})})<o:p></o:p></p>
<p class="MsoNormal">same => n,Set(USER_LOCATION=${HOTDESK_USER_STATUS(${E})})<o:p></o:p></p>
<p class="MsoNormal">same => n,GotoIf($[${ODBCROWS} < 1]?not_logged_in)<o:p></o:p></p>
<p class="MsoNormal">same => n,Dial(SIP/${USER_LOCATION},20,wWU(answered^${E}))<o:p></o:p></p>
<p class="MsoNormal">same => n,ExecIf(${ISNULL(${E})}?NoOp(${HOTDESK_INFO(location,${E})}):ExecIf($[${GROUP_COUNT(${E}@activecalls)}>1]?Set(DEVICE_STATE(Custom:${E})=INUSE):Set(DEVICE_STATE(Custom:${E})=NOT_INUSE)))<o:p></o:p></p>
<p class="MsoNormal">same => n,Set(GROUP(activecalls)=${NULL})<o:p></o:p></p>
<p class="MsoNormal">same => n,Voicemail(${E}@${${E}_VMCONTEXT},b)<o:p></o:p></p>
<p class="MsoNormal">same => n,Hangup()<o:p></o:p></p>
<p class="MsoNormal">same => n(not_logged_in),Set(LOGGED_OFF=1)<o:p></o:p></p>
<p class="MsoNormal">same => n,Voicemail(${E}@${${E}_VMCONTEXT},u)<o:p></o:p></p>
<p class="MsoNormal">same => n,Hangup()<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Any suggestions on other things to try? Or is this a bug I should file?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thank you,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Noah Engelberth<o:p></o:p></p>
<p class="MsoNormal">MetaLINK Technologies<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>